![]() |
Rosetta Utilities
2015.09
|
#include <Factory.hh>
Public Member Functions | |
~Factory () | |
TSP | from_string (std::string const &name) |
bool | has_string (std::string const &name) |
void | register_string (std::string const &name, Creator m) |
Static Public Member Functions | |
static Factory * | get_instance () |
Private Types | |
typedef boost::scoped_ptr < Factory< T > > | FactorySCP |
typedef boost::shared_ptr< T > | TSP |
typedef boost::function< TSP() > | Creator |
typedef std::map< std::string, Creator > | CreatorMap |
typedef CreatorMap::const_iterator | cmap_itr |
Private Member Functions | |
Factory () | |
Private Attributes | |
CreatorMap | cmap_ |
Static Private Attributes | |
static FactorySCP | factory_ |
|
private |
|
private |
|
private |
|
private |
|
private |
|
inlineprivate |
|
inline |
Factory< T >::TSP utility::Factory< T >::from_string | ( | std::string const & | name | ) |
References utility_exit_with_message.
|
static |
Referenced by utility::FactoryRegister< T, U >::FactoryRegister().
bool utility::Factory< T >::has_string | ( | std::string const & | name | ) |
void utility::Factory< T >::register_string | ( | std::string const & | name, |
Creator | m | ||
) |
References name, and utility_exit_with_message.
Referenced by utility::FactoryRegister< T, U >::FactoryRegister().
|
private |
|
staticprivate |