15 #include "factoryParams.h"
43 _params.push_back(param);
64 return _params.size();
75 nassertr(n >= 0 && n < (
int)_params.size(), NULL);
89 Params::const_iterator pi;
92 for (pi = _params.begin(); pi != _params.end(); ++pi) {
94 DCAST_INTO_R(param, *pi, NULL);
103 for (pi = _params.begin(); pi != _params.end(); ++pi) {
105 DCAST_INTO_R(param, *pi, NULL);
FactoryParam * get_param(int n) const
Returns the nth parameter that has been added to the set.
bool is_of_type(TypeHandle handle) const
Returns true if the current object is or derives from the indicated type.
The base class of any number of specific pieces of parameter information that might be passed to a Fa...
bool is_exact_type(TypeHandle handle) const
Returns true if the current object is the indicated type exactly.
void clear()
Removes all parameters from 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...
int get_num_params() const
Returns the number of parameters that have been added to the set.
TypeHandle is the identifier used to differentiate C++ class types.