60 explicit Context(Pt::Reflex::TypeManager& tm);
85 void bindType(Pt::Reflex::Type& type);
87 void bindFunction(Pt::Reflex::FunctionInfo& function);
89 void bind(Pt::Reflex::TypeManager& tm);
91 bool hasStandardGlobal(
const std::string& name)
const;
94 Pt::Reflex::TypeManager& _tm;
96 std::map<std::string, void*> _bindings;
97 std::vector<std::string> _standardGlobals;
lua_State * state() const
Returns the Lua state of this context.
Definition Context.h:68
Context(Pt::Reflex::TypeManager &tm)
Creates a Lua state and binds tm.
Pt::Reflex::TypeManager & typeManager()
Returns the type manager this context bound.
Definition Context.h:73
void reset()
Removes script-created globals and collects garbage.