24.02.1
|
Accessor implementation for CLArray objects. More...
#include <CLArrayAccessor.h>
Public Member Functions | |
CLArrayAccessor (CLArray< T > &array) | |
Create an accessor for the given array . More... | |
CLArrayAccessor (const CLArrayAccessor &)=delete | |
Prevent instances of this class from being copy constructed. More... | |
CLArrayAccessor & | operator= (const CLArrayAccessor &)=delete |
Prevent instances of this class from being copied. More... | |
CLArrayAccessor (CLArrayAccessor &&)=default | |
Allow instances of this class to be move constructed. More... | |
CLArrayAccessor & | operator= (CLArrayAccessor &&)=default |
Allow instances of this class to be moved. More... | |
~CLArrayAccessor () | |
Destructor that unmaps the CL memory. More... | |
size_t | num_values () const override |
Number of elements of the tensor. More... | |
T * | buffer () override |
Access to the buffer. More... | |
void | resize (size_t num) override |
Resize array. More... | |
T & | at (size_t index) const override |
Reference to the element of the array located at the given index. More... | |
Public Member Functions inherited from IArrayAccessor< T > | |
virtual | ~IArrayAccessor ()=default |
Virtual destructor. More... | |
Additional Inherited Members | |
Public Types inherited from IArrayAccessor< T > | |
using | value_type = T |
Array value type. More... | |
Accessor implementation for CLArray objects.
Definition at line 36 of file CLArrayAccessor.h.
|
inline |
Create an accessor for the given array
.
[in,out] | array | To be accessed array. |
Definition at line 46 of file CLArrayAccessor.h.
|
delete |
Prevent instances of this class from being copy constructed.
|
default |
Allow instances of this class to be move constructed.
|
inline |
Destructor that unmaps the CL memory.
Definition at line 62 of file CLArrayAccessor.h.
|
inlineoverridevirtual |
Reference to the element of the array located at the given index.
[in] | index | Index of the element |
Implements IArrayAccessor< T >.
Definition at line 82 of file CLArrayAccessor.h.
References ARM_COMPUTE_ERROR_ON, and CLArrayAccessor< T >::num_values().
|
inlineoverridevirtual |
Access to the buffer.
Implements IArrayAccessor< T >.
Definition at line 72 of file CLArrayAccessor.h.
|
inlineoverridevirtual |
Number of elements of the tensor.
Implements IArrayAccessor< T >.
Definition at line 67 of file CLArrayAccessor.h.
Referenced by CLArrayAccessor< T >::at().
|
default |
Allow instances of this class to be moved.
|
delete |
Prevent instances of this class from being copied.
|
inlineoverridevirtual |
Resize array.
[in] | num | The new array size in number of elements |
Implements IArrayAccessor< T >.
Definition at line 77 of file CLArrayAccessor.h.