Go to the documentation of this file.
26 nassertr(handle != TypeHandle::none(),
nullptr);
45 nassertr(handle != TypeHandle::none(),
nullptr);
TypeHandle find_type(const std::string &name) const
Looks for a previously-registered type of the given name.
TypedObject * make_instance(TypeHandle handle, const FactoryParams ¶ms)
Attempts to create a new instance of some class of the indicated type, or some derivative if necessar...
TypeHandle is the identifier used to differentiate C++ class types.
An instance of this class is passed to the Factory when requesting it to do its business and construc...
static TypeRegistry * ptr()
Returns the pointer to the global TypeRegistry object.
TypedObject * make_instance_more_general(TypeHandle handle, const FactoryParams ¶ms)
Attempts to create an instance of the type requested, or some base type of the type requested.
This is an abstract class that all classes which use TypeHandle, and also provide virtual functions t...