Outline
Purpose
Provide a container for enumerator information.
Classes
- See also
Description
This component provides the bdlat_EnumeratorInfo
class
which is a container for holding information (properties) about an enumerator. The properties of an enumerator include its name and the length of its name, its value, and a brief annotation. Although each enumerator property is publicly accessible, a manipulator and accessor is also supplied for each.
Usage
This section illustrates intended use of this component.
Example 1: Basic Usage
TBD doc
◆ annotation() [1/2]
const char *& bdlat_EnumeratorInfo::annotation |
( |
| ) |
|
|
inline |
Return a reference to the modifiable annotation of this enumerator info object.
◆ annotation() [2/2]
◆ name() [1/2]
const char *& bdlat_EnumeratorInfo::name |
( |
| ) |
|
|
inline |
Return a reference to the modifiable name of this enumerator info object.
◆ name() [2/2]
◆ nameLength() [1/2]
int & bdlat_EnumeratorInfo::nameLength |
( |
| ) |
|
|
inline |
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.
◆ nameLength() [2/2]
Return the length of the name of this enumerator info object. Note that the 0-terminator is not included in the length.
◆ operator!=()
Return true
if the specified lhs
and rhs
enumerator info objects do not have the same value, and false
otherwise. Two enumerator info objects do not have the same value if at least one of their respective properties is not identical.
◆ operator<<()
Write the value of the specified enumeratorInfo
to the specified stream
.
◆ operator==()
Return true
if the specified lhs
and rhs
enumerator info objects have the same value, and false
otherwise. Two enumerator info objects have the same value if each of their respective properties are identical.
◆ value() [1/2]
int & bdlat_EnumeratorInfo::value |
( |
| ) |
|
|
inline |
Return a reference to the modifiable id of this enumerator info object.
◆ value() [2/2]