Thrive
Public Member Functions | Static Public Member Functions | List of all members
thrive::StorageList Class Reference

A list of StorageContainers. More...

#include <serialization.h>

Inheritance diagram for thrive::StorageList:

Public Member Functions

 StorageList ()
 Constructor.
 
 StorageList (const StorageList &other)
 Copy Constructor. More...
 
 StorageList (StorageList &&other)
 Move constructor. More...
 
StorageList & operator= (const StorageList &other)
 Copy assignment. More...
 
StorageList & operator= (StorageList &&other)
 Move assignment. More...
 
void append (StorageContainer element)
 Appends a StorageContainer to this list. More...
 
StorageContainer & get (size_t index)
 Retrieves an element by index. More...
 

Static Public Member Functions

static luabind::scope luaBindings ()
 Lua bindings. More...
 

Detailed Description

A list of StorageContainers.

Constructor & Destructor Documentation

thrive::StorageList::StorageList ( const StorageList &  other)

Copy Constructor.

Parameters
other
thrive::StorageList::StorageList ( StorageList &&  other)

Move constructor.

Parameters
other

Member Function Documentation

void thrive::StorageList::append ( StorageContainer  element)

Appends a StorageContainer to this list.

Parameters
elementThe container to append
StorageContainer& thrive::StorageList::get ( size_t  index)

Retrieves an element by index.

Parameters
indexThe index to retrieve
Returns
The element at index
Exceptions
std::out_of_rangeif index is out of range
static luabind::scope thrive::StorageList::luaBindings ( )
static

Lua bindings.

Returns
StorageList& thrive::StorageList::operator= ( const StorageList &  other)

Copy assignment.

Parameters
other
StorageList& thrive::StorageList::operator= ( StorageList &&  other)

Move assignment.

Parameters
other

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