SCIRun  5.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Types | Public Member Functions | List of all members
TypeIDTable< CtorInfo > Class Template Reference

A thread-safe map used for constructor lookup in Mesh/Field factories. More...

#include <TypeIDTable.h>

Inheritance diagram for TypeIDTable< CtorInfo >:

Public Types

typedef boost::optional< const
CtorInfo & > 
CtorInfoOption
 

Public Member Functions

CtorInfoOption findConstructorInfo (const std::string &key) const
 
bool registerConstructorInfo (const std::string &key, const CtorInfo &info)
 
size_t size () const
 

Detailed Description

template<class CtorInfo>
class SCIRun::Core::Utility::TypeIDTable< CtorInfo >

A thread-safe map used for constructor lookup in Mesh/Field factories.

Member Typedef Documentation

typedef boost::optional<const CtorInfo&> CtorInfoOption

Member Function Documentation

CtorInfoOption findConstructorInfo ( const std::string &  key) const
inline
bool registerConstructorInfo ( const std::string &  key,
const CtorInfo &  info 
)
inline
Todo:
: improve for testing
Todo:
: use real logger here
size_t size ( ) const
inline

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