TypeManager Class Reference

#include <Pt/Lua/TypeManager.h>

Type catalog for Lua bindings. More...

Public Member Functions

 TypeManager ()
 Creates a catalog with Lua builtin types.
 ~TypeManager ()
 Destroys the catalog and its builtin types.
Pt::Reflex::Type & voidType () const
 Returns the builtin void type.

Detailed Description

TypeManager is the Lua catalog the runtime group described. It is a Pt::Reflex::TypeManager that already registers int, long, float, double, bool, string, void, and AsyncCall*. Those builtins exist so argument conversion and asynchronous calls have types before any user type is added.

Register user types and functions with the inherited Reflex operations before a Context is constructed. The manager does not own those user types. A parent type manager is visible to binding; put shared types on the parent and Lua-specific functions on a child if the same catalog serves more than one context.

voidType() is the void entry of the builtin set, used when an asynchronous call has no result. The manager is not copyable.