ProtoMol - an object-oriented component based framework for Molecular Dynamics simulations.

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

ProtoMol::FactoryBase< Type > Class Template Reference

#include <Factory.h>

List of all members.

Protected Member Functions

 FactoryBase ()
virtual ~FactoryBase ()
const Type * getPrototype (const std::string &id) const
void clear ()
virtual std::string doPrint () const=0
virtual void doRegisterHelpText () const=0

Protected Attributes

std::map< std::string, const
Type *, ltstrNocase
myExemplars
std::map< std::string, const
Type *, ltstrNocase
myAliasExemplars
std::set< const Type * > myPointers
bool myCache

Private Member Functions

 FactoryBase (const FactoryBase &)
FactoryBaseoperator= (const FactoryBase &)


Detailed Description

template<typename Type>
class ProtoMol::FactoryBase< Type >

Base class of all factories templated with the family type. Container to keep pointers for each prototype exemplar and their aliases, where the real prototype is keep in a separate set.


Constructor & Destructor Documentation

template<typename Type>
ProtoMol::FactoryBase< Type >::FactoryBase  )  [inline, protected]
 

template<typename Type>
virtual ProtoMol::FactoryBase< Type >::~FactoryBase  )  [inline, protected, virtual]
 

template<typename Type>
ProtoMol::FactoryBase< Type >::FactoryBase const FactoryBase< Type > &   )  [inline, private]
 


Member Function Documentation

template<typename Type>
void ProtoMol::FactoryBase< Type >::clear  )  [inline, protected]
 

template<typename Type>
virtual std::string ProtoMol::FactoryBase< Type >::doPrint  )  const [protected, pure virtual]
 

Hook method called from static method print.

Implemented in ProtoMol::ForceFactoryDetails, ProtoMol::IntegratorFactoryDetails, ProtoMol::OutputFactoryDetails, and ProtoMol::TopologyFactoryDetails.

template<typename Type>
virtual void ProtoMol::FactoryBase< Type >::doRegisterHelpText  )  const [protected, pure virtual]
 

Hook method called from static method registerHelpText.

Implemented in ProtoMol::ForceFactoryDetails, ProtoMol::IntegratorFactoryDetails, ProtoMol::OutputFactoryDetails, and ProtoMol::TopologyFactoryDetails.

template<typename Type>
const Type* ProtoMol::FactoryBase< Type >::getPrototype const std::string &  id  )  const [inline, protected]
 

template<typename Type>
FactoryBase& ProtoMol::FactoryBase< Type >::operator= const FactoryBase< Type > &   )  [inline, private]
 


Member Data Documentation

template<typename Type>
std::map<std::string,const Type*,ltstrNocase> ProtoMol::FactoryBase< Type >::myAliasExemplars [protected]
 

template<typename Type>
bool ProtoMol::FactoryBase< Type >::myCache [mutable, protected]
 

template<typename Type>
std::map<std::string,const Type*,ltstrNocase> ProtoMol::FactoryBase< Type >::myExemplars [protected]
 

template<typename Type>
std::set<const Type*> ProtoMol::FactoryBase< Type >::myPointers [protected]
 


The documentation for this class was generated from the following file: Last update: . GNU GENERAL PUBLIC LICENSE, copyrighted by the University of Notre Dame and the University of Bergen, Norway.