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

Factory< Type > Class Template Reference

#include <factory.h>

Inheritance diagram for Factory< Type >:

FactoryBase List of all members.

Public Types

typedef Type * CreateFunc (const FactoryParams &params)

Public Member Functions

INLINE Type * make_instance (TypeHandle handle, const FactoryParams &params=FactoryParams())
INLINE Type * make_instance (const string &type_name, const FactoryParams &params=FactoryParams())
INLINE Type * make_instance_more_general (TypeHandle handle, const FactoryParams &params=FactoryParams())
INLINE Type * make_instance_more_general (const string &type_name, const FactoryParams &params=FactoryParams())
INLINE void register_factory (TypeHandle handle, CreateFunc *func)

template<class Type>
class Factory< Type >


Member Typedef Documentation

template<class Type>
typedef Type* Factory< Type >::CreateFunc(const FactoryParams &params)
 

Definition at line 47 of file factory.h.


Member Function Documentation

template<class Type>
INLINE Type* Factory< Type >::make_instance const string &  type_name,
const FactoryParams params = FactoryParams()
 

Reimplemented from FactoryBase.

template<class Type>
INLINE Type* Factory< Type >::make_instance TypeHandle  handle,
const FactoryParams params = FactoryParams()
 

Reimplemented from FactoryBase.

template<class Type>
INLINE Type* Factory< Type >::make_instance_more_general const string &  type_name,
const FactoryParams params = FactoryParams()
 

Reimplemented from FactoryBase.

template<class Type>
INLINE Type* Factory< Type >::make_instance_more_general TypeHandle  handle,
const FactoryParams params = FactoryParams()
 

Reimplemented from FactoryBase.

template<class Type>
INLINE void Factory< Type >::register_factory TypeHandle  handle,
CreateFunc func
 


The documentation for this class was generated from the following file:
Generated on Fri Apr 18 00:12:15 2003 for Panda by doxygen1.3