LazyTable.h
71 virtual void setInternal(const std::string& name, Element& element, const momemta::any& value) override;
A specialization of ParameterSet for lazy loading of lua tables.
Definition: LazyTable.h:62
std::string key
The name of the field inside the table to retrieve when evaluated.
Definition: LazyTable.h:37
lua_State * L
The global lua state. This state must be valid for as long as this instance.
Definition: utils.h:55
virtual momemta::any operator()() const override
Evaluate the lazy value.
Definition: LazyTable.cc:52
void ensure_created()
Ensure the global table referenced by this struct exist. If not, create it.
Definition: LazyTable.cc:36
Definition: any.h:49