14 #ifndef FACTORYPARAMS_H
15 #define FACTORYPARAMS_H
48 int get_num_params()
const;
53 INLINE
void *get_user_data()
const;
59 void *_user_data =
nullptr;
64 template<
class ParamType>
A Factory can be used to create an instance of a particular subclass of some general base class.
The base class of any number of specific pieces of parameter information that might be passed to a Fa...
An instance of this class is passed to the Factory when requesting it to do its business and construc...
TypeHandle is the identifier used to differentiate C++ class types.
A base class for things which need to inherit from both TypedObject and from ReferenceCount.
This is our own Panda specialization on the default STL vector.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
bool get_param_into(ParamType *&pointer, const FactoryParams ¶ms)
A handy convenience template function that extracts a parameter of the indicated type from the Factor...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.