touchgfx::AbstractPartition class
@class AbstractPartition AbstractPartition.hpp touchgfx/common/AbstractPartition.hpp This type defines an abstract interface to a storage partition for allocating memory slots of equal size. This type defines an abstract interface to a storage partition for allocating memory slots of equal size. The "partition" is not aware of the actual types stored in the partition memory, hence it provides no mechanism for deleting C++ objects when clear()'ed.
Methods
getAllocationCount() const
@fn virtual uint16_t AbstractPartition::getAllocationCount() const; Gets allocation count. Gets allocation count.
Read more...
indexOf()
@fn virtual uint16_t AbstractPartition::indexOf(const void* address); Determines index of previously allocated location. Determines index of previously allocated location. Since the Partition concept is loosely typed this method shall be used with care. The method does not guarantee that the found object at the returned index is a valid object. It only tests whether or not the object is within the bounds of the current partition allocations.
Read more...
clear()
@fn virtual void AbstractPartition::clear(); Prepares the Partition for new allocations. Prepares the Partition for new allocations. Any objects present in the Partition shall not be used after invoking this method.
Read more...
capacity() const
@fn virtual uint16_t AbstractPartition::capacity() const = 0; Gets the capacity, i.e. the maximum allocation count. Gets the capacity, i.e. the maximum allocation count.
Read more...
allocate()
allocateAt()
at()
at() const
allocate()
allocateAt()
find()
dec()
@fn void AbstractPartition::dec() Decreases number of allocations. Decreases number of allocations.
Read more...
element_size()
@fn virtual uint32_t AbstractPartition::element_size() = 0; Access to concrete element-size. Used internally. Access to concrete element-size. Used internally.
Read more...
element()
@fn virtual void* AbstractPartition::element(uint16_t index) = 0; Access to stored element. Used internally. Access to stored element. Used internally.
Read more...
element() const
@fn virtual const void* AbstractPartition::element(uint16_t index) const = 0; Access to stored element, const version. Access to stored element, const version.
Read more...
Variables of touchgfx::AbstractPartition type
touchgfx::AbstractPartition