chunk_stack Class Reference
keeps free chunks of memory for reusing
More...
#include <memory.h>
List of all members.
|
Public Member Functions |
| | chunk_stack () |
| | constructor
|
| void | clear () |
| | clears stack
|
| void | push (size_t *chunk) |
| | pushes new chunk
|
| size_t * | pop () |
| | removes the head chunk
|
| size_t * | top () |
| | returns the head chunk
|
| bool | empty () |
| | returns the head chunk
|
Private Attributes |
| size_t * | _head |
| | pointer to the head chunk
|
Detailed Description
keeps free chunks of memory for reusing
Definition at line 124 of file memory.h.
Constructor & Destructor Documentation
| BEGIN_TERIMBER_NAMESPACE chunk_stack::chunk_stack |
( |
|
) |
[inline] |
Member Function Documentation
| void chunk_stack::clear |
( |
|
) |
[inline] |
| void chunk_stack::push |
( |
size_t * |
chunk |
) |
[inline] |
| size_t * chunk_stack::pop |
( |
|
) |
[inline] |
| size_t * chunk_stack::top |
( |
|
) |
[inline] |
| bool chunk_stack::empty |
( |
|
) |
[inline] |
Member Data Documentation
The documentation for this class was generated from the following files: