This namespace provides functions that expose "choice" behavior for "choice" types. See the component‐level documentation for more information.

Types

Name

Description

IsChoice

This struct should be specialized for third‐party types that need to expose "choice" behavior. See the component‐level documentation for further information.

Enums

Name

Description

Unnamed enum

Compile‐time constants for choice selection identifiers.

Functions

Name

Description

accessSelection

Invoke the specified accessor on the (non‐modifiable) selection of the specified object, 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_TYPE& selection, const t_INFO& info); ` Return the value returned from the invocation of accessor. The behavior is undefined unless k_UNDEFINED_SELECTION_ID != selectionId(object).

bdlat_choiceAccessSelection

Default customization‐point implementation of accessSelection.

bdlat_choiceHasSelection

bdlat_choiceHasSelection overloads

bdlat_choiceMakeSelection

bdlat_choiceMakeSelection overloads

bdlat_choiceManipulateSelection

Default customization‐point implementation of manipulateSelection.

bdlat_choiceSelectionId

Default customization‐point implementation of selectionId.

hasSelection

hasSelection overloads

makeSelection

makeSelection overloads

manipulateSelection

Invoke the specified manipulator on the address of the (modifiable) selection of the specified object, supplying manipulator with the corresponding selection information structure. The supplied manipulator must be a callable type that can be called as if it had the following signature: ` template <class t_INFO> int manipulator(SELECTION_TYPE *selection, const t_INFO& info); ` Return the value returned from the invocation of manipulator. The behavior is undefined unless k_UNDEFINED_SELECTION_ID != selectionId(*object).

selectionId

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

Created with MrDocs