|
Rosetta 3.5
|
WOrkUnitList is a store for WorkUnitCOPs. THe purpose of this class is to store all the possible WorkUnits that a protocol might need. When needed these are cloned and then used. THis class acts like a library of WorkUnit blueprints. More...
#include <WorkUnitList.hh>

Public Member Functions | |
| WorkUnitList () | |
| void | register_work_unit (const std::string &name, WorkUnitBaseOP the_work_unit) |
| Add a WorkUnit to the list, each workunit must be named with a string that is used later to retrieve it ! More... | |
| const WorkUnitBaseCOP | get_work_unit (const std::string &name) const |
| Return a COP to a workunit with a given name. If multiple WUs were registered with the same name, the first is returned. More... | |
| const WorkUnitBaseOP | get_work_unit_clone (const std::string &name) const |
| Return an OP to a workunit with a given name but clone it. More... | |
| const WorkUnitBaseCOP | get_work_unit (const WorkUnitBase &wu) const |
| Return an OP to a workunit with the same name as the one given as a parameter. More... | |
| const WorkUnitBaseOP | get_work_unit_clone (const WorkUnitBase &wu) const |
| Return an OP to a workunit with the same name as the one given as a parameter, but as a clone. More... | |
| void | merge (const WorkUnitList &source) |
Protected Attributes | |
| std::map< std::string, WorkUnitBaseCOP > | work_unit_list_ |
| An STL map is used to associate the WUs with strings. More... | |
WOrkUnitList is a store for WorkUnitCOPs. THe purpose of this class is to store all the possible WorkUnits that a protocol might need. When needed these are cloned and then used. THis class acts like a library of WorkUnit blueprints.
Definition at line 36 of file WorkUnitList.hh.
|
inline |
Definition at line 38 of file WorkUnitList.hh.
| const WorkUnitBaseCOP protocols::wum::WorkUnitList::get_work_unit | ( | const std::string & | name) | const |
Return a COP to a workunit with a given name. If multiple WUs were registered with the same name, the first is returned.
Definition at line 33 of file WorkUnitList.cc.
References protocols::wum::TR(), and work_unit_list_.
Referenced by protocols::wum::MPI_Relax::fill_outbound_queue(), get_work_unit_clone(), protocols::wum::WorkUnitManager::read_work_unit(), and protocols::wum::MPI_WorkUnitManager::receive_MPI_workunit().
|
inline |
Return an OP to a workunit with the same name as the one given as a parameter.
Definition at line 50 of file WorkUnitList.hh.
References get_work_unit(), and protocols::wum::WorkUnitBase::get_wu_type().
Referenced by get_work_unit().
|
inline |
Return an OP to a workunit with a given name but clone it.
Definition at line 47 of file WorkUnitList.hh.
References get_work_unit().
|
inline |
Return an OP to a workunit with the same name as the one given as a parameter, but as a clone.
Definition at line 53 of file WorkUnitList.hh.
References core::io::serialization::clone(), get_work_unit(), and protocols::wum::WorkUnitBase::get_wu_type().
| void protocols::wum::WorkUnitList::merge | ( | const WorkUnitList & | source) |
Definition at line 43 of file WorkUnitList.cc.
References work_unit_list_.
Referenced by protocols::wum::WorkUnitManager::register_work_units().
| void protocols::wum::WorkUnitList::register_work_unit | ( | const std::string & | name, |
| WorkUnitBaseOP | the_work_unit | ||
| ) |
Add a WorkUnit to the list, each workunit must be named with a string that is used later to retrieve it !
Definition at line 28 of file WorkUnitList.cc.
References work_unit_list_.
Referenced by protocols::wum::MPI_Relax::register_work_units().
|
protected |
An STL map is used to associate the WUs with strings.
Definition at line 59 of file WorkUnitList.hh.
Referenced by get_work_unit(), merge(), and register_work_unit().
1.8.4