OdbDesign
OdbDesign ODB++ Parser - C++ library, gRPC/REST server, CLI, tests
 
Loading...
Searching...
No Matches
Utils::EnumMap< E > Class Template Reference

#include <EnumMap.h>

Inheritance diagram for Utils::EnumMap< E >:
[legend]

Public Member Functions

 EnumMap (const std::vector< std::string > &names, bool caseInsensitive=false)
 
const std::string & getValue (const E e) const
 
E getValue (const std::string &name) const
 
bool contains (const std::string &name) const
 
bool contains (const E e) const
 

Detailed Description

template<typename E>
class Utils::EnumMap< E >

Definition at line 13 of file EnumMap.h.

Constructor & Destructor Documentation

◆ EnumMap()

template<typename E >
Utils::EnumMap< E >::EnumMap ( const std::vector< std::string > &  names,
bool  caseInsensitive = false 
)
inline

Definition at line 33 of file EnumMap.h.

Member Function Documentation

◆ contains() [1/2]

template<typename E >
bool Utils::EnumMap< E >::contains ( const E  e) const
inline

Definition at line 78 of file EnumMap.h.

◆ contains() [2/2]

template<typename E >
bool Utils::EnumMap< E >::contains ( const std::string &  name) const
inline

Definition at line 72 of file EnumMap.h.

◆ getValue() [1/2]

template<typename E >
const std::string & Utils::EnumMap< E >::getValue ( const E  e) const
inline

Definition at line 39 of file EnumMap.h.

Here is the caller graph for this function:

◆ getValue() [2/2]

template<typename E >
E Utils::EnumMap< E >::getValue ( const std::string &  name) const
inline

Definition at line 51 of file EnumMap.h.

Here is the call graph for this function:

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