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::qsar::scoring_grid::GridFactory Class Reference

#include <GridFactory.hh>

Public Types

typedef std::map< std::string,
GridCreatorOP
GridMap
 
typedef utility::tag::Tag Tag
 
typedef utility::tag::TagCOP TagCOP
 

Public Member Functions

virtual ~GridFactory ()
 
void factory_register (GridCreatorOP creator)
 add a Grid prototype, using it's default type name as the map key More...
 
GridBaseOP new_grid (utility::tag::TagCOP tag) const
 create Grid given grid tag More...
 
GridBaseOP new_grid (utility::json_spirit::mObject data) const
 create Grid given a serialized grid object More...
 

Static Public Member Functions

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

Private Member Functions

 GridFactory ()
 
 GridFactory (GridFactory const &)
 
GridFactory const & operator= (GridFactory const &)
 

Static Private Member Functions

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

Private Attributes

GridMap grid_creator_map_
 

Static Private Attributes

static GridFactoryinstance_
 

Member Typedef Documentation

Constructor & Destructor Documentation

protocols::qsar::scoring_grid::GridFactory::~GridFactory ( )
virtual
protocols::qsar::scoring_grid::GridFactory::GridFactory ( )
private

References grid_creator_map_.

Referenced by create_singleton_instance().

protocols::qsar::scoring_grid::GridFactory::GridFactory ( GridFactory const &  )
private

Member Function Documentation

GridFactory * protocols::qsar::scoring_grid::GridFactory::create_singleton_instance ( )
staticprivate

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

References GridFactory().

Referenced by get_instance().

void protocols::qsar::scoring_grid::GridFactory::factory_register ( GridCreatorOP  creator)

add a Grid prototype, using it's default type name as the map key

References grid_creator_map_, runtime_assert, and utility_exit_with_message.

GridFactory * protocols::qsar::scoring_grid::GridFactory::get_instance ( )
static
GridBaseOP protocols::qsar::scoring_grid::GridFactory::new_grid ( utility::tag::TagCOP  tag) const

create Grid given grid tag

References grid_creator_map_, type, and utility_exit_with_message.

Referenced by new_grid().

GridBaseOP protocols::qsar::scoring_grid::GridFactory::new_grid ( utility::json_spirit::mObject  data) const

create Grid given a serialized grid object

References grid_creator_map_, new_grid(), type, and utility_exit_with_message.

GridFactory const& protocols::qsar::scoring_grid::GridFactory::operator= ( GridFactory const &  )
private

Member Data Documentation

GridMap protocols::qsar::scoring_grid::GridFactory::grid_creator_map_
private
GridFactory * protocols::qsar::scoring_grid::GridFactory::instance_
staticprivate

Referenced by get_instance().


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