24 #ifndef ARM_COMPUTE_ILUTALLOCATOR_H 25 #define ARM_COMPUTE_ILUTALLOCATOR_H 70 virtual void allocate() = 0;
75 virtual uint8_t *lock() = 0;
77 virtual void unlock() = 0;
virtual ~ILutAllocator()=default
Default virtual destructor.
size_t num_elements() const
Returns the total number of elements in the LUT.
Basic interface to allocate LUTs'.
Copyright (c) 2017-2021 Arm Limited.
void init(size_t num_elements, DataType data_type)
Allocate an LUT of the requested number of elements and data_type.
ILutAllocator & operator=(ILutAllocator &&)=default
Allow instances of this class to be moved.
ILutAllocator()
Default constructor.
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.