21.02
|
Basic interface to allocate LUTs'. More...
#include <ILutAllocator.h>
Public Member Functions | |
ILutAllocator () | |
Default constructor. More... | |
virtual | ~ILutAllocator ()=default |
Default virtual destructor. More... | |
ILutAllocator (ILutAllocator &&)=default | |
Allow instances of this class to be move constructed. More... | |
ILutAllocator & | operator= (ILutAllocator &&)=default |
Allow instances of this class to be moved. More... | |
void | init (size_t num_elements, DataType data_type) |
Allocate an LUT of the requested number of elements and data_type. More... | |
size_t | num_elements () const |
Returns the total number of elements in the LUT. More... | |
DataType | type () const |
Returns the type of the LUT. More... | |
size_t | size () const |
Returns the total size in bytes of the LUT. More... | |
Basic interface to allocate LUTs'.
Definition at line 35 of file ILutAllocator.h.
ILutAllocator | ( | ) |
Default constructor.
Definition at line 30 of file ILutAllocator.cpp.
References arm_compute::U8.
|
virtualdefault |
Default virtual destructor.
|
default |
Allow instances of this class to be move constructed.
void init | ( | size_t | num_elements, |
DataType | data_type | ||
) |
Allocate an LUT of the requested number of elements and data_type.
[in] | num_elements | Number of elements of the LUT. |
[in] | data_type | Data type of each element. |
Definition at line 35 of file ILutAllocator.cpp.
References arm_compute::test::validation::data_type, and ILutAllocator::num_elements().
Referenced by CLLut::CLLut(), and Lut::Lut().
size_t num_elements | ( | ) | const |
Returns the total number of elements in the LUT.
Definition at line 45 of file ILutAllocator.cpp.
Referenced by ILutAllocator::init(), Lut::num_elements(), CLLut::num_elements(), and ILutAllocator::size().
|
default |
Allow instances of this class to be moved.
size_t size | ( | ) | const |
Returns the total size in bytes of the LUT.
Definition at line 55 of file ILutAllocator.cpp.
References arm_compute::data_size_from_type(), and ILutAllocator::num_elements().
Referenced by LutAllocator::data(), CLLutAllocator::map(), Lut::size_in_bytes(), CLLut::size_in_bytes(), and CLLutAllocator::unmap().
DataType type | ( | ) | const |
Returns the type of the LUT.
Definition at line 50 of file ILutAllocator.cpp.
Referenced by Lut::index_offset(), CLLut::index_offset(), Lut::type(), and CLLut::type().