30 template<
class ParamType>
34 if (param ==
nullptr) {
38 DCAST_INTO_R(pointer, param,
false);
void * get_user_data() const
Returns the custom pointer that was associated with the factory function.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
The base class of any number of specific pieces of parameter information that might be passed to a Fa...
FactoryParam * get_param_of_type(TypeHandle type) const
Returns the first parameter that matches exactly the indicated type, or if there are no exact matches...
An instance of this class is passed to the Factory when requesting it to do its business and construc...
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...