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

Vtable for mutable enum access&period;

== Synopsis

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

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

== Description

This struct stores a series of function pointers to wrappers that invoke the underlying methods of the supplied type erased object that implement the &quot;enum&quot; type category&period;

== Type Aliases

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bdlar/EnumVtable/FromInt.adoc[`FromInt`] 
| Function pointer type assigning an enum value from an integer&period;
| xref:BloombergLP/bdlar/EnumVtable/FromString.adoc[`FromString`] 
| Function pointer type assigning an enum value from a string&period;
| xref:BloombergLP/bdlar/EnumVtable/MakeFallback.adoc[`MakeFallback`] 
| Function pointer type assigning the fallback enumerator value&period;
| xref:BloombergLP/bdlar/EnumVtable/Reset.adoc[`Reset`] 
| Function pointer type resetting an enum to its default value&period;
|===


== Data Members

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bdlar/EnumVtable/d_const.adoc[`d&lowbar;const`] 
| read&hyphen;only vtable
| xref:BloombergLP/bdlar/EnumVtable/d_fromInt_fp.adoc[`d&lowbar;fromInt&lowbar;fp`] 
| assign from integer
| xref:BloombergLP/bdlar/EnumVtable/d_fromString_fp.adoc[`d&lowbar;fromString&lowbar;fp`] 
| assign from string
| xref:BloombergLP/bdlar/EnumVtable/d_makeFallback_fp.adoc[`d&lowbar;makeFallback&lowbar;fp`] 
| assign fallback value
| xref:BloombergLP/bdlar/EnumVtable/d_reset_fp.adoc[`d&lowbar;reset&lowbar;fp`] 
| reset function
|===



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