BloombergLP::bdlar::AnyRef

A type-erased universal wrapper for reference to any type category with read/write access.

Synopsis

Declared in <bdlar_anyref.h>

class AnyRef;

Member Functions

NameDescription
AnyRef [constructor]Constructors
arrayVtable Return a pointer to the vtable. The behavior is undefined unless typeCategory() == bdlat_TypeCategory::e_ARRAY_CATEGORY.
choiceVtable Return a pointer to the vtable. The behavior is undefined unless typeCategory() == bdlat_TypeCategory::e_CHOICE_CATEGORY.
customizedTypeVtable Return a pointer to the vtable. The behavior is undefined unless typeCategory() == bdlat_TypeCategory::e_CUSTOMIZED_TYPE_CATEGORY.
dynamicTypeVtable Return a pointer to the vtable. The behavior is undefined unless typeCategory() == bdlat_TypeCategory::e_DYNAMIC_CATEGORY.
enumVtable Return a pointer to the vtable. The behavior is undefined unless typeCategory() == bdlat_TypeCategory::e_ENUMERATION_CATEGORY.
nullableValueVtable Return a pointer to the vtable. The behavior is undefined unless typeCategory() == bdlat_TypeCategory::e_NULLABLE_VALUE_CATEGORY.
objectAddress Return a pointer to the wrapped object.
reset Reset the referred object to the default value.
sequenceVtable Return a pointer to the vtable. The behavior is undefined unless typeCategory() == bdlat_TypeCategory::e_SEQUENCE_CATEGORY.
simpleTypeVtable Return a pointer to the vtable. The behavior is undefined unless typeCategory() == bdlat_TypeCategory::e_SIMPLE_CATEGORY.
typeCategory Return type category of the referred object.

Non-Member Functions

NameDescription
bdlat_typeCategoryAccessArrayInvoke the specified accessor on the array selection of the specified any. Return the value from the invocation of accessor.
bdlat_typeCategoryAccessChoiceInvoke the specified accessor on the choice selection of the specified any. Return the value from the invocation of accessor.
bdlat_typeCategoryAccessCustomizedTypeInvoke the specified accessor on the customized-type selection of the specified any. Return the value from the invocation of accessor.
bdlat_typeCategoryAccessEnumerationInvoke the specified accessor on the enumeration selection of the specified any. Return the value from the invocation of accessor.
bdlat_typeCategoryAccessNullableValueInvoke the specified accessor on the nullable-value selection of the specified any. Return the value from the invocation of accessor.
bdlat_typeCategoryAccessSequenceInvoke the specified accessor on the sequence selection of the specified any. Return the value from the invocation of accessor.
bdlat_typeCategoryAccessSimpleInvoke the specified accessor on the simple-type selection of the specified any. Return the value from the invocation of accessor.
bdlat_typeCategoryManipulateArrayInvoke the specified manipulator on the array selection of the specified any. Return the value from the invocation of manipulator.
bdlat_typeCategoryManipulateChoiceInvoke the specified manipulator on the choice selection of the specified any. Return the value from the invocation of manipulator.
bdlat_typeCategoryManipulateCustomizedTypeInvoke the specified manipulator on the customized-type selection of the specified any. Return the value from the invocation of manipulator.
bdlat_typeCategoryManipulateEnumerationInvoke the specified manipulator on the enumeration selection of the specified any. Return the value from the invocation of manipulator.
bdlat_typeCategoryManipulateNullableValueInvoke the specified manipulator on the nullable-value selection of the specified any. Return the value from the invocation of manipulator.
bdlat_typeCategoryManipulateSequenceInvoke the specified manipulator on the sequence selection of the specified any. Return the value from the invocation of manipulator.
bdlat_typeCategoryManipulateSimpleInvoke the specified manipulator on the simple-type selection of the specified any. Return the value from the invocation of manipulator.
bdlat_typeCategorySelectReturn the type category of the object referred to by the specified any.
bdlat_valueTypeResetReset the object referred to by the specified ref.