51 INLINE
TypedObject *make_instance(
const std::string &type_name,
57 INLINE
TypedObject *make_instance_more_general(
const std::string &type_name,
62 void register_factory(
TypeHandle handle, BaseCreateFunc *func,
void *user_data =
nullptr);
64 size_t get_num_types()
const;
67 void clear_preferred();
69 size_t get_num_preferred()
const;
72 void write_types(std::ostream &out,
int indent_level = 0)
const;
83 BaseCreateFunc *_func;
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
This is an abstract class that all classes which use TypeHandle, and also provide virtual functions t...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
An instance of this class is passed to the Factory when requesting it to do its business and construc...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
A Factory can be used to create an instance of a particular subclass of some general base class.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
TypeHandle is the identifier used to differentiate C++ class types.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.