Type‐erased non‐const reference to an object in the bdlat choice category.

Synopsis

Declared in <bdlar_choiceref.h>

class ChoiceRef;

Member Functions

Name

Description

ChoiceRef [constructor]

Constructors

accessSelection

Invoke the specified accessor on the current selection.

hasSelection

hasSelection overloads

makeSelection

makeSelection overloads

manipulateSelection

Invoke the specified manipulator on the current selection.

objectAddress

Return a pointer to the wrapped array.

reset

Reset the referred object to the default value.

selectionId

Return the id of the current selection if the selection is defined, and ‐1 otherwise.

vtable

Return a pointer to the vtable.

Non-Member Functions

Name

Description

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 whether the specified ref has the selection with the specified selectionName and selectionNameLength.

bdlat_choiceHasSelection

Return whether the specified ref has the selection with the specified selectionId.

bdlat_choiceMakeSelection

Make the selection identified by the specified selectionId in the specified ref.

bdlat_choiceMakeSelection

Make the selection identified by the specified selectionName of the specified selectionNameLength in the specified ref.

bdlat_choiceManipulateSelection

Invoke the specified manipulator on the current selection of the specified ref. Return the value from the invocation of manipulator.

bdlat_choiceSelectionId

Return the id of the current selection if the selection is defined, and ‐1 otherwise.

bdlat_valueTypeReset

Reset the specified ref to its default‐constructed state.

Created with MrDocs