5#ifndef PT_LUA_TYPEMANAGER_H
6#define PT_LUA_TYPEMANAGER_H
9#include <Pt/Lua/AsyncCall.h>
10#include <Pt/Reflex/TypeManager.h>
11#include <Pt/Reflex/Function.h>
12#include <Pt/Reflex/Type.h>
26template <
typename... As>
68 {
return *_voidType; }
71 Pt::Reflex::BasicType<int>* _intType;
72 Pt::Reflex::BasicType<long>* _longType;
73 Pt::Reflex::BasicType<float>* _floatType;
74 Pt::Reflex::BasicType<double>* _doubleType;
75 Pt::Reflex::BasicType<bool>* _boolType;
76 Pt::Reflex::BasicType<std::string>* _stringType;
77 Pt::Reflex::Type* _voidType;
78 Pt::Reflex::BasicType<AsyncCall*>* _asyncCallType;
Asynchronous native call from Lua.
Definition AsyncCall.h:42
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.
Definition TypeManager.h:67
Pt::Reflex::BasicFunction< AsyncCall *, As... > AsyncFunction
Reflex function that returns an asynchronous Lua call.
Definition TypeManager.h:27
Lua runtime and reflected bindings.
Core module.
Definition Allocator.h:33