![]() |
Rosetta Protocols
2014.35
|
#include <MoverFactory.hh>
Public Types | |
typedef std::map< std::string, MoverCreatorOP > | MoverMap |
typedef utility::tag::Tag | Tag |
typedef utility::tag::TagCOP | TagCOP |
typedef core::pose::Pose | Pose |
Public Member Functions | |
virtual | ~MoverFactory () |
void | factory_register (MoverCreatorOP creator) |
add a Mover prototype, using its default type name as the map key More... | |
MoverOP | newMover (std::string const &) |
Create a mover given its identifying string. More... | |
MoverOP | newMover (TagCOP, basic::datacache::DataMap &, protocols::filters::Filters_map const &, Movers_map const &, Pose const &) |
return new Mover by Tag parsing; the identifying string for the Mover is in the Tag More... | |
Static Public Member Functions | |
static MoverFactory * | get_instance () |
static function to get the instance of ( pointer to) this singleton class More... | |
Private Member Functions | |
MoverFactory () | |
MoverFactory (MoverFactory const &) | |
MoverFactory const & | operator= (MoverFactory const &) |
Static Private Member Functions | |
static MoverFactory * | create_singleton_instance () |
private singleton creation function to be used with utility::thread::threadsafe_singleton More... | |
Private Attributes | |
MoverMap | mover_creator_map_ |
std::set< std::string > | forbidden_names_ |
Static Private Attributes | |
static MoverFactory * | instance_ |
|
virtual |
|
private |
References forbidden_names_.
Referenced by create_singleton_instance().
|
private |
|
staticprivate |
private singleton creation function to be used with utility::thread::threadsafe_singleton
References MoverFactory().
Referenced by get_instance().
void protocols::moves::MoverFactory::factory_register | ( | MoverCreatorOP | creator | ) |
add a Mover prototype, using its default type name as the map key
References forbidden_names_, mover_creator_map_, and runtime_assert.
|
static |
static function to get the instance of ( pointer to) this singleton class
References create_singleton_instance(), instance_, and utility::thread::safely_create_singleton().
Referenced by protocols::loops::LoopMoverFactory::create_loop_mover(), protocols::rosetta_scripts::RosettaScriptsParser::generate_mover_for_protocol(), protocols::rosetta_scripts::MultipleOutputWrapper::generate_pose(), protocols::rosetta_scripts::AdditionalOutputWrapper::generate_pose(), protocols::rosetta_scripts::RosettaScriptsParser::instantiate_mover(), protocols::loops::loop_mover::refine::LoopRefineInnerCycleFactory::make_inner_cycle_from_string_name(), protocols::rosetta_scripts::parse_mover_subtag(), protocols::environment::ScriptCM::parse_my_tag(), protocols::rosetta_scripts::MultipleOutputWrapper::parse_my_tag(), protocols::rosetta_scripts::AdditionalOutputWrapper::parse_my_tag(), and protocols::canonical_sampling::MetropolisHastingsMover::parse_my_tag().
MoverOP protocols::moves::MoverFactory::newMover | ( | std::string const & | mover_type | ) |
Create a mover given its identifying string.
return new Mover by key lookup in mover_prototype_map_ (new Mover parses Tag if provided)
References mover_creator_map_, and protocols::moves::TR.
Referenced by protocols::rosetta_scripts::MultipleOutputWrapper::generate_pose(), protocols::rosetta_scripts::AdditionalOutputWrapper::generate_pose(), protocols::loops::loop_mover::refine::LoopRefineInnerCycleFactory::make_inner_cycle_from_string_name(), newMover(), and protocols::canonical_sampling::MetropolisHastingsMover::parse_my_tag().
MoverOP protocols::moves::MoverFactory::newMover | ( | TagCOP | tag, |
basic::datacache::DataMap & | data, | ||
protocols::filters::Filters_map const & | filters, | ||
moves::Movers_map const & | movers, | ||
Pose const & | pose | ||
) |
return new Mover by Tag parsing; the identifying string for the Mover is in the Tag
return new Mover by Tag parsing
References newMover(), and runtime_assert.
|
private |
|
private |
Referenced by factory_register(), and MoverFactory().
|
staticprivate |
Referenced by get_instance().
|
private |
Referenced by factory_register(), and newMover().