SimpleFastOpenAtomicVisualiser
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
LuaBool Struct Reference

Interop for booleans Lua. More...

#include <LuaBool.h>

Public Member Functions

 LuaBool ()
 Construct a false.
 
void read (lua_State *lua, int index)
 Read the bool from stack index index.
 
bool readField (lua_State *lua, const char *name)
 Read the bool from a table field.
 
bool readGlobal (lua_State *lua, const char *name)
 Read the bool from a global table field.
 
bool operator== (const bool &rhs)
 
 operator bool ()
 

Public Attributes

bool bit
 

Detailed Description

Interop for booleans Lua.

Constructor & Destructor Documentation

◆ LuaBool()

LuaBool::LuaBool ( )
inline

Construct a false.

Member Function Documentation

◆ operator bool()

LuaBool::operator bool ( )
inline

◆ operator==()

bool LuaBool::operator== ( const bool rhs)
inline

◆ read()

void LuaBool::read ( lua_State lua,
int  index 
)
inline

Read the bool from stack index index.

Parameters
luathe Lua context.
indexthe stack index.

◆ readField()

bool LuaBool::readField ( lua_State lua,
const char name 
)
inline

Read the bool from a table field.

Parameters
luathe Lua context.
namethe field name.
Returns
true succesful read.
false unsuccesful read.

◆ readGlobal()

bool LuaBool::readGlobal ( lua_State lua,
const char name 
)
inline

Read the bool from a global table field.

Parameters
luathe Lua context.
namethe field name.
Returns
true succesful read.
false unsuccesful read.

Member Data Documentation

◆ bit

bool LuaBool::bit

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