#include <MemoryPool.h>
Collaboration diagram for OpenDDS::DCPS::FreeIndexNode:
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 | |
size_t | limit_ |
upper_limit of buffer size (one too large) | |
FreeHeader * | ptr_ |
points to smallest free alloc of size_ or larger |
Definition at line 91 of file MemoryPool.h.
OpenDDS::DCPS::FreeIndexNode::FreeIndexNode | ( | ) |
bool OpenDDS::DCPS::FreeIndexNode::contains | ( | size_t | size | ) | [inline] |
FreeHeader* OpenDDS::DCPS::FreeIndexNode::ptr | ( | ) | [inline] |
Get this node's free block
Definition at line 103 of file MemoryPool.h.
References ptr_.
Referenced by OpenDDS::DCPS::FreeIndex::find(), and set_ptr().
00103 { return ptr_; }
void OpenDDS::DCPS::FreeIndexNode::set_ptr | ( | FreeHeader * | ptr | ) | [inline] |
Set the free alloc this node points to
Definition at line 95 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 | |||
) |
unsigned int OpenDDS::DCPS::FreeIndexNode::size | ( | ) | const [inline] |
Get this node's minimum size
Definition at line 105 of file MemoryPool.h.
References size_.
00105 { return static_cast<unsigned int>(size_); }
size_t OpenDDS::DCPS::FreeIndexNode::limit_ [private] |
upper_limit of buffer size (one too large)
Definition at line 109 of file MemoryPool.h.
Referenced by contains(), and set_sizes().
FreeHeader* OpenDDS::DCPS::FreeIndexNode::ptr_ [private] |
size_t OpenDDS::DCPS::FreeIndexNode::size_ [private] |
size of buffer
Definition at line 108 of file MemoryPool.h.
Referenced by contains(), set_sizes(), and size().