SPH
Classes | Typedefs
EnumMap.h File Reference

Helper object for converting enums to string, listing all available values of enum, etc. More...

#include "objects/containers/FlatMap.h"
#include <typeindex>

Go to the source code of this file.

Classes

struct  EnumValue
 
struct  EnumInputValue< TEnum >
 
class  EnumMap
 
struct  RegisterEnum< TEnum >
 Helper class for adding individual enums to the enum map. More...
 

Typedefs

using EnumRecord = FlatMap< int, EnumValue >
 Maps a numerical value to a string value and description. More...
 
using EnumIndex = Optional< std::type_index >
 

Detailed Description

Helper object for converting enums to string, listing all available values of enum, etc.

Author
Pavel Sevecek (sevecek at sirrah.troja.mff.cuni.cz
Date
2016-2021

Definition in file EnumMap.h.

Typedef Documentation

◆ EnumIndex

using EnumIndex = Optional<std::type_index>

Unique identifier of an enum type.

Made optional to be default-constructible and usable in FlatMap.

Definition at line 27 of file EnumMap.h.

◆ EnumRecord

using EnumRecord = FlatMap<int, EnumValue>

Maps a numerical value to a string value and description.

Definition at line 22 of file EnumMap.h.