|
wavelength 1.0.0
|
Free block of a Heap, a node of the heap's free list in address order. More...
#include <heap.h>

Public Member Functions | |
| bool | Merge (FreeBlock *pNext) |
| Absorb the free block that starts where this one ends. | |
| int * | EndAddr () |
| Report the word after the run. | |
| bool | Coalesce (FreeBlock *next) |
| Absorb the next free run when it starts where this run ends. | |
Public Attributes | |
| int | mSizeWords |
| FreeBlock * | mNext |
Free block of a Heap, a node of the heap's free list in address order.
Header of a free run of words in a heap.
The class is not polymorphic. The name is inferred.
The header occupies the first two words of the run. A heap links its free runs in a singly linked list sorted by address. The name is inferred from the heap's assertions.
| bool FreeBlock::Merge | ( | FreeBlock * | pNext | ) |
Absorb the free block that starts where this one ends.
| pNext | The following free block. |
|
inline |
Report the word after the run.
| bool FreeBlock::Coalesce | ( | FreeBlock * | next | ) |
Absorb the next free run when it starts where this run ends.
| next | The run after this one in the free list. |
| int FreeBlock::mSizeWords |
The size of the block in words, this node included.
Length of the run in words, including this header.
| FreeBlock * FreeBlock::mNext |
The next free block, at a higher address, or null.
The next free run at a higher address, or null.