Evo C++ Library v0.5.1
Public Types | Public Member Functions | Public Attributes | Static Public Attributes | List of all members
SubStringMapList::ReverseRemap< T > Struct Template Reference

#include <evo/substring.h>

Detailed Description

template<class T>
struct evo::SubStringMapList::ReverseRemap< T >

Builds a reversed enum value remap array for fast reverse lookups.

Template Parameters
TEnun traits type

Public Types

typedef T::Type EnumType
 Alias for enum type used (T::Type) More...
 

Public Member Functions

constexpr ReverseRemap (const EnumType *remap_array)
 Constructor. More...
 

Public Attributes

SizeT array [SIZE]
 Remap array built by constructor. More...
 

Static Public Attributes

static const int SIZE = (int)T::LAST - (int)T::FIRST + 1
 Array size as number of enum values More...
 

Member Typedef Documentation

◆ EnumType

typedef T::Type EnumType

Alias for enum type used (T::Type)

Constructor & Destructor Documentation

◆ ReverseRemap()

constexpr ReverseRemap ( const EnumType remap_array)
inline

Constructor.

Parameters
remap_arrayPointer to remap array to build reversed array from

Member Data Documentation

◆ array

SizeT array[SIZE]

Remap array built by constructor.

◆ SIZE

const int SIZE = (int)T::LAST - (int)T::FIRST + 1
static

Array size as number of enum values


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