COOLFluiD  Release kernel
COOLFluiD is a Collaborative Simulation Environment (CSE) focused on complex MultiPhysics simulations.
Public Types | Public Member Functions | Protected Types | Protected Attributes | List of all members
EnumT< EClass > Class Template Reference

#include <EnumT.hpp>

Inherits noncopyable.

Inherited by URI::Scheme::Convert, WorkerStatus::Convert, GeoShape::Convert, SUPGTypes::Convert, and LogMessage::Convert.

Public Types

typedef EClass::Type EnumType
 

Public Member Functions

bool is_valid (const EnumType &in)
 conversion from enum to string More...
 
std::string to_str (const EnumType &in)
 conversion from enum to string More...
 
std::string to_str (const int &in)
 conversion from int to enum then to string More...
 
EnumType to_enum (const int &in)
 conversion from int to enum (with validity check) More...
 
EnumType to_enum (const std::string &in)
 conversion from string to enum More...
 

Protected Types

typedef std::map< EnumType, std::string > FwdMap_t
 type for forward map More...
 
typedef std::map< std::string, EnumTypeBwdMap_t
 type for reverse map More...
 

Protected Attributes

FwdMap_t all_fwd
 storage of the enum forward map More...
 
BwdMap_t all_rev
 storage of the enum reverse map More...
 

Detailed Description

template<typename EClass>
class cf3::common::EnumT< EClass >

Definition at line 20 of file EnumT.hpp.

Member Typedef Documentation

typedef std::map< std::string, EnumType > BwdMap_t
protected

type for reverse map

Definition at line 30 of file EnumT.hpp.

typedef EClass::Type EnumType

Definition at line 24 of file EnumT.hpp.

typedef std::map< EnumType, std::string > FwdMap_t
protected

type for forward map

Definition at line 28 of file EnumT.hpp.

Member Function Documentation

bool is_valid ( const EnumType in)
inline

conversion from enum to string

Definition at line 40 of file EnumT.hpp.

EnumType to_enum ( const int &  in)
inline

conversion from int to enum (with validity check)

Definition at line 64 of file EnumT.hpp.

EnumType to_enum ( const std::string &  in)
inline

conversion from string to enum

Definition at line 73 of file EnumT.hpp.

std::string to_str ( const EnumType in)
inline

conversion from enum to string

Definition at line 47 of file EnumT.hpp.

std::string to_str ( const int &  in)
inline

conversion from int to enum then to string

Definition at line 55 of file EnumT.hpp.

Member Data Documentation

FwdMap_t all_fwd
protected

storage of the enum forward map

Definition at line 33 of file EnumT.hpp.

BwdMap_t all_rev
protected

storage of the enum reverse map

Definition at line 35 of file EnumT.hpp.


The documentation for this class was generated from the following file:
Send comments to:
COOLFluiD Web Admin