BloombergLP::bdlar::EnumConstRef

Type-erased const reference to an object in the bdlat enumeration type category.

Synopsis

Declared in <bdlar_enumref.h>

class EnumConstRef;

Member Functions

NameDescription
EnumConstRef [constructor]Constructors
hasFallback Return true if the specified enumerator held by this object supports a fallback enumerator, and false otherwise.
isFallback Return true if the specified enumerator held by this object is equal to a fallback enumerator, and false otherwise.
objectAddress Return a pointer to the wrapped object.
toInt Load into the specified result the integer representation of the enumerator value held by this object.
toString Load into the specified result the string representation of the enumerator value held by this object.
vtable Return a pointer to the vtable.
xsdName Return the bdlat_TypeName::xsdName value for the underlying object.

Non-Member Functions

NameDescription
bdlat_TypeName_xsdNameReturn the bdlat_TypeName::xsdName value for the specified ref.
bdlat_enumHasFallbackReturn true if the specified value has a fallback enumerator, and false otherwise.
bdlat_enumIsFallbackReturn true if the specified value is equal to a fallback enumerator, and false otherwise.