24 #ifndef ARM_COMPUTE_TEST_ARRAYACCESSOR_H 25 #define ARM_COMPUTE_TEST_ARRAYACCESSOR_H 59 return _array.num_values();
64 return _array.buffer();
72 T &
at(
size_t index)
const override 76 return _array.buffer()[index];
void resize(size_t num) override
Resize array.
ArrayAccessor & operator=(const ArrayAccessor &)=delete
Prevent instances of this class from being copied.
ArrayAccessor(Array< T > &array)
Create an accessor for the given array.
ArrayAccessor implementation for Array objects.
size_t num_values() const override
Number of elements of the tensor.
#define ARM_COMPUTE_ERROR_ON(cond)
If the condition is true then an error message is printed and an exception thrown.
Copyright (c) 2017-2021 Arm Limited.
Basic implementation of the IArray interface which allocates a static number of T values...
T & at(size_t index) const override
Reference to the element of the array located at the given index.
T * buffer() override
Access to the buffer.
Common interface to provide information and access to array like structures.