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,
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 ( )
protocols::qsar::scoring_grid::GridFactory::GridFactory ( )

References grid_creator_map_.

Referenced by create_singleton_instance().

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

Member Function Documentation

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

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 ( )
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 &  )

Member Data Documentation

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

Referenced by get_instance().

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