UGDK  0.5.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
ugdk::script::lua::Constant Class Reference

Represents a constant value from the Lua library. More...

#include <ugdk/script/languages/lua/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. More...
 
int value ()
 
bool operator== (const Constant &st) const
 
bool operator!= (const Constant &st) const
 
 operator int () const
 

Detailed Description

Represents a constant value from the Lua library.

Constructor & Destructor Documentation

template<typename Callable >
ugdk::script::lua::Constant::Constant ( Callable  c)
inlineexplicit

Constructs a Lua constant frm the result of a call to c.

Parameters
c- A callable object which must return int when called with zero arguments.

Member Function Documentation

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

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