![]() |
Rosetta Core
2014.16.56682
|
#include <ConstraintFactory.hh>
Public Member Functions | |
| void | factory_register (ConstraintCreatorCOP creator) |
| scoring::constraints::ConstraintOP | newConstraint (std::string const &type_name) |
| utility::vector1< std::string > | get_cst_names () const |
| void | replace_creator (ConstraintCreatorCOP creator) |
| Replace the load-time ConstraintCreator with another creator. More... | |
| ConstraintCreatorCOP | get_creator (std::string const &type_name) |
Static Public Member Functions | |
| static ConstraintFactory * | get_instance () |
| static function to get the instance of ( pointer to) this singleton class More... | |
Private Types | |
| typedef std::map< std::string, scoring::constraints::ConstraintCreatorCOP > | ConstraintCreatorMap |
Private Member Functions | |
| ConstraintFactory () | |
| ConstraintFactory (ConstraintFactory const &) | |
| ConstraintFactory const & | operator= (ConstraintFactory const &) |
Static Private Member Functions | |
| static ConstraintFactory * | create_singleton_instance () |
| private singleton creation function to be used with utility::thread::threadsafe_singleton More... | |
Private Attributes | |
| ConstraintCreatorMap | cst_types_ |
Static Private Attributes | |
| static ConstraintFactory * | instance_ |
|
private |
|
private |
Private constructor insures correctness of singleton.
Referenced by create_singleton_instance().
|
private |
|
staticprivate |
private singleton creation function to be used with utility::thread::threadsafe_singleton
References ConstraintFactory().
Referenced by get_instance().
| void core::scoring::constraints::ConstraintFactory::factory_register | ( | ConstraintCreatorCOP | creator | ) |
References cst_types_.
| ConstraintCreatorCOP core::scoring::constraints::ConstraintFactory::get_creator | ( | std::string const & | type_name | ) |
References cst_types_, core::sequence::end, get_cst_names(), and utility_exit_with_message.
| utility::vector1< std::string > core::scoring::constraints::ConstraintFactory::get_cst_names | ( | ) | const |
References cst_types_, and core::sequence::end.
Referenced by get_creator(), and newConstraint().
|
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 core::scoring::constraints::ConstraintIO::get_cst_factory(), and core::scoring::constraints::ConstraintIO::read_cst_bindingsites().
| ConstraintOP core::scoring::constraints::ConstraintFactory::newConstraint | ( | std::string const & | type_name | ) |
|
private |
| void core::scoring::constraints::ConstraintFactory::replace_creator | ( | ConstraintCreatorCOP | creator | ) |
Replace the load-time ConstraintCreator with another creator.
WARNING WARNING WARNING NOT THREADSAFE!
References cst_types_.
|
private |
Referenced by factory_register(), get_creator(), get_cst_names(), newConstraint(), and replace_creator().
|
staticprivate |
Referenced by get_instance().
1.8.7