Evo C++ Library v0.5.1
Classes | Namespaces | Macros
enum.h File Reference

Evo enum helpers. More...

#include "substring.h"

Go to the source code of this file.

Classes

struct  EnumMapIterator< T >
 Expanded EnumIterator used with enum traits. More...
 

Namespaces

 evo
 Evo C++ Library namespace.
 

Macros

#define EVO_ENUM_CLASS_MAP(ENUM, ...)
 Helper for creating enum class string/value mappers (C++11). More...
 
#define EVO_ENUM_CLASS_REMAP(ENUM, REMAP_ARRAY, ...)
 Helper for creating enum class string/value mappers, with unsorted enum remapped to sorted values. More...
 
#define EVO_ENUM_CLASS_TRAITS(ENUM, TRAITS, ...)
 Helper for creating enum class trait mappers (C++11). More...
 
#define EVO_ENUM_MAP(ENUM, FIRST_VAL, LAST_VAL, UNKNOWN_VAL, ...)
 Helper for creating enum string/value mappers with explicit first/last/unknown values. More...
 
#define EVO_ENUM_MAP_PREFIXED(ENUM, PREFIX, ...)   EVO_ENUM_MAP(ENUM, (ENUM)((int)(PREFIX ## UNKNOWN) + 1), (ENUM)((int)(PREFIX ## ENUM_END) - 1), PREFIX ## UNKNOWN, __VA_ARGS__)
 Helper for creating enum string/value mappers with prefixed enum values. More...
 
#define EVO_ENUM_REMAP(ENUM, FIRST_VAL, LAST_VAL, UNKNOWN_VAL, REMAP_ARRAY, ...)
 Helper for creating enum string/value mappers with explicit first/last/unknown values, with unsorted enum remapped to sorted values. More...
 
#define EVO_ENUM_REMAP_PREFIXED(ENUM, PREFIX, REMAP_ARRAY, ...)   EVO_ENUM_REMAP(ENUM, (ENUM)((int)(PREFIX ## UNKNOWN) + 1), (ENUM)((int)(PREFIX ## ENUM_END) - 1), PREFIX ## UNKNOWN, REMAP_ARRAY, __VA_ARGS__)
 Helper for creating enum string/value mappers with prefixed enum values, with unsorted enum remapped to sorted values. More...
 
#define EVO_ENUM_TRAITS(ENUM, TRAITS, START_VAL, ...)
 Helper for creating enum trait mappers. More...
 
#define INCL_evo_enum_h
 

Detailed Description

Evo enum helpers.

Macro Definition Documentation

◆ INCL_evo_enum_h

#define INCL_evo_enum_h