#include <LuaUserData.hpp>
Public Member Functions | |
| LuaUserData (size_t size) | |
| LuaUserData (const LuaUserData &other) | |
| const LuaUserData & | operator= (const LuaUserData &rhs) |
| size_t | getSize () const |
| void * | getData () |
Returns a pointer to the data stored in this LuaUserData. | |
| const void * | getData () const |
| bool | operator> (const LuaUserData &rhs) const |
| bool | operator< (const LuaUserData &rhs) const |
| bool | operator== (const LuaUserData &rhs) const |
| bool | operator!= (const LuaUserData &rhs) const |
The "different than" operator for LuaUserData. | |
Private Attributes | |
| size_t | size_ |
The number of bytes stored "in" data_. | |
| boost::scoped_array< char > | data_ |
A (smart) pointer to the data owned by this LuaUserData. | |
LuaValue when it holds userdata. LuaUserData has no counterpart in a Lua state. It is simply a block of memory that can be (via a LuaValue and a LuaState) stored in or read from a userdata in Lua state.
Definition at line 45 of file LuaUserData.hpp.
|
|
Constructs a |
|
|
The copy constructor. The newly constructed |
|
|
Returns a Definition at line 79 of file LuaUserData.hpp. References data_. |
|
|
Returns a pointer to the data stored in this
Definition at line 74 of file LuaUserData.hpp. References data_. |
|
|
Returns the size, in bytes, of the data stored in this Definition at line 71 of file LuaUserData.hpp. References size_. |
|
|
The "different than" operator for
|
|
|
The "less than" operator for
|
|
|
Assigns a |
|
|
The "equal to" operator for
|
|
|
The "greater than" operator for
|
|
|
A (smart) pointer to the data owned by this
Definition at line 117 of file LuaUserData.hpp. Referenced by getData(). |
|
|
The number of bytes stored "in"
Definition at line 114 of file LuaUserData.hpp. Referenced by getSize(). |
1.4.6