Type-erased const reference to an object in the bdlat choice category.
Declared in <bdlar_choiceref.h>
class ChoiceConstRef;
| Name | Description |
|---|---|
ChoiceConstRef [constructor] | Constructors |
accessSelection | Invoke the specified accessor on the current selection. |
hasSelection | hasSelection overloads |
objectAddress | Return a pointer to the wrapped array. |
selectionId | Return the id of the current selection if the selection is defined, and -1 otherwise. |
vtable | Return a pointer to the vtable. |
xsdName | Return the bdlat_TypeName::xsdName value for the underlying object. |
| Name | Description |
|---|---|
bdlat_TypeName_xsdName | Return the XSD name for the specified ref using the specified format. |
bdlat_choiceAccessSelection | Invoke the specified accessor on the current selection of the specified ref. Return the value from the invocation of accessor. |
bdlat_choiceHasSelection | Return true if the specified ref has the selection identified by the specified selectionId, and false otherwise. |
bdlat_choiceHasSelection | Return true if the specified ref has the selection identified by the specified selectionName of the specified selectionNameLength, and false otherwise. |
bdlat_choiceSelectionId | Return the id of the current selection if the selection is defined, and -1 otherwise. |