49 throw std::bad_alloc();
76 if( newVertices !=
nullptr )
84 throw std::bad_alloc();
NONCACHED_CONTAINER(unsigned int aSize=DEFAULT_SIZE)
Construct a non-cached container object.
virtual void SetItem(VERTEX_ITEM *aItem) override
Set the item for the further actions.
virtual VERTEX * Allocate(unsigned int aSize) override
Return allocated space for the requested number of vertices associated with the current item (set wit...
virtual ~NONCACHED_CONTAINER()
virtual void Clear() override
Remove all data stored in the container and restores its original state.
unsigned int m_freePtr
< Index of the free first space where a vertex can be stored
unsigned int m_currentSize
Store the initial size, so it can be resized to this on Clear()
unsigned int m_freeSpace
Current container size, expressed in vertices.
The Cairo implementation of the graphics abstraction layer.
Class to store instances of VERTEX without caching.