|
SL_SYMBOL | Table (const Map &map) |
|
SL_SYMBOL | Table (State L) |
| Constructs a table from the current Lua stack.
|
|
SL_SYMBOL const Data & | getRaw (const std::string &name) const |
|
template<typename T > |
SL_SYMBOL void | each (std::function< void(uint32_t, T &)> lambda) |
|
template<typename T > |
SL_SYMBOL void | each (std::function< void(uint32_t, const T &)> lambda) const |
|
template<typename T > |
SL_SYMBOL void | try_get (const std::string &name, std::function< void(T &)> lambda, std::optional< std::function< void()> > if_not=std::nullopt) |
|
template<typename T > |
SL_SYMBOL void | try_get (const std::string &name, std::function< void(const T &)> lambda, std::optional< std::function< void()> > if_not=std::nullopt) const |
|
SL_SYMBOL void | fromTable (const Table &table) |
| Make the entries equivalent to another table.
|
|
SL_SYMBOL void | superimpose (const Table &table) |
| Copy the entries from a table into this table.
|
|
SL_SYMBOL void | superimpose (const Map &map) |
| Copy the entries from a map into this table.
|
|
SL_SYMBOL bool | hasValue (const std::string &name) const |
|
template<typename T > |
SL_SYMBOL T & | get (const std::string &name) |
| Get a reference to a value in the table.
|
|
template<typename T > |
SL_SYMBOL std::vector< T > | get () const |
|
template<typename T > |
SL_SYMBOL const T & | get (const std::string &name) const |
| Get a constant reference to a value in the table.
|
|
SL_SYMBOL void * | get (const std::string &name) const |
|
template<typename T > |
SL_SYMBOL void | set (const std::string &name, const T &value) |
| Set the value associated with a key.
|
|
SL_SYMBOL void | set (const std::string &name, void *value) |
|
SL_SYMBOL const Map & | getMap () const |
| Get the raw mapping of this table.
|
|
SL_SYMBOL void | toStack (State L) const |
| Dump all the map information onto the given Lua stack.
|
|
SL_SYMBOL void | fromStack (State L) |
|
SL_SYMBOL std::string | toString (uint32_t indent=0) const |
|