26 register_type(
TypeHandle &type_handle,
const string &name) {
30 register_type(
TypeHandle &type_handle,
const string &name,
37 register_type(
TypeHandle &type_handle,
const string &name,
45 register_type(
TypeHandle &type_handle,
const string &name,
55 register_type(
TypeHandle &type_handle,
const string &name,
75 register_dynamic_type(
const string &name) {
79 register_dynamic_type(
const string &name,
TypeHandle parent1) {
86 register_dynamic_type(
const string &name,
95 register_dynamic_type(
const string &name,
106 register_dynamic_type(
const string &name,
TypeHandle register_dynamic_type(const string &name)
Registers a new type on-the-fly, presumably at runtime.
static TypeRegistry * ptr()
Returns the pointer to the global TypeRegistry object.
TypeHandle is the identifier used to differentiate C++ class types.
bool register_type(TypeHandle &type_handle, const string &name)
Creates a new Type of the given name and assigns a unique value to the type_handle.
void record_derivation(TypeHandle child, TypeHandle parent)
Records that the type referenced by child inherits directly from the type referenced by parent...