24 #ifndef ARM_COMPUTE_TEST_IARRAYACCESSOR_H 25 #define ARM_COMPUTE_TEST_IARRAYACCESSOR_H 60 virtual void resize(
size_t num) = 0;
68 virtual T &
at(
size_t index)
const = 0;
virtual T & at(size_t index) const =0
Reference to the element of the array located at the given index.
virtual size_t num_values() const =0
Number of elements of the tensor.
Copyright (c) 2017-2021 Arm Limited.
T value_type
Array value type.
Common interface to provide information and access to array like structures.
virtual ~IArrayAccessor()=default
Virtual destructor.
virtual void resize(size_t num)=0
Resize array.
virtual T * buffer()=0
Access to the buffer.