Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

panda/src/putil/factoryParams.h File Reference

#include <pandabase.h>
#include "typedObject.h"
#include "typedReferenceCount.h"
#include "pointerTo.h"
#include "factoryParam.h"
#include "dcast.h"
#include "pvector.h"
#include "factoryParams.I"

Go to the source code of this file.

Compounds

class  FactoryParams
 An instance of this class is passed to the Factory when requesting it to do its business and construct a new something. More...


Functions

template<class ParamType> bool get_param_into (ParamType *&pointer, const FactoryParams &params)
 A handy convenience template function that extracts a parameter of the indicated type from the FactoryParams list.


Detailed Description

Definition in file factoryParams.h.


Function Documentation

template<class ParamType>
bool get_param_into ParamType *&  pointer,
const FactoryParams params
[inline]
 

A handy convenience template function that extracts a parameter of the indicated type from the FactoryParams list.

If the parameter type is found, it fills the pointer and returns true; otherwise, it sets the pointer to NULL and returns false.

Definition at line 41 of file factoryParams.I.


Generated on Fri May 2 00:46:10 2003 for Panda by doxygen1.3