Compute Library
18.05
|
Accessor implementation for CLLut objects. More...
#include <CLLutAccessor.h>
Public Member Functions | |
CLLutAccessor (CLLut &lut) | |
Create an accessor for the given CLLut . More... | |
~CLLutAccessor () | |
Default destructor. More... | |
CLLutAccessor (const CLLutAccessor &)=delete | |
Prevent instances of this class from being copy constructed. More... | |
CLLutAccessor & | operator= (const CLLutAccessor &)=delete |
Prevent instances of this class from being copied. More... | |
CLLutAccessor (CLLutAccessor &&)=default | |
Allow instances of this class to be move constructed. More... | |
CLLutAccessor & | operator= (CLLutAccessor &&)=default |
Allow instance of this class to be moved. More... | |
int | num_elements () const override |
Number of elements of the Lut. More... | |
const T & | operator[] (T input_value) const override |
Read access to the specified element. More... | |
T & | operator[] (T input_value) override |
Write access to the specified element. More... | |
Public Member Functions inherited from ILutAccessor< T > | |
virtual | ~ILutAccessor ()=default |
Pure virtual destructor. More... | |
Additional Inherited Members | |
Public Types inherited from ILutAccessor< T > | |
using | value_type = T |
Lut value type. More... | |
Accessor implementation for CLLut objects.
Definition at line 37 of file CLLutAccessor.h.
|
inline |
Create an accessor for the given CLLut
.
Definition at line 42 of file CLLutAccessor.h.
References CLLut::map().
Referenced by CLLutAccessor< T >::~CLLutAccessor().
|
inline |
Default destructor.
Definition at line 48 of file CLLutAccessor.h.
References CLLutAccessor< T >::CLLutAccessor(), CLLutAccessor< T >::operator=(), and CLLut::unmap().
|
delete |
Prevent instances of this class from being copy constructed.
|
default |
Allow instances of this class to be move constructed.
|
inlineoverridevirtual |
Number of elements of the Lut.
Implements ILutAccessor< T >.
Definition at line 62 of file CLLutAccessor.h.
References CLLut::num_elements().
Referenced by CLLutAccessor< T >::operator[]().
|
delete |
Prevent instances of this class from being copied.
Referenced by CLLutAccessor< T >::~CLLutAccessor().
|
default |
Allow instance of this class to be moved.
|
inlineoverridevirtual |
Read access to the specified element.
[in] | input_value | Lut input value, from numericlimits<T>:min to numericlimits<T>:max. |
Implements ILutAccessor< T >.
Definition at line 67 of file CLLutAccessor.h.
References ARM_COMPUTE_ERROR, ICLLut::buffer(), CLLut::index_offset(), and CLLutAccessor< T >::num_elements().
|
inlineoverridevirtual |
Write access to the specified element.
[in] | input_value | Lut input value, from numericlimits<T>:min to numericlimits<T>:max. |
Implements ILutAccessor< T >.
Definition at line 79 of file CLLutAccessor.h.
References ARM_COMPUTE_ERROR, ICLLut::buffer(), CLLut::index_offset(), and CLLutAccessor< T >::num_elements().