[#BloombergLP-bdlar-ChoiceConstVtable]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlar.adoc[bdlar]::ChoiceConstVtable
:relfileprefix: ../../
:mrdocs:

Vtable for read&hyphen;only choice access&period;

== Synopsis

Declared in `&lt;bdlar&lowbar;choicevtable&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
struct ChoiceConstVtable;
----

== Description

This struct stores a series of function pointers to wrappers that invoke the underlying methods with read&hyphen;only access of the supplied type erased object that implement the &quot;choice&quot; type category&period;

== Type Aliases

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bdlar/ChoiceConstVtable/AccessSelection.adoc[`AccessSelection`] 
| Function pointer type accessing a choice selection&period;
| xref:BloombergLP/bdlar/ChoiceConstVtable/HasSelectionId.adoc[`HasSelectionId`] 
| Function pointer type indicating whether a choice has the specified selection id&period;
| xref:BloombergLP/bdlar/ChoiceConstVtable/HasSelectionName.adoc[`HasSelectionName`] 
| Function pointer type indicating whether a choice has the specified selection name&period;
| xref:BloombergLP/bdlar/ChoiceConstVtable/SelectionId.adoc[`SelectionId`] 
| Function pointer type returning the current selection id of the specified `object`&period;
| xref:BloombergLP/bdlar/ChoiceConstVtable/XsdName.adoc[`XsdName`] 
| Function pointer type returning the `bdlat&lowbar;TypeName&colon;&colon;xsdName` value for `object`&period;
|===


== Data Members

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bdlar/ChoiceConstVtable/d_accessSelection_fp.adoc[`d&lowbar;accessSelection&lowbar;fp`] 
| selection accessor
| xref:BloombergLP/bdlar/ChoiceConstVtable/d_hasSelectionId_fp.adoc[`d&lowbar;hasSelectionId&lowbar;fp`] 
| selection id predicate
| xref:BloombergLP/bdlar/ChoiceConstVtable/d_hasSelectionName_fp.adoc[`d&lowbar;hasSelectionName&lowbar;fp`] 
| selection name predicate
| xref:BloombergLP/bdlar/ChoiceConstVtable/d_selectionId_fp.adoc[`d&lowbar;selectionId&lowbar;fp`] 
| selection id accessor
| xref:BloombergLP/bdlar/ChoiceConstVtable/d_xsdName_fp.adoc[`d&lowbar;xsdName&lowbar;fp`] 
| XSD name accessor
|===



[.small]#Created with https://www.mrdocs.com[MrDocs]#
