Spinning Topp Logo BlackTopp Studios
inc
Public Member Functions | List of all members
Mezzanine::Scripting::Lua::LuaArgument Class Referenceabstract

The ScriptArgumentGeneric<T> needs just a bit of Lua specific functionality so we add push/pop for the LuaScript to call. More...

#include <lua51scriptargument.h>

+ Inheritance diagram for Mezzanine::Scripting::Lua::LuaArgument:

Public Member Functions

virtual ~LuaArgument ()
 Virtual deconstructor.
 
virtual LuaArgumentGetMostDerived ()
 Get a pointer to the most Derived type of this class. More...
 
virtual void Pop (lua_State *TargetState)=0
 Handle the details of pulling data from Lua's Stack into this. More...
 
virtual void Push (lua_State *TargetState) const =0
 Handle the details of putting this data onto Lua's Stack. More...
 

Detailed Description

The ScriptArgumentGeneric<T> needs just a bit of Lua specific functionality so we add push/pop for the LuaScript to call.

Definition at line 77 of file lua51scriptargument.h.

Member Function Documentation

virtual LuaArgument* Mezzanine::Scripting::Lua::LuaArgument::GetMostDerived ( )
inlinevirtual
virtual void Mezzanine::Scripting::Lua::LuaArgument::Pop ( lua_State *  TargetState)
pure virtual

Handle the details of pulling data from Lua's Stack into this.

Parameters
TargetStateThe state with the stack to pull the data from.
Returns
Whatever the Lua return code of the first failing lua call, or the last successful call.

Implemented in Mezzanine::Scripting::Lua::Lua51NilArgument, Mezzanine::Scripting::Lua::Lua51BoolArgument, Mezzanine::Scripting::Lua::Lua51StringArgument, Mezzanine::Scripting::Lua::Lua51WholeArgument, Mezzanine::Scripting::Lua::Lua51RealArgument, and Mezzanine::Scripting::Lua::Lua51IntegerArgument.

virtual void Mezzanine::Scripting::Lua::LuaArgument::Push ( lua_State *  TargetState) const
pure virtual

Handle the details of putting this data onto Lua's Stack.

Parameters
TargetStateThe state with the stack to push the data onto.
Returns
Whatever the Lua return code of the first failing lua call, or the last successful call.

Implemented in Mezzanine::Scripting::Lua::Lua51NilArgument, Mezzanine::Scripting::Lua::Lua51BoolArgument, Mezzanine::Scripting::Lua::Lua51StringArgument, Mezzanine::Scripting::Lua::Lua51WholeArgument, Mezzanine::Scripting::Lua::Lua51RealArgument, and Mezzanine::Scripting::Lua::Lua51IntegerArgument.


The documentation for this class was generated from the following file: