A non-copyable factory for instantiating TopologyClaimers by name. Commonly used TopologyClaimers are registered in the constructor. Additional claimers can be registered after the fact using the add_type() method. APL Question: Should this be one-instance-per-program (singleton) or one-instance-per-job?
More...
#include <TopologyClaimerFactory.hh>
A non-copyable factory for instantiating TopologyClaimers by name. Commonly used TopologyClaimers are registered in the constructor. Additional claimers can be registered after the fact using the add_type() method. APL Question: Should this be one-instance-per-program (singleton) or one-instance-per-job?
◆ TopologyClaimerFactory() [1/2]
| protocols::topology_broker::TopologyClaimerFactory::TopologyClaimerFactory |
( |
| ) |
|
|
private |
Constructs a new instance and initializes the lookup table <claimers_> with commonly used types.
References add_type().
◆ TopologyClaimerFactory() [2/2]
◆ ~TopologyClaimerFactory()
| protocols::topology_broker::TopologyClaimerFactory::~TopologyClaimerFactory |
( |
| ) |
|
|
privatedefault |
Frees resources associated with this object.
◆ add_type() [1/2]
| void protocols::topology_broker::TopologyClaimerFactory::add_type |
( |
const std::string & |
name, |
|
|
TopologyClaimerOP |
claimer |
|
) |
| |
◆ add_type() [2/2]
| void protocols::topology_broker::TopologyClaimerFactory::add_type |
( |
TopologyClaimerOP |
claimer | ) |
|
Registers the TopologyClaimer using the name returned by claimer->type(). Instances of this class can be retrieved by calling newTopologyClaimer(<name>).
References add_type().
◆ newTopologyClaimer()
| TopologyClaimerOP protocols::topology_broker::TopologyClaimerFactory::newTopologyClaimer |
( |
const std::string & |
name | ) |
const |
◆ operator=()
◆ utility::SingletonBase< TopologyClaimerFactory >
◆ claimers_
| std::map<std::string, TopologyClaimerOP> protocols::topology_broker::TopologyClaimerFactory::claimers_ |
|
mutableprivate |
The documentation for this class was generated from the following files: