BloombergLP::bdlar::AnyConstRef

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

Synopsis

Declared in <bdlar_anyref.h>

class AnyConstRef;

Member Functions

NameDescription
AnyConstRef [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.
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.
xsdName Return the bdlat_TypeName::xsdName value for the underlying object.

Non-Member Functions

NameDescription
bdlat_TypeName_xsdNameReturn the XSD name of the object referred to by the specified ref.
bdlat_customizedTypeConvertToBaseTypeReturn an AnyConstRef to the base-type representation of the specified ref.
bdlat_customizedTypeConvertToBaseTypeReturn the base-type representation of the specified ref.
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_typeCategorySelectReturn the type category of the object referred to by the specified any.