A structure used in the constructor of an Enumeration.
More...
#include <tsEnumeration.h>
|
template<typename INTENUM >
requires std::integral<INTENUM> || std::is_enum_v<INTENUM> |
| NameValue (const UChar *n, INTENUM v) |
| Constructor.
|
|
template<typename INTENUM >
requires std::integral<INTENUM> || std::is_enum_v<INTENUM> |
| 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 >
requires std::integral<INTENUM> || std::is_enum_v<INTENUM>
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 >
requires std::integral<INTENUM> || std::is_enum_v<INTENUM>
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: