Rosetta Protocols  2014.35
Public Types | Public Member Functions | Static Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | Static Private Attributes | List of all members
protocols::jd2::JobInputterFactory Class Reference

#include <JobInputterFactory.hh>

Public Types

typedef std::map< std::string,
JobInputterCreatorOP
JobInputterMap
 

Public Member Functions

virtual ~JobInputterFactory ()
 
void factory_register (JobInputterCreatorOP creator)
 add a JobInputter prototype, using its default type name as the map key More...
 
JobInputterOP get_new_JobInputter ()
 return JobInputter defined by input parameters (contained in option system and #defines for MPI, etc) More...
 

Static Public Member Functions

static JobInputterFactoryget_instance ()
 static function to get the instance of ( pointer to) this singleton class More...
 

Private Member Functions

JobInputterOP get_JobInputter_from_string (std::string const &job_inputter_type)
 
 JobInputterFactory ()
 
 JobInputterFactory (JobInputterFactory const &)
 
JobInputterFactory const & operator= (JobInputterFactory const &)
 

Static Private Member Functions

static JobInputterFactorycreate_singleton_instance ()
 private singleton creation function to be used with utility::thread::threadsafe_singleton More...
 

Private Attributes

JobInputterMap job_inputter_creator_map_
 

Static Private Attributes

static JobInputterFactoryinstance_
 

Member Typedef Documentation

Constructor & Destructor Documentation

protocols::jd2::JobInputterFactory::~JobInputterFactory ( )
virtual
protocols::jd2::JobInputterFactory::JobInputterFactory ( )
private
protocols::jd2::JobInputterFactory::JobInputterFactory ( JobInputterFactory const &  )
private

Member Function Documentation

JobInputterFactory * protocols::jd2::JobInputterFactory::create_singleton_instance ( )
staticprivate

private singleton creation function to be used with utility::thread::threadsafe_singleton

References JobInputterFactory().

Referenced by get_instance().

void protocols::jd2::JobInputterFactory::factory_register ( JobInputterCreatorOP  creator)

add a JobInputter prototype, using its default type name as the map key

References job_inputter_creator_map_, runtime_assert, and utility_exit_with_message.

JobInputterFactory * protocols::jd2::JobInputterFactory::get_instance ( )
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::jd2::JobDistributorFactory::create_job_inputter().

JobInputterOP protocols::jd2::JobInputterFactory::get_JobInputter_from_string ( std::string const &  job_inputter_type)
private

return new JobInputter by key lookup in map

References job_inputter_creator_map_, protocols::jd2::TR, and utility_exit_with_message.

Referenced by get_new_JobInputter().

JobInputterOP protocols::jd2::JobInputterFactory::get_new_JobInputter ( )
JobInputterFactory const& protocols::jd2::JobInputterFactory::operator= ( JobInputterFactory const &  )
private

Member Data Documentation

JobInputterFactory * protocols::jd2::JobInputterFactory::instance_
staticprivate

Referenced by get_instance().

JobInputterMap protocols::jd2::JobInputterFactory::job_inputter_creator_map_
private

The documentation for this class was generated from the following files: