UGDK
|
Represents a constant value from the Lua library. More...
#include <header.h>
Classes | |
struct | err |
struct | gc |
Public Member Functions | |
template<typename Callable > | |
Constant (Callable c) | |
Constructs a Lua constant frm the result of a call to c. | |
int | value () |
bool | operator== (const Constant &st) const |
bool | operator!= (const Constant &st) const |
operator int () const |
Represents a constant value from the Lua library.
ugdk::script::lua::Constant::Constant | ( | Callable | c | ) | [inline, explicit] |
Constructs a Lua constant frm the result of a call to c.
c | - A callable object which must return int when called with zero arguments. |
ugdk::script::lua::Constant::operator int | ( | ) | const [inline] |
bool ugdk::script::lua::Constant::operator!= | ( | const Constant & | st | ) | const [inline] |
bool ugdk::script::lua::Constant::operator== | ( | const Constant & | st | ) | const [inline] |
int ugdk::script::lua::Constant::value | ( | ) | [inline] |