3#include <Core/CoreMacros.hpp>
5#include <Core/Utils/BijectiveAssociation.hpp>
7#include <initializer_list>
23template <
typename EnumBaseType>
34 EnumBaseType getEnumerator(
const std::string& v )
const;
45template <
typename EnumBaseType>
48 m_valueToString { pairs } {}
50template <
typename EnumBaseType>
52 return m_valueToString( v );
55template <
typename EnumBaseType>
57 return m_valueToString.key( v );
60template <
typename EnumBaseType>
63 keys.
reserve( m_valueToString.size() );
64 for (
const auto& p : m_valueToString ) {
Bijective association between two sets {keys} and {values} having the same cardinality....
This class manage the bijective association between string and integral representation of an enumerat...
EnumConverter(std::initializer_list< std::pair< EnumBaseType, std::string > > pairs)
hepler function to manage enum as underlying types in VariableSet