BloombergLP::bdlar::ArrayConstRef

This class provides a type-erased, read-only reference to an array value that dispatches operations through a vtable.

Synopsis

Declared in <bdlar_arrayref.h>

class ArrayConstRef;

Member Functions

NameDescription
ArrayConstRef [constructor]Constructors
accessElement Invoke the specified accessor on the array element at the specified index.
elementCategory Return the element type category of the wrapped array.
objectAddress Return a pointer to the wrapped array.
size Return the number of elements in the wrapped array.
vtable Return a pointer to the vtable.
xsdName Return the bdlat_TypeName::xsdName value for the underlying object.

Non-Member Functions

NameDescription
bdlat_TypeName_xsdNameReturn the XSD name for the specified ref using the specified format.
bdlat_arrayAccessElementInvoke the specified accessor on the array element at the specified index of the specified array. Return the value from the invocation of accessor.
bdlat_arraySizeReturn the number of elements in the specified array.