BDE 4.14.0 Production release
Loading...
Searching...
No Matches
bdlat_EnumeratorInfo Struct Reference

#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
 Return the non-modifiable annotation of this enumerator info object.
 
BSLS_KEYWORD_CONSTEXPR const char * name () const
 Return the non-modifiable name of this enumerator info object.
 
BSLS_KEYWORD_CONSTEXPR int nameLength () const
 
BSLS_KEYWORD_CONSTEXPR int value () const
 Return the index of this enumerator info object.
 

Public Attributes

int d_value
 
const char * d_name_p
 
int d_nameLength
 
const char * d_annotation_p
 

Detailed Description

This struct holds information about an enumerator. Its data members are public by design so that instances may be statically initialized.

Member Function Documentation

◆ BSLMF_NESTED_TRAIT_DECLARATION() [1/2]

bdlat_EnumeratorInfo::BSLMF_NESTED_TRAIT_DECLARATION ( bdlat_EnumeratorInfo  ,
bsl::is_trivially_copyable   
)

◆ BSLMF_NESTED_TRAIT_DECLARATION() [2/2]

bdlat_EnumeratorInfo::BSLMF_NESTED_TRAIT_DECLARATION ( bdlat_EnumeratorInfo  ,
bsl::is_trivially_default_constructible   
)

Member Data Documentation

◆ d_annotation_p

const char* bdlat_EnumeratorInfo::d_annotation_p

◆ d_name_p

const char* bdlat_EnumeratorInfo::d_name_p

◆ d_nameLength

int bdlat_EnumeratorInfo::d_nameLength

◆ d_value

int bdlat_EnumeratorInfo::d_value

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