Go to the documentation of this file.
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>
This is our own Panda specialization on the default STL vector.
The base class of any number of specific pieces of parameter information that might be passed to a Fa...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
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.
A base class for things which need to inherit from both TypedObject and from ReferenceCount.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
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...
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.