OpenDDS
Snapshot(2023/04/07-19:43)
|
#include <MemoryPool.h>
Public Member Functions | |
FreeIndexNode () | |
void | set_ptr (FreeHeader *ptr) |
void | set_sizes (size_t size, size_t limit) |
bool | contains (size_t size) |
FreeHeader * | ptr () |
unsigned int | size () const |
Private Attributes | |
size_t | size_ |
size of buffer More... | |
size_t | limit_ |
upper_limit of buffer size (one too large) More... | |
FreeHeader * | ptr_ |
points to smallest free alloc of size_ or larger More... | |
Node of free index. Should point to smallest free block of the range from size (inclusive) to limit (non inclusive). If multiple free allocations of the smallest size in range exist, should point to the one which is the "smallest" (in free list order).
Definition at line 94 of file MemoryPool.h.
OpenDDS::DCPS::FreeIndexNode::FreeIndexNode | ( | ) |
Definition at line 147 of file MemoryPool.cpp.
|
inline |
Does this node contain a given size
Definition at line 103 of file MemoryPool.h.
References size_.
|
inline |
Get this node's free block
Definition at line 106 of file MemoryPool.h.
Referenced by OpenDDS::DCPS::FreeIndex::find(), and OpenDDS::DCPS::FreeIndex::node_index().
|
inline |
Set the free alloc this node points to
Definition at line 98 of file MemoryPool.h.
Referenced by OpenDDS::DCPS::FreeIndex::add(), and OpenDDS::DCPS::FreeIndex::remove().
void OpenDDS::DCPS::FreeIndexNode::set_sizes | ( | size_t | size, |
size_t | limit | ||
) |
Set the sizes for this node
Definition at line 155 of file MemoryPool.cpp.
References limit_, size(), and size_.
Referenced by OpenDDS::DCPS::FreeIndex::init().
|
inline |
Get this node's minimum size
Definition at line 108 of file MemoryPool.h.
References size_.
Referenced by OpenDDS::DCPS::FreeIndex::node_index(), and set_sizes().
|
private |
upper_limit of buffer size (one too large)
Definition at line 112 of file MemoryPool.h.
Referenced by set_sizes().
|
private |
points to smallest free alloc of size_ or larger
Definition at line 113 of file MemoryPool.h.
|
private |