24.02.1
|
Go to the documentation of this file.
24 #ifndef ARM_COMPUTE_TEST_CLARRAYACCESSOR_H
25 #define ARM_COMPUTE_TEST_CLARRAYACCESSOR_H
69 return _array.num_values();
74 return _array.buffer();
82 T &
at(
size_t index)
const override
86 return _array.buffer()[index];
CLArrayAccessor(CLArray< T > &array)
Create an accessor for the given array.
T & at(size_t index) const override
Reference to the element of the array located at the given index.
Accessor implementation for CLArray objects.
#define ARM_COMPUTE_ERROR_ON(cond)
If the condition is true then an error message is printed and an exception thrown.
CLArrayAccessor & operator=(const CLArrayAccessor &)=delete
Prevent instances of this class from being copied.
~CLArrayAccessor()
Destructor that unmaps the CL memory.
void resize(size_t num) override
Resize array.
Copyright (c) 2017-2024 Arm Limited.
T * buffer() override
Access to the buffer.
Common interface to provide information and access to array like structures.
size_t num_values() const override
Number of elements of the tensor.