21.02
|
Lookup Table object interface. More...
#include <ILut.h>
Public Member Functions | |
virtual | ~ILut ()=default |
Default virtual destructor. More... | |
virtual size_t | num_elements () const =0 |
Returns the total number of elements in the LUT. More... | |
virtual uint32_t | index_offset () const =0 |
Indicates the offset that needs to be applied to the raw index before performing a lookup in the LUT. More... | |
virtual size_t | size_in_bytes () const =0 |
Returns the total size in bytes of the LUT. More... | |
virtual DataType | type () const =0 |
Returns the type of the LUT. More... | |
virtual uint8_t * | buffer () const =0 |
Returns a pointer to the start of the LUT. More... | |
virtual void | clear ()=0 |
Clears the LUT by setting every element to zero. More... | |
|
virtualdefault |
Default virtual destructor.
|
pure virtual |
Returns a pointer to the start of the LUT.
Other elements of the LUT can be accessed using buffer()[idx] for 0 <= idx < num_elements().
Implemented in ICLLut, and Lut.
Referenced by NETableLookupKernel::NETableLookupKernel(), LutAccessor< T >::operator[](), and NECumulativeDistributionKernel::run().
|
pure virtual |
|
pure virtual |
Indicates the offset that needs to be applied to the raw index before performing a lookup in the LUT.
Implemented in CLLut, and Lut.
Referenced by CLTableLookupKernel::configure(), NETableLookupKernel::NETableLookupKernel(), and LutAccessor< T >::operator[]().
|
pure virtual |
Returns the total number of elements in the LUT.
Implemented in CLLut, and Lut.
Referenced by CLTableLookupKernel::configure(), NECumulativeDistributionKernel::configure(), NETableLookupKernel::NETableLookupKernel(), and LutAccessor< T >::num_elements().
|
pure virtual |
|
pure virtual |
Returns the type of the LUT.
Implemented in CLLut, and Lut.
Referenced by CLTableLookupKernel::configure(), and NECumulativeDistributionKernel::configure().