CorsixTH engine (the C++ part)
Open source implementation of Theme Hospital
Loading...
Searching...
No Matches
Public Member Functions | List of all members
lua_persist_basic_writer Class Reference

Basic implementation of persistence interface. More...

Inheritance diagram for lua_persist_basic_writer:
lua_persist_writer

Public Member Functions

 lua_persist_basic_writer (lua_State *L)
 
 ~lua_persist_basic_writer () override=default
 
lua_Stateget_stack () override
 
void init ()
 
int finish ()
 
void fast_write_stack_object (int iIndex) override
 
void write_stack_object (int iIndex) override
 
void write_object_raw ()
 
bool check_that_userdata_can_be_depersisted (int iIndex)
 
void write_prototype (lua_Debug *pProtoInfo, int iInstanceIndex)
 
void write_byte_stream (const uint8_t *pBytes, size_t iCount) override
 
void set_error (const char *sError) override
 
void set_error_object (int iStackObject, int self_index)
 
const charget_error ()
 
- Public Member Functions inherited from lua_persist_writer
virtual ~lua_persist_writer ()=default
 
template<class T >
void write_uint (T tValue)
 
template<class T >
void write_int (T tValue)
 
template<class T >
void write_float (T fValue)
 

Detailed Description

Basic implementation of persistence interface.

self - Instance of lua_persist_basic_writer allocated as a Lua userdata self metatable: __gc - ~lua_persist_basic_writer (via l_crude_gc) <file>:<line> - index of function prototype in already written data [1] - pre-populated prototype persistence names <file>:<line> - <name> err - an object which could not be persisted self environment: <object> - index of object in already written data [1] - permanents table self environment metatable

Constructor & Destructor Documentation

◆ lua_persist_basic_writer()

lua_persist_basic_writer::lua_persist_basic_writer ( lua_State L)
inlineexplicit

◆ ~lua_persist_basic_writer()

lua_persist_basic_writer::~lua_persist_basic_writer ( )
overridedefault

Member Function Documentation

◆ check_that_userdata_can_be_depersisted()

bool lua_persist_basic_writer::check_that_userdata_can_be_depersisted ( int  iIndex)
inline

◆ fast_write_stack_object()

void lua_persist_basic_writer::fast_write_stack_object ( int  iIndex)
inlineoverridevirtual

Implements lua_persist_writer.

◆ finish()

int lua_persist_basic_writer::finish ( )
inline

◆ get_error()

const char * lua_persist_basic_writer::get_error ( )
inline

◆ get_stack()

lua_State * lua_persist_basic_writer::get_stack ( )
inlineoverridevirtual

Implements lua_persist_writer.

◆ init()

void lua_persist_basic_writer::init ( )
inline

◆ set_error()

void lua_persist_basic_writer::set_error ( const char sError)
inlineoverridevirtual

Implements lua_persist_writer.

◆ set_error_object()

void lua_persist_basic_writer::set_error_object ( int  iStackObject,
int  self_index 
)
inline

◆ write_byte_stream()

void lua_persist_basic_writer::write_byte_stream ( const uint8_t *  pBytes,
size_t  iCount 
)
inlineoverridevirtual

Implements lua_persist_writer.

◆ write_object_raw()

void lua_persist_basic_writer::write_object_raw ( )
inline

◆ write_prototype()

void lua_persist_basic_writer::write_prototype ( lua_Debug pProtoInfo,
int  iInstanceIndex 
)
inline

◆ write_stack_object()

void lua_persist_basic_writer::write_stack_object ( int  iIndex)
inlineoverridevirtual

Implements lua_persist_writer.


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