|
|
||||||
|
Public Member Functions |
Static Public Member Functions |
Private Member Functions |
Private Attributes |
List of all members
faudes::LuaState Class Reference 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◆ LuaState() [1/2]
Constructor. ◆ ~LuaState()
Destructor. ◆ LuaState() [2/2]
Definition at line 657 of file lbp_function.h. Member Function Documentation◆ Close()
◆ Complete() [1/2]
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.
◆ Complete() [2/2]
Complete Lua identifier. This static version is meant for applications that maintain their Lua state themselves. See also Evaluate(const std::string&)
◆ Evaluate() [1/2]
Evaluate Lua expression. This method runs the Lua-interpreter on the specified expression. In the case of an error, an exception will be thrown.
◆ Evaluate() [2/2]
Evaluate Lua expression. This static version is meant for applications that maintain their Lua state themselves. See also Evaluate(const std::string&)
◆ G()
Convenience global Lua state. ◆ Global() [1/2]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.
◆ Global() [2/2]
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*)
◆ Initialize()
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.
◆ Install()
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&).
◆ LL()
Access Lua state. ◆ Open()
◆ Pop() [1/2]
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&)
◆ Pop() [2/2]
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.
◆ Push() [1/2]
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.
◆ Push() [2/2]
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&)
◆ Reset()
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. Member Data Documentation◆ mpLL
Definition at line 659 of file lbp_function.h. The documentation for this class was generated from the following file: libFAUDES 2.32b --- 2024.03.01 --- c++ api documentaion by doxygen |