|
Simpatico
v1.10
|
Factory for specialized subclasses of SpecialPotential.
Definition at line 26 of file SpecialFactory.h.
#include <SpecialFactory.h>
Public Member Functions | |
| SpecialFactory () | |
| Constructor. More... | |
| virtual | ~SpecialFactory () |
| Destructor. More... | |
| void | addSubfactory (SpecialFactory &subfactory) |
| Add a new subfactory to the list. More... | |
| virtual SpecialPotential * | mdFactory (const std::string &subclass, System &system) const |
| Return a pointer to a new SpecialPotential, if possible. More... | |
Protected Member Functions | |
| SpecialPotential * | tryMdSubfactories (const std::string &className, System &system) const |
| Search subfactories for match to SpecialPotential subclass name. More... | |
| McMd::SpecialFactory::SpecialFactory | ( | ) |
|
inlinevirtual |
Destructor.
Definition at line 39 of file SpecialFactory.h.
References addSubfactory(), mdFactory(), and tryMdSubfactories().
| void McMd::SpecialFactory::addSubfactory | ( | SpecialFactory & | subfactory | ) |
Add a new subfactory to the list.
If this Factory has a param communicator, this method also sets the child subfactory communicator to that of the parent.
| subfactory | New subfactory to be added |
Definition at line 33 of file SpecialFactory.cpp.
Referenced by ~SpecialFactory().
|
virtual |
Return a pointer to a new SpecialPotential, if possible.
| subclass | name of desired subclass of SpecialPotential |
| system | associated System |
Definition at line 40 of file SpecialFactory.cpp.
Referenced by ~SpecialFactory().
|
protected |
Search subfactories for match to SpecialPotential subclass name.
| className | name of subclass |
| system | associated System |
Definition at line 60 of file SpecialFactory.cpp.
Referenced by ~SpecialFactory().
1.8.11