Declared in <bdlar_choiceref.h>
class ChoiceConstRef;
| Name | Description |
|---|---|
ChoiceConstRef [constructor] | Constructors |
accessSelection | Invoke the specified accessor on the (non-modifiable) selection, supplying accessor with the corresponding selection information structure. The supplied accessor must be a callable type that can be called as if it had the following signature: ` template <class t_INFO> int accessor(const SELECTION& refOrValue, const t_INFO& info); ` Return the value returned from the invocation of accessor. The behavior is undefined unless selectionId() != -1. |
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. |