Diluculum::Impl::ClassTableFiller Class Reference

#include <LuaWrappers.hpp>

List of all members.

Public Member Functions

 ClassTableFiller (Diluculum::LuaValueMap &classTable, const std::string &name, lua_CFunction func)


Detailed Description

Helper class, used by the DILUCULUM_CLASS_METHOD() macro, as a means register a method in the table that represents a class being exported to Lua. Everything is done in the constructor. This is just a way to get some code executed in a macro call that happens at the global scope, outside of a function definition.

Definition at line 79 of file LuaWrappers.hpp.


Constructor & Destructor Documentation

Diluculum::Impl::ClassTableFiller::ClassTableFiller Diluculum::LuaValueMap classTable,
const std::string &  name,
lua_CFunction  func
[inline]
 

Adds the function func to the table classTable, with a key name.

Parameters:
classTable The table representing the class being exported to Lua.
name The name by which the method will be known in the Lua side.
func The C function wrapping the method.

Definition at line 90 of file LuaWrappers.hpp.


The documentation for this class was generated from the following file:
Generated on Tue Feb 6 09:30:26 2007 for Diluculum by  doxygen 1.4.6