[#BloombergLP-bdlar-AnyRef] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlar.adoc[bdlar]::AnyRef :relfileprefix: ../../ :mrdocs: A type‐erased universal wrapper for reference to any type category with read/write access. == Synopsis Declared in `<bdlar_anyref.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- class AnyRef; ---- == Member Functions [cols="1,4"] |=== | Name| Description | xref:BloombergLP/bdlar/AnyRef/2constructor-02.adoc[`AnyRef`] [.small]#[constructor]# | Constructors | xref:BloombergLP/bdlar/AnyRef/arrayVtable.adoc[`arrayVtable`] | Return a pointer to the vtable. The behavior is undefined unless `typeCategory() == bdlat_TypeCategory::e_ARRAY_CATEGORY`. | xref:BloombergLP/bdlar/AnyRef/choiceVtable.adoc[`choiceVtable`] | Return a pointer to the vtable. The behavior is undefined unless `typeCategory() == bdlat_TypeCategory::e_CHOICE_CATEGORY`. | xref:BloombergLP/bdlar/AnyRef/customizedTypeVtable.adoc[`customizedTypeVtable`] | Return a pointer to the vtable. The behavior is undefined unless `typeCategory() == bdlat_TypeCategory::e_CUSTOMIZED_TYPE_CATEGORY`. | xref:BloombergLP/bdlar/AnyRef/dynamicTypeVtable.adoc[`dynamicTypeVtable`] | Return a pointer to the vtable. The behavior is undefined unless `typeCategory() == bdlat_TypeCategory::e_DYNAMIC_CATEGORY`. | xref:BloombergLP/bdlar/AnyRef/enumVtable.adoc[`enumVtable`] | Return a pointer to the vtable. The behavior is undefined unless `typeCategory() == bdlat_TypeCategory::e_ENUMERATION_CATEGORY`. | xref:BloombergLP/bdlar/AnyRef/nullableValueVtable.adoc[`nullableValueVtable`] | Return a pointer to the vtable. The behavior is undefined unless `typeCategory() == bdlat_TypeCategory::e_NULLABLE_VALUE_CATEGORY`. | xref:BloombergLP/bdlar/AnyRef/objectAddress.adoc[`objectAddress`] | Return a pointer to the wrapped object. | xref:BloombergLP/bdlar/AnyRef/reset.adoc[`reset`] | Reset the referred object to the default value. | xref:BloombergLP/bdlar/AnyRef/sequenceVtable.adoc[`sequenceVtable`] | Return a pointer to the vtable. The behavior is undefined unless `typeCategory() == bdlat_TypeCategory::e_SEQUENCE_CATEGORY`. | xref:BloombergLP/bdlar/AnyRef/simpleTypeVtable.adoc[`simpleTypeVtable`] | Return a pointer to the vtable. The behavior is undefined unless `typeCategory() == bdlat_TypeCategory::e_SIMPLE_CATEGORY`. | xref:BloombergLP/bdlar/AnyRef/typeCategory.adoc[`typeCategory`] | Return type category of the referred object. |=== == Non-Member Functions [cols="1,4"] |=== | Name| Description | xref:BloombergLP/bdlar/bdlat_typeCategoryAccessArray-04.adoc[`bdlat_typeCategoryAccessArray`] | Invoke the specified `accessor` on the array selection of the specified `any`. Return the value from the invocation of `accessor`. | xref:BloombergLP/bdlar/bdlat_typeCategoryAccessChoice-04.adoc[`bdlat_typeCategoryAccessChoice`] | Invoke the specified `accessor` on the choice selection of the specified `any`. Return the value from the invocation of `accessor`. | xref:BloombergLP/bdlar/bdlat_typeCategoryAccessCustomizedType-01.adoc[`bdlat_typeCategoryAccessCustomizedType`] | Invoke the specified `accessor` on the customized‐type selection of the specified `any`. Return the value from the invocation of `accessor`. | xref:BloombergLP/bdlar/bdlat_typeCategoryAccessEnumeration-07.adoc[`bdlat_typeCategoryAccessEnumeration`] | Invoke the specified `accessor` on the enumeration selection of the specified `any`. Return the value from the invocation of `accessor`. | xref:BloombergLP/bdlar/bdlat_typeCategoryAccessNullableValue-09.adoc[`bdlat_typeCategoryAccessNullableValue`] | Invoke the specified `accessor` on the nullable‐value selection of the specified `any`. Return the value from the invocation of `accessor`. | xref:BloombergLP/bdlar/bdlat_typeCategoryAccessSequence-03.adoc[`bdlat_typeCategoryAccessSequence`] | Invoke the specified `accessor` on the sequence selection of the specified `any`. Return the value from the invocation of `accessor`. | xref:BloombergLP/bdlar/bdlat_typeCategoryAccessSimple-03.adoc[`bdlat_typeCategoryAccessSimple`] | Invoke the specified `accessor` on the simple‐type selection of the specified `any`. Return the value from the invocation of `accessor`. | xref:BloombergLP/bdlar/bdlat_typeCategoryManipulateArray-0f.adoc[`bdlat_typeCategoryManipulateArray`] | Invoke the specified `manipulator` on the array selection of the specified `any`. Return the value from the invocation of `manipulator`. | xref:BloombergLP/bdlar/bdlat_typeCategoryManipulateChoice-03.adoc[`bdlat_typeCategoryManipulateChoice`] | Invoke the specified `manipulator` on the choice selection of the specified `any`. Return the value from the invocation of `manipulator`. | xref:BloombergLP/bdlar/bdlat_typeCategoryManipulateCustomizedType-08.adoc[`bdlat_typeCategoryManipulateCustomizedType`] | Invoke the specified `manipulator` on the customized‐type selection of the specified `any`. Return the value from the invocation of `manipulator`. | xref:BloombergLP/bdlar/bdlat_typeCategoryManipulateEnumeration-03.adoc[`bdlat_typeCategoryManipulateEnumeration`] | Invoke the specified `manipulator` on the enumeration selection of the specified `any`. Return the value from the invocation of `manipulator`. | xref:BloombergLP/bdlar/bdlat_typeCategoryManipulateNullableValue-02.adoc[`bdlat_typeCategoryManipulateNullableValue`] | Invoke the specified `manipulator` on the nullable‐value selection of the specified `any`. Return the value from the invocation of `manipulator`. | xref:BloombergLP/bdlar/bdlat_typeCategoryManipulateSequence-0a.adoc[`bdlat_typeCategoryManipulateSequence`] | Invoke the specified `manipulator` on the sequence selection of the specified `any`. Return the value from the invocation of `manipulator`. | xref:BloombergLP/bdlar/bdlat_typeCategoryManipulateSimple-06.adoc[`bdlat_typeCategoryManipulateSimple`] | Invoke the specified `manipulator` on the simple‐type selection of the specified `any`. Return the value from the invocation of `manipulator`. | xref:BloombergLP/bdlar/bdlat_typeCategorySelect-02a.adoc[`bdlat_typeCategorySelect`] | Return the type category of the object referred to by the specified `any`. | xref:BloombergLP/bdlar/bdlat_valueTypeReset-07.adoc[`bdlat_valueTypeReset`] | Reset the object referred to by the specified `ref`. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#