Simple implementation of a FreeList which buffers the memory allocation of an embedded list item.
More...
#include <ogdf/basic/EFreeList.h>
|
| | EFreeList () |
| | Constructs a new freelist. More...
|
| |
| | ~EFreeList () |
| | Destructor. Releases the mem used by the remaining elements on the stack. More...
|
| |
| E * | alloc () |
| | Returns a new instance of E by either using an instance from the stack or creating a new one. More...
|
| |
| bool | empty () const |
| | Returns true if the stack is empty. More...
|
| |
| void | free (E *ptr) |
| | Frees an item buy putting it onto the stack of free instances. More...
|
| |
template<typename E, E *E::* next>
class ogdf::EFreeList< E, next >
Simple implementation of a FreeList which buffers the memory allocation of an embedded list item.
Definition at line 39 of file EFreeList.h.
◆ EFreeList()
template<typename E, E *E::* next>
Constructs a new freelist.
Definition at line 52 of file EFreeList.h.
◆ ~EFreeList()
template<typename E, E *E::* next>
Destructor. Releases the mem used by the remaining elements on the stack.
Definition at line 55 of file EFreeList.h.
◆ alloc()
template<typename E, E *E::* next>
Returns a new instance of E by either using an instance from the stack or creating a new one.
Definition at line 58 of file EFreeList.h.
◆ empty()
template<typename E, E *E::* next>
Returns true if the stack is empty.
Definition at line 67 of file EFreeList.h.
◆ free()
template<typename E, E *E::* next>
Frees an item buy putting it onto the stack of free instances.
Definition at line 70 of file EFreeList.h.
◆ freeFreeList()
template<typename E, E *E::* next>
deletes all instances in the list
Definition at line 74 of file EFreeList.h.
◆ EFreeListTypes< E, next >
template<typename E, E *E::* next>
◆ m_pTop
template<typename E, E *E::* next>
The documentation for this class was generated from the following file: