This class provides a type-erased, read-only reference to an array value that dispatches operations through a vtable.
Declared in <bdlar_arrayref.h>
class ArrayConstRef;
| Name | Description |
|---|---|
ArrayConstRef [constructor] | Constructors |
accessElement | Invoke the specified accessor on the array element at the specified index. The supplied accessor must be a callable type that can be called as if it had the following signature: ` int accessor(const ELEMENT& ref); ` Return the value from the invocation of accessor. The behavior is undefined unless 0 <= index < size(). |
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. |
| Name | Description |
|---|---|
bdlat_TypeName_xsdName | Return the XSD name for the specified ref using the specified format. |
bdlat_arrayAccessElement | Invoke the specified accessor on the array element at the specified index of the specified array. Return the value from the invocation of accessor. |
bdlat_arraySize | Return the number of elements in the specified array. |