Rosetta
|
Namespaces | |
fallback_configuration | |
locator | |
Classes | |
class | FallbackConfiguration |
The FallbackConfiguration class describes how a resource should be created if the ResourceManager is not being used, i.e., if resources have been specified through flags on the command line instead of through a resource-definition file. More... | |
class | FallbackConfigurationCreator |
The FallbackConfigurationCreator plays the role in the ResourceManager framework of gluing a "resource_description" string and a FallbackConfiguration together. More... | |
class | FallbackConfigurationFactory |
The FallbackConfigurationFactory is a singleton factory with which FallbackConfigurationCreator objects should be registered. The "fallback" system serves as a mechanism for preserving command-line functionality even while switching more protocols from requesting resources from the ResourceManager rather than reading directly from the command line. More... | |
class | FallbackConfigurationRegistrator |
The FallbackConfigurationRegistrator class is a simple templated registration class that will, at construction, create a FallbackConfiguration and register it with the FallbackConfigurationFactory. More... | |
class | JobOptions |
The JobOptions class holds job-specific options (i.e. command line flags). It can be used by the ResourceManager to hold options for a particular job, so that the ResourceManager can retrieve those options as needed. It is basically a bag for 12 OptionKey/OptionKeyValue maps, one for every kind of OptionKey. More... | |
class | LazyResourceManager |
This is a mule class, meant to be derived from. It's job is to hold ResourceOptions and ResourceLocator objects by name (tag) as well as the ResourceConfigurations which serve as complete descriptions for how to construct a Resource. It should be thought of as a mule by classes that derive from it: it won't do anything on its own, but it can be directed to do things. The point of the class is to ake it easier to create ResourceManagers besides the JD2ResourceManager, which, at the time of this documentation, is the only class that derives from the LazyResourceManager. More... | |
struct | ResourceConfiguration |
The set of strings necessary to describe how a resource should be constructed. More... | |
class | ResourceLoader |
The ResourceLoader is responsible for instantiating a Resource object and initializing it. In order to do so, the ResourceLoader is given an input stream and a ResourceOptions object. Note that the ResourceOptions object has to be of the right type, or the ResourceLoader will not be able to read the data that it needs out of it. If the ResourceLoader is given the wrong kind of ResourceOptions object, it will throw an exception. More... | |
class | ResourceLoaderCreator |
Instantiates a ResourceLoader as part of the ResourceLoaderFactory scheme. Derived classes should be registered with the ResourceLoaderFactory in one of the library init.cc files with a ResourceLoaderRegistrator. More... | |
class | ResourceLoaderFactory |
Instantiates ResourceLoaders. Creators may be registered with the Factory at any point, though it is recommended they be registered at load time. If two Creators are registered and they both give the same name for the ResourceLoader they say they will instantiate, then the Factory will exit with an error message. More... | |
class | ResourceLoaderRegistrator |
The ResourceLoaderRegistrator class is a simple templated registration class that will, at construction, create a ResourceLoader and register it with the ResouceLoaderFactory. More... | |
class | ResourceLocator |
ResourceLocator classes are responsible for retrieving data from a data store that will be used to construct a Resource. This data store could be a file system or a database or any other place where data is stored. More... | |
class | ResourceLocatorCreator |
The ResourceLocatorCreator class serves to link the name of a locator type and the (derived) ResourceLocator class that's responsible for retrieving data from a data store. More... | |
class | ResourceLocatorFactory |
The ResourceLocatorFactory instantiates ResourceLocator objects given their corresponding locator-type strings. It uses the load-time factory registration scheme, meaning that it is a singleton and takes an instance of a Creator object (a ResourceLocatorCreator) in its "factory_register" method. Templated instances of the ResourceLocatorRegistrator classes should be placed in the library init.cc files (e.g. core/init/init.cc or protocols/init/init.ResourceLocatorRegistrators.ihh) More... | |
class | ResourceLocatorRegistrator |
The ResourceLocatorRegistrator gives an instance of a ResourceLocatorCreator to the ResourceLocatorFactory in its constructor, calling the ResourceLocatorFactory's factory_register() method. This call is actually accomplished by the WidgetRegistrator parent class. A single (templated) instance of this class for each ResourceLocatorCreator should be placed in the appropriate init.cc file (i.e. ResourceLocatorCreators that live in the protocols library should be put in src/protocols/init/init.ResourceLocatorRegistrators.ihh). More... | |
class | ResourceManager |
The ResourceManager is a singleton class responsible for holding, distributing, and eventually deallocating resources which may be shared between multiple jobs. A protocol may communicate directly with the ResourceManager, requesting resources, but remaining unaware of where those resources came from, or whether the same resource is being used in multiple contexts. More... | |
class | ResourceManagerCreator |
Derived classes will be used by the ResourceManagerFactory to decide which of the various ResourceManagers should be instantiated. The ResourceManager is a singleton, but, different ResourceManagers can be instantiated in different contexts. More... | |
class | ResourceManagerFactory |
A factory class for managing the instantiation of the singleton ResourceManager: only one of the various derived classes will be instantiated. Currently, it asks for the JD2ResourceManager; in the future, this should be fixed so that it reads from the options system to figure out which ResourceManager to instantiate. More... | |
class | ResourceManagerRegistrator |
The ResourceManagerRegistrator creates an instantiate of the templated ResourceManagerCreator class and gives it to the ResourceManagerFactory. A single instance for each ResourceManagerCreator should be put in the appropriate init.cc file. More... | |
class | ResourceOptions |
The ResourceOptions class is responsible for describing all the data requried for instanting a particular resource, except for the data stream (i.e. the file) that contains the data for the resource. For example, when reading in a PDB file, there are 30 different options for how that PDB file should be turned into a Pose. That data is now held in an ImportPoseOptions object. The purpose of the ResourceOptions class is to allow different jobs to load resources in different ways, or for one job to load two different resources of the same type in different ways. For example, a protocol may need both a centroid pose and a fullatom pose to be loaded in from disk; however, if the logic for loading a pose in from disk is controlled by the options system alone, this becomes impossible. More... | |
class | ResourceOptionsCreator |
Each derived ResourceOptionsCreator class is responsible for instantiating a (specific) derived ResourceOptions class, and for telling the ResourceOptionsFactory the string which identifies that class. There should be one derived ResourceOptionsCreator class for each ResourceOptions class. More... | |
class | ResourceOptionsFactory |
The ResourceOptionsFactory class is responsible for maintaining the map between the names of the ResourceOptions classes (strings) and the ResourceOptionsCreator classes that are responsible for instantiating the ResourceOption classes. This is a singleton class. It is initialized at load time – or at least after the call to devel::init( argc, argv ) – and populated with the help of ResourceOptionsRegistrator instances. More... | |
class | ResourceOptionsRegistrator |
The ResourceOptionsRegistrator class is responsible for creating an instance of the (templated) ResourceOptionsCreator class and giving it to the ResourceOptionsFactory in its construtor. Instances of this class placed in the init.cc files (e.g. core/init/init.cc) ensure that the ResourceOptionsFactory is fully populated with the ResourceOptionsCreators by the time that the call to devel::init() completes. More... | |
class | ResourceStream |
The ResourceStream represents an abstract class for packaging up a standard istream so that data that the ResourceLocator needs to deliver to a ResourceLoader can come from arbitrary sources (e.g. from either a file or from a database). More... | |
Functions | |
template<class S > | |
void | write_type (std::ostream &out, S val) |
simple enough function that calls the bit-shift operator in the input stream; why bother? For the sake of writing out boolean values as "true" or "false" More... | |
template<> | |
void | write_type< bool > (std::ostream &out, bool val) |
Template specialization to write boolean values as "true" or "false". More... | |
template<class T , class S > | |
void | show_option_map (std::map< T, S > const &option_map, std::ostream &out, char const *option_name) |
template<class T , class S > | |
void | show_option_vector_map (std::map< T, vector1< S > > const &option_map, std::ostream &out, char const *option_name) |
std::ostream & | operator<< (std::ostream &out, JobOptions const &job_options) |
This output-operator function invokes the JobOption's show() method. More... | |
template<class T , class S > | |
void | add_option_to_map (std::map< T, S > &option_map, T const &key, S const &val) |
template<class T , class S > | |
void | remove_option_from_map (std::map< T, S > &option_map, T const &key) |
template<class T , class S > | |
bool | option_map_contains_key (std::map< T, S > const &option_map, T const &key) |
template<class T , class S > | |
S const & | get_option_from_map (std::map< T, S > const &option_map, T const &key, char const *option_class_name) |
std::ostream & | operator<< (std::ostream &out, ResourceConfiguration const &resource_configuration) |
std::ostream & | operator<< (std::ostream &out, LazyResourceManager const &lazy_resource_manager) |
std::ostream & | operator<< (std::ostream &out, ResourceManager const &resource_manager) |
std::ostream & | operator<< (std::ostream &out, const ResourceOptions &resource_options) |
template<class ResourceType > | |
utility::pointer::shared_ptr < ResourceType > | get_resource (ResourceDescription const &resource_description) |
Variables | |
static Tracer | TR ("basic.resource_manager.LazyResourceManager") |
typedef utility::pointer::shared_ptr< FallbackConfiguration const > basic::resource_manager::FallbackConfigurationCOP |
Definition at line 24 of file FallbackConfiguration.fwd.hh.
typedef utility::pointer::shared_ptr< FallbackConfigurationCreator const > basic::resource_manager::FallbackConfigurationCreatorCOP |
Definition at line 31 of file FallbackConfigurationCreator.fwd.hh.
typedef utility::pointer::shared_ptr< FallbackConfigurationCreator > basic::resource_manager::FallbackConfigurationCreatorOP |
Definition at line 29 of file FallbackConfigurationCreator.fwd.hh.
typedef utility::pointer::shared_ptr< FallbackConfiguration > basic::resource_manager::FallbackConfigurationOP |
Definition at line 22 of file FallbackConfiguration.fwd.hh.
typedef utility::pointer::shared_ptr< JobOptions const > basic::resource_manager::JobOptionsCOP |
Definition at line 24 of file JobOptions.fwd.hh.
typedef utility::pointer::shared_ptr< JobOptions > basic::resource_manager::JobOptionsOP |
Definition at line 22 of file JobOptions.fwd.hh.
typedef std::string basic::resource_manager::JobTag |
typedef utility::pointer::shared_ptr< LazyResourceManager const > basic::resource_manager::LazyResourceManagerCOP |
Definition at line 25 of file LazyResourceManager.fwd.hh.
typedef utility::pointer::shared_ptr< LazyResourceManager > basic::resource_manager::LazyResourceManagerOP |
Definition at line 23 of file LazyResourceManager.fwd.hh.
typedef std::string basic::resource_manager::LoaderType |
typedef std::string basic::resource_manager::LocatorID |
typedef std::string basic::resource_manager::LocatorTag |
typedef std::string basic::resource_manager::LocatorType |
typedef std::string basic::resource_manager::ResourceDescription |
typedef utility::pointer::shared_ptr< ResourceLoader const > basic::resource_manager::ResourceLoaderCOP |
Definition at line 25 of file ResourceLoader.fwd.hh.
typedef utility::pointer::shared_ptr< ResourceLoaderCreator const > basic::resource_manager::ResourceLoaderCreatorCOP |
Definition at line 26 of file ResourceLoaderCreator.fwd.hh.
typedef utility::pointer::shared_ptr< ResourceLoaderCreator > basic::resource_manager::ResourceLoaderCreatorOP |
Definition at line 24 of file ResourceLoaderCreator.fwd.hh.
typedef utility::pointer::shared_ptr< ResourceLoader > basic::resource_manager::ResourceLoaderOP |
Definition at line 23 of file ResourceLoader.fwd.hh.
typedef utility::pointer::shared_ptr< ResourceLocator const > basic::resource_manager::ResourceLocatorCOP |
Definition at line 28 of file ResourceLocator.fwd.hh.
typedef utility::pointer::shared_ptr< ResourceLocatorCreator const > basic::resource_manager::ResourceLocatorCreatorCOP |
Definition at line 26 of file ResourceLocatorCreator.fwd.hh.
typedef utility::pointer::shared_ptr< ResourceLocatorCreator > basic::resource_manager::ResourceLocatorCreatorOP |
Definition at line 24 of file ResourceLocatorCreator.fwd.hh.
typedef utility::pointer::shared_ptr< ResourceLocator > basic::resource_manager::ResourceLocatorOP |
Definition at line 26 of file ResourceLocator.fwd.hh.
typedef utility::pointer::shared_ptr< ResourceManager const > basic::resource_manager::ResourceManagerCOP |
Definition at line 25 of file ResourceManager.fwd.hh.
typedef utility::pointer::shared_ptr< ResourceManagerCreator const > basic::resource_manager::ResourceManagerCreatorCOP |
Definition at line 31 of file ResourceManagerCreator.fwd.hh.
typedef utility::pointer::shared_ptr< ResourceManagerCreator > basic::resource_manager::ResourceManagerCreatorOP |
Definition at line 29 of file ResourceManagerCreator.fwd.hh.
typedef utility::pointer::shared_ptr< ResourceManager > basic::resource_manager::ResourceManagerOP |
Definition at line 23 of file ResourceManager.fwd.hh.
typedef utility::pointer::shared_ptr< ResourceOptions const > basic::resource_manager::ResourceOptionsCOP |
Definition at line 25 of file ResourceOptions.fwd.hh.
typedef utility::pointer::shared_ptr< ResourceOptionsCreator const > basic::resource_manager::ResourceOptionsCreatorCOP |
Definition at line 25 of file ResourceOptionsCreator.fwd.hh.
typedef utility::pointer::shared_ptr< ResourceOptionsCreator > basic::resource_manager::ResourceOptionsCreatorOP |
Definition at line 23 of file ResourceOptionsCreator.fwd.hh.
typedef utility::pointer::shared_ptr< ResourceOptions > basic::resource_manager::ResourceOptionsOP |
Definition at line 23 of file ResourceOptions.fwd.hh.
typedef std::string basic::resource_manager::ResourceOptionsTag |
typedef utility::pointer::shared_ptr< ResourceStream const > basic::resource_manager::ResourceStreamCOP |
Definition at line 24 of file ResourceLocator.fwd.hh.
typedef utility::pointer::shared_ptr< ResourceStream > basic::resource_manager::ResourceStreamOP |
Definition at line 22 of file ResourceLocator.fwd.hh.
typedef std::string basic::resource_manager::ResourceTag |
void basic::resource_manager::add_option_to_map | ( | std::map< T, S > & | option_map, |
T const & | key, | ||
S const & | val | ||
) |
Definition at line 162 of file JobOptions.cc.
References key.
Referenced by basic::resource_manager::JobOptions::add_option().
S const& basic::resource_manager::get_option_from_map | ( | std::map< T, S > const & | option_map, |
T const & | key, | ||
char const * | option_class_name | ||
) |
Definition at line 186 of file JobOptions.cc.
Referenced by basic::resource_manager::JobOptions::get_option().
utility::pointer::shared_ptr< ResourceType > basic::resource_manager::get_resource | ( | ResourceDescription const & | resource_description | ) |
Definition at line 39 of file util.hh.
References basic::resource_manager::ResourceManager::get_instance().
std::ostream& basic::resource_manager::operator<< | ( | std::ostream & | out, |
const ResourceOptions & | resource_options | ||
) |
Definition at line 32 of file ResourceOptions.cc.
References basic::resource_manager::ResourceOptions::show().
std::ostream& basic::resource_manager::operator<< | ( | std::ostream & | out, |
ResourceConfiguration const & | resource_configuration | ||
) |
Definition at line 59 of file LazyResourceManager.cc.
References basic::resource_manager::ResourceConfiguration::show().
std::ostream& basic::resource_manager::operator<< | ( | std::ostream & | out, |
ResourceManager const & | resource_manager | ||
) |
Definition at line 147 of file ResourceManager.cc.
References basic::resource_manager::ResourceManager::show().
std::ostream & basic::resource_manager::operator<< | ( | std::ostream & | out, |
const JobOptions & | job_options | ||
) |
This output-operator function invokes the JobOption's show() method.
Definition at line 152 of file JobOptions.cc.
References basic::resource_manager::JobOptions::show().
std::ostream& basic::resource_manager::operator<< | ( | std::ostream & | out, |
LazyResourceManager const & | lazy_resource_manager | ||
) |
Definition at line 520 of file LazyResourceManager.cc.
References basic::resource_manager::LazyResourceManager::show().
bool basic::resource_manager::option_map_contains_key | ( | std::map< T, S > const & | option_map, |
T const & | key | ||
) |
Definition at line 179 of file JobOptions.cc.
Referenced by basic::resource_manager::JobOptions::has_option().
void basic::resource_manager::remove_option_from_map | ( | std::map< T, S > & | option_map, |
T const & | key | ||
) |
Definition at line 169 of file JobOptions.cc.
Referenced by basic::resource_manager::JobOptions::remove_option().
void basic::resource_manager::show_option_map | ( | std::map< T, S > const & | option_map, |
std::ostream & | out, | ||
char const * | option_name | ||
) |
Definition at line 79 of file JobOptions.cc.
References write_type().
Referenced by basic::resource_manager::JobOptions::show().
void basic::resource_manager::show_option_vector_map | ( | std::map< T, vector1< S > > const & | option_map, |
std::ostream & | out, | ||
char const * | option_name | ||
) |
Definition at line 99 of file JobOptions.cc.
References assign_charges::first, basic::T(), and write_type().
Referenced by basic::resource_manager::JobOptions::show().
void basic::resource_manager::write_type | ( | std::ostream & | out, |
S | val | ||
) |
simple enough function that calls the bit-shift operator in the input stream; why bother? For the sake of writing out boolean values as "true" or "false"
Definition at line 64 of file JobOptions.cc.
Referenced by show_option_map(), and show_option_vector_map().
void basic::resource_manager::write_type< bool > | ( | std::ostream & | out, |
bool | val | ||
) |
Template specialization to write boolean values as "true" or "false".
Definition at line 72 of file JobOptions.cc.
|
static |