Sirikata
Public Member Functions | Private Types | Static Private Member Functions | Private Attributes
Sirikata::FactoryWithOptionsImpl< T, Ftype > Class Template Reference

#include <FactoryWithOptions.hpp>

Inheritance diagram for Sirikata::FactoryWithOptionsImpl< T, Ftype >:
Collaboration diagram for Sirikata::FactoryWithOptionsImpl< T, Ftype >:

List of all members.

Public Member Functions

 FactoryWithOptionsImpl ()
bool unregisterConstructor (const String &name)
bool hasConstructor (const String &name) const
const String & getDefault () const
bool registerConstructor (const String &name, const Ftype &constructor, const Otype &optionParser, bool defaultValue)
const OtypegetOptionParser (const String &name) const
const OtypegetDefaultOptionParser () const
const Ftype & getConstructor (const String &name) const
const Ftype & getDefaultConstructor () const

Private Types

typedef std::tr1::function
< OptionSet *(const String &)> 
Otype
typedef
std::tr1::unordered_map
< String, Otype
OptionMap

Static Private Member Functions

static OptionSetstaticNop ()

Private Attributes

OptionMap mOptionParsers
Otype mNop

template<class T, class Ftype>
class Sirikata::FactoryWithOptionsImpl< T, Ftype >


Member Typedef Documentation

template<class T, class Ftype>
typedef std::tr1::unordered_map<String, Otype> Sirikata::FactoryWithOptionsImpl< T, Ftype >::OptionMap [private]
template<class T, class Ftype>
typedef std::tr1::function<OptionSet*(const String&)> Sirikata::FactoryWithOptionsImpl< T, Ftype >::Otype [private]

Constructor & Destructor Documentation

template<class T, class Ftype>
Sirikata::FactoryWithOptionsImpl< T, Ftype >::FactoryWithOptionsImpl ( ) [inline]

Member Function Documentation

template<class T, class Ftype>
const Ftype& Sirikata::FactoryWithOptionsImpl< T, Ftype >::getConstructor ( const String &  name) const [inline]
template<class T, class Ftype>
const String& Sirikata::FactoryWithOptionsImpl< T, Ftype >::getDefault ( ) const [inline]
template<class T, class Ftype>
const Ftype& Sirikata::FactoryWithOptionsImpl< T, Ftype >::getDefaultConstructor ( ) const [inline]
template<class T, class Ftype>
const Otype& Sirikata::FactoryWithOptionsImpl< T, Ftype >::getDefaultOptionParser ( ) const [inline]
template<class T, class Ftype>
const Otype& Sirikata::FactoryWithOptionsImpl< T, Ftype >::getOptionParser ( const String &  name) const [inline]
template<class T, class Ftype>
bool Sirikata::FactoryWithOptionsImpl< T, Ftype >::hasConstructor ( const String &  name) const [inline]
template<class T, class Ftype>
bool Sirikata::FactoryWithOptionsImpl< T, Ftype >::registerConstructor ( const String &  name,
const Ftype &  constructor,
const Otype optionParser,
bool  defaultValue 
) [inline]

Referenced by init().

template<class T, class Ftype>
static OptionSet* Sirikata::FactoryWithOptionsImpl< T, Ftype >::staticNop ( ) [inline, static, private]
template<class T, class Ftype>
bool Sirikata::FactoryWithOptionsImpl< T, Ftype >::unregisterConstructor ( const String &  name) [inline]

Reimplemented from Sirikata::FactoryImpl< T, Ftype >.

Referenced by destroy().


Member Data Documentation

template<class T, class Ftype>
Otype Sirikata::FactoryWithOptionsImpl< T, Ftype >::mNop [private]
template<class T, class Ftype>
OptionMap Sirikata::FactoryWithOptionsImpl< T, Ftype >::mOptionParsers [private]

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