A structure used in the constructor of an Enumeration.
More...
#include <tsEnumeration.h>
|
template<typename INTENUM , typename std::enable_if< std::is_integral< INTENUM >::value||std::is_enum< INTENUM >::value >::type * = nullptr> |
| NameValue (const UChar *n, INTENUM v) |
| Constructor.
|
|
template<typename INTENUM , typename std::enable_if< std::is_integral< INTENUM >::value||std::is_enum< INTENUM >::value >::type * = nullptr> |
| NameValue (const UString &n, INTENUM v) |
| Constructor.
|
|
|
UString | name {} |
| Name for the value.
|
|
int_t | value = 0 |
| Value for the name.
|
|
A structure used in the constructor of an Enumeration.
◆ NameValue() [1/2]
template<typename INTENUM , typename std::enable_if< std::is_integral< INTENUM >
::value||std::is_enum< INTENUM >
::value >::type * = nullptr>
ts::Enumeration::NameValue::NameValue |
( |
const UString & |
n, |
|
|
INTENUM |
v |
|
) |
| |
|
inline |
Constructor.
- Template Parameters
-
INTENUM | An integer or enumeration type representing the values. |
- Parameters
-
n | Name for the value. |
v | Value for the name. |
◆ NameValue() [2/2]
template<typename INTENUM , typename std::enable_if< std::is_integral< INTENUM >
::value||std::is_enum< INTENUM >
::value >::type * = nullptr>
ts::Enumeration::NameValue::NameValue |
( |
const UChar * |
n, |
|
|
INTENUM |
v |
|
) |
| |
|
inline |
Constructor.
- Template Parameters
-
INTENUM | An integer or enumeration type representing the values. |
- Parameters
-
n | Name for the value. |
v | Value for the name. |
The documentation for this struct was generated from the following file: