Public Member Functions |
Static Public Member Functions |
Private Member Functions |
Private Attributes |
List of all members
faudes::LuaState Class Reference Wrapper class to maintain a Lua state. More...
Detailed DescriptionWrapper class to maintain a Lua state. This class is still under construction. It aims for a sensible collection of operations that we may want to execute on a Lua state from the libFAUDES perspective. The current implementation provides static members that directly operate on a lua_State as well as a more comfortable interface that operates on thre wrapped faudes::LusState. Definition at line 413 of file lbp_function.h. Constructor & Destructor Documentation
Constructor. Definition at line 1129 of file lbp_function.cpp.
Destructor. Definition at line 1130 of file lbp_function.cpp.
Definition at line 657 of file lbp_function.h. Member Function Documentation
Definition at line 1173 of file lbp_function.cpp.
Complete Lua identifier. This method uses a variation of Mike Pall's advaced readline support patch to fugure possible completions if a string to match a valid identifyer.
Definition at line 1466 of file lbp_function.cpp.
Complete Lua identifier. This static version is meant for applications that maintain their Lua state themselves. See also Evaluate(const std::string&)
Definition at line 1471 of file lbp_function.cpp.
Evaluate Lua expression. This method runs the Lua-interpreter on the specified expression. In the case of an error, an exception will be thrown.
Definition at line 1425 of file lbp_function.cpp.
Evaluate Lua expression. This static version is meant for applications that maintain their Lua state themselves. See also Evaluate(const std::string&)
Definition at line 1430 of file lbp_function.cpp.
Convenience global Lua state. Definition at line 1155 of file lbp_function.cpp. Get/set global data. This method provides access to global variables. To set a variable, provide a non-NULL fdata parameter. If you obmitt the fdata paraneter, the default will indicate a get operation. Here, the value is returned as a copy and owned by the caller. An expection is thrown if the variable either does not exist, or cannot be converted to a faudes::Type.
Definition at line 1404 of file lbp_function.cpp.
Get/set global data. This static version is meant for applications that maintain their Lua state themselves. See also Globat(const std::string&, const Type*)
Definition at line 1409 of file lbp_function.cpp.
Initialze. Loads std libraries and libFAUDES wrappers. Note: this static version is provided for applications that maintain their lua state themselves. If yo use the wrapper class LuaState, you dont need explicit initialisation.
Definition at line 1181 of file lbp_function.cpp.
Install LuaExtension to Lua state. This function instantiates a LuaFunctionDefinition objects from the file and uses the Install member function to install each function to the specified lua state. Thus, after the extension has been installed, the respective Lua functions can be invoked within Lua as if they where C++ function with SWIG generated wrappers. Note: if you want to use the extension via the run-time-interface, you must also register them with the FunctionRegistry; see also the static method LuaFunctionDefinition::Register(const std::string&).
Definition at line 1150 of file lbp_function.cpp.
Access Lua state. Definition at line 1133 of file lbp_function.cpp.
Definition at line 1162 of file lbp_function.cpp.
Pop faudes typed object from Lua stack. This method uses SWIG generated type casts to retrieve the faudes object from the userdata on the top of the stack. It then uses the faudes Copy() method to instantiate a copy, to be owned by the caller.
Definition at line 1315 of file lbp_function.cpp.
Pop faudes typed object from Lua stack. This static version is meant for applications that maintain their Lua state themselves. See also Pop(const Type&)
Definition at line 1320 of file lbp_function.cpp.
Push faudes typed object on the Lua stack. This method uses SWIG generated constructors to instantiate new Lua userdata object of the same type as the specified data. It than invokes the faudes Assign method to assign a copy.
Definition at line 1209 of file lbp_function.cpp.
Push faudes typed object on the Lua stack. This static version is meant for applications that maintain their Lus state themselves. See also Push(const Type&)
Definition at line 1214 of file lbp_function.cpp.
Reinitialize Lua state. This method reconstructs the internal Lua state. Any references become invalid. Any LuaFunctiondefinitions from the FunctionRegistry will be (re-)installed to the new state. Definition at line 1136 of file lbp_function.cpp. Member Data Documentation
Definition at line 657 of file lbp_function.h. The documentation for this class was generated from the following files: libFAUDES 2.28c --- 2016.09.30 --- c++ api documentaion by doxygen |