21 nassertv(param !=
nullptr);
22 _params.push_back(param);
38 return _params.size();
46 nassertr(n >= 0 && n < (
int)_params.size(),
nullptr);
57 Params::const_iterator pi;
60 for (pi = _params.begin(); pi != _params.end(); ++pi) {
62 DCAST_INTO_R(param, *pi,
nullptr);
63 nassertr(param !=
nullptr,
nullptr);
71 for (pi = _params.begin(); pi != _params.end(); ++pi) {
73 DCAST_INTO_R(param, *pi,
nullptr);
74 nassertr(param !=
nullptr,
nullptr);
bool is_exact_type(TypeHandle handle) const
Returns true if the current object is the indicated type exactly.
int get_num_params() const
Returns the number of parameters that have been added to the set.
The base class of any number of specific pieces of parameter information that might be passed to a Fa...
FactoryParam * get_param(int n) const
Returns the nth parameter that has been added to the set.
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...
void clear()
Removes all parameters from the set.
bool is_of_type(TypeHandle handle) const
Returns true if the current object is or derives from the indicated type.
TypeHandle is the identifier used to differentiate C++ class types.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.