DNDSR 0.1.0.dev1+gcd065ad
Distributed Numeric Data Structure for CFV
Loading...
Searching...
No Matches
DNDS::detail::EnumStringPair< EnumType > Struct Template Reference

A pair of (enum-value, optional string) used to extract allowed values. More...

#include <ConfigEnum.hpp>

Collaboration diagram for DNDS::detail::EnumStringPair< EnumType >:
[legend]

Public Member Functions

 EnumStringPair (EnumType v, const char *s)
 
 EnumStringPair (EnumType v, std::nullptr_t)
 

Public Attributes

EnumType value
 
std::string str
 
bool isNull
 

Detailed Description

template<typename EnumType>
struct DNDS::detail::EnumStringPair< EnumType >

A pair of (enum-value, optional string) used to extract allowed values.

Constructed implicitly from the {EnumVal, "string"} initializer pairs. When the string is nullptr (the unknown/sentinel value), str is empty and isNull is true.

Definition at line 78 of file ConfigEnum.hpp.

Constructor & Destructor Documentation

◆ EnumStringPair() [1/2]

template<typename EnumType >
DNDS::detail::EnumStringPair< EnumType >::EnumStringPair ( EnumType  v,
const char *  s 
)
inline

Definition at line 84 of file ConfigEnum.hpp.

◆ EnumStringPair() [2/2]

template<typename EnumType >
DNDS::detail::EnumStringPair< EnumType >::EnumStringPair ( EnumType  v,
std::nullptr_t   
)
inline

Definition at line 86 of file ConfigEnum.hpp.

Member Data Documentation

◆ isNull

template<typename EnumType >
bool DNDS::detail::EnumStringPair< EnumType >::isNull

Definition at line 82 of file ConfigEnum.hpp.

◆ str

template<typename EnumType >
std::string DNDS::detail::EnumStringPair< EnumType >::str

Definition at line 81 of file ConfigEnum.hpp.

◆ value

template<typename EnumType >
EnumType DNDS::detail::EnumStringPair< EnumType >::value

Definition at line 80 of file ConfigEnum.hpp.


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