List of all members | Public Member Functions | Private Types | Private Attributes
atm::ModelRegister< ModelType > Class Template Reference

Registry of atmosphere models. More...

#include <ModelRegister.h>

Public Member Functions

ModelType & Get (const std::string &name)
 
const ModelType & Get (const std::string &name) const
 
void RegisterModel (const std::string &modelName, ModelType *const model)
 
 ~ModelRegister ()
 

Private Types

typedef std::map< std::string,
ModelType * > 
InternalCollection
 

Private Attributes

InternalCollection fMap
 

Detailed Description

template<typename ModelType>
class atm::ModelRegister< ModelType >

Registry of atmosphere models.

Author
Luis Prado
Date
23 Sep 2003

Definition at line 28 of file ModelRegister.h.

Member Typedef Documentation

template<typename ModelType >
typedef std::map<std::string, ModelType*> atm::ModelRegister< ModelType >::InternalCollection
private

Definition at line 39 of file ModelRegister.h.

Constructor & Destructor Documentation

template<typename ModelType >
ModelRegister::~ModelRegister ( )

Definition at line 72 of file ModelRegister.cc.

Member Function Documentation

template<typename ModelType >
ModelType & ModelRegister::Get ( const std::string &  name)

Definition at line 36 of file ModelRegister.cc.

References ERROR.

template<typename ModelType >
const ModelType & ModelRegister::Get ( const std::string &  name) const

Definition at line 54 of file ModelRegister.cc.

References ERROR.

template<typename ModelType >
void ModelRegister::RegisterModel ( const std::string &  modelName,
ModelType *const  model 
)

Definition at line 27 of file ModelRegister.cc.

Member Data Documentation

template<typename ModelType >
InternalCollection atm::ModelRegister< ModelType >::fMap
private

Definition at line 40 of file ModelRegister.h.


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

, generated on Tue Sep 26 2023.