|
HAllocator
A Simple C++ Memory Allocator
|
Node structure for both Red-Black tree and doubly-linked list. More...
#include <Block.hpp>

Public Attributes | |
| MemoryNode * | left |
| Left child in Red-Black tree. | |
| MemoryNode * | right |
| Right child in Red-Black tree. | |
| MemoryNode * | parent |
| Parent node in Red-Black tree. | |
| std::size_t | value |
| Encoded value containing size, status, and color. | |
| MemoryNode * | next |
| Next node in memory sequence (doubly-linked list) | |
| MemoryNode * | prev |
| Previous node in memory sequence (doubly-linked list) | |
Node structure for both Red-Black tree and doubly-linked list.
Each node represents a memory region (either free or allocated). The node serves dual purposes:
| MemoryNode* hh::halloc::MemoryNode::left |
Left child in Red-Black tree.
| MemoryNode* hh::halloc::MemoryNode::next |
Next node in memory sequence (doubly-linked list)
| MemoryNode* hh::halloc::MemoryNode::parent |
Parent node in Red-Black tree.
| MemoryNode* hh::halloc::MemoryNode::prev |
Previous node in memory sequence (doubly-linked list)
| MemoryNode* hh::halloc::MemoryNode::right |
Right child in Red-Black tree.
| std::size_t hh::halloc::MemoryNode::value |
Encoded value containing size, status, and color.
Layout: