38 _allocator.
init(num_elements, data_type);
53 return _allocator.
size();
58 return _allocator.
type();
63 return _allocator.
data();
size_t size_in_bytes() const override
Returns the total size in bytes of the LUT.
uint8_t * data() const
Interface to be implemented by the child class to return the pointer to the allocate data...
size_t num_elements() const
Returns the total number of elements in the LUT.
uint32_t index_offset() const override
Indicates the offset that needs to be applied to the raw index before performing a lookup in the LUT...
#define ARM_COMPUTE_ERROR_ON(cond)
If the condition is true then an error message is printed and an exception thrown.
DataType type() const override
Returns the type of the LUT.
Basic interface to allocate LUTs'.
Copyright (c) 2017-2021 Arm Limited.
ILutAllocator * allocator()
Return a pointer to the lut's allocator.
void init(size_t num_elements, DataType data_type)
Allocate an LUT of the requested number of elements and data_type.
1 channel, 1 S16 per channel
size_t num_elements() const override
Returns the total number of elements in the LUT.
uint8_t * buffer() const override
Returns a pointer to the start of the LUT.
size_t size() const
Returns the total size in bytes of the LUT.
DataType
Available data types.
DataType type() const
Returns the type of the LUT.
void clear() override
Clears the LUT by setting every element to zero.