Quick Links: |
container for enumerator information More...
#include <bdlat_enumeratorinfo.h>
Public Member Functions | |
BSLMF_NESTED_TRAIT_DECLARATION (bdlat_EnumeratorInfo, bsl::is_trivially_copyable) | |
BSLMF_NESTED_TRAIT_DECLARATION (bdlat_EnumeratorInfo, bsl::is_trivially_default_constructible) | |
const char *& | annotation () |
const char *& | name () |
int & | nameLength () |
int & | value () |
BSLS_KEYWORD_CONSTEXPR const char * | annotation () const |
BSLS_KEYWORD_CONSTEXPR const char * | name () const |
BSLS_KEYWORD_CONSTEXPR int | nameLength () const |
BSLS_KEYWORD_CONSTEXPR int | value () const |
Public Attributes | |
int | d_value |
const char * | d_name_p |
int | d_nameLength |
const char * | d_annotation_p |
This struct
holds information about an enumerator. Its data members are public
by design so that instances may be statically initialized.
See Component bdlat_enumeratorinfo
bdlat_EnumeratorInfo::BSLMF_NESTED_TRAIT_DECLARATION | ( | bdlat_EnumeratorInfo | , | |
bsl::is_trivially_copyable | ||||
) |
bdlat_EnumeratorInfo::BSLMF_NESTED_TRAIT_DECLARATION | ( | bdlat_EnumeratorInfo | , | |
bsl::is_trivially_default_constructible | ||||
) |
const char*& bdlat_EnumeratorInfo::annotation | ( | ) |
Return a reference to the modifiable annotation of this enumerator info object.
const char*& bdlat_EnumeratorInfo::name | ( | ) |
Return a reference to the modifiable name of this enumerator info object.
int& bdlat_EnumeratorInfo::nameLength | ( | ) |
Return a reference to the modifiable length of the name of this enumerator info object. Note that the 0-terminator is not included in the length.
int& bdlat_EnumeratorInfo::value | ( | ) |
Return a reference to the modifiable id of this enumerator info object.
BSLS_KEYWORD_CONSTEXPR const char* bdlat_EnumeratorInfo::annotation | ( | ) | const |
Return the non-modifiable annotation of this enumerator info object.
BSLS_KEYWORD_CONSTEXPR const char* bdlat_EnumeratorInfo::name | ( | ) | const |
Return the non-modifiable name of this enumerator info object.
BSLS_KEYWORD_CONSTEXPR int bdlat_EnumeratorInfo::nameLength | ( | ) | const |
Return the length of the name of this enumerator info object. Note that the 0-terminator is not included in the length.
BSLS_KEYWORD_CONSTEXPR int bdlat_EnumeratorInfo::value | ( | ) | const |
Return the index of this enumerator info object.
value of enumerator
const char* bdlat_EnumeratorInfo::d_name_p |
name of enumerator
length of enumerator name (0-terminator not
const char* bdlat_EnumeratorInfo::d_annotation_p |
enumerator annotation