ProtoMol - an object-oriented component based framework for Molecular Dynamics simulations.

Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members

ProtoMol::ValueEnum::Enum2ValueType< e > Struct Template Reference

#include <ValueType.h>

List of all members.

Public Types

enum  { value = e }

Public Member Functions

 Enum2ValueType (std::string s)
 Enum2ValueType (char const *c)
 operator std::string () const
 operator Enum () const

Public Attributes

std::string str


Detailed Description

template<Enum e>
struct ProtoMol::ValueEnum::Enum2ValueType< e >

Defines types for extended types, which do not have a corresponding and natural/fundamental type. The mapping includes a string and the std::string conversion, which enables such objects to act like a string.

Modern C++ Design, p. 29.


Member Enumeration Documentation

template<Enum e>
anonymous enum
 

Enumeration values:
value 


Constructor & Destructor Documentation

template<Enum e>
ProtoMol::ValueEnum::Enum2ValueType< e >::Enum2ValueType std::string  s  )  [inline, explicit]
 

template<Enum e>
ProtoMol::ValueEnum::Enum2ValueType< e >::Enum2ValueType char const *  c  )  [inline, explicit]
 


Member Function Documentation

template<Enum e>
ProtoMol::ValueEnum::Enum2ValueType< e >::operator Enum  )  const [inline]
 

template<Enum e>
ProtoMol::ValueEnum::Enum2ValueType< e >::operator std::string  )  const [inline]
 


Member Data Documentation

template<Enum e>
std::string ProtoMol::ValueEnum::Enum2ValueType< e >::str
 


The documentation for this struct was generated from the following file: Last update: . GNU GENERAL PUBLIC LICENSE, copyrighted by the University of Notre Dame and the University of Bergen, Norway.