Allocated block of memory that can be tracked in a b2IntrusiveList. More...
#include <b2TrackedBlock.h>
Inherits b2TypedIntrusiveListNode< b2TrackedBlock >.
Public Member Functions | |
void * | GetMemory () const |
Get the allocated memory associated with this block. | |
Public Member Functions inherited from b2TypedIntrusiveListNode< b2TrackedBlock > | |
void | InsertAfter (b2TrackedBlock *const obj) |
Insert this object after the specified object. | |
void | InsertBefore (b2TrackedBlock *const obj) |
Insert this object before the specified object. | |
b2TrackedBlock * | GetNext () const |
b2TrackedBlock * | GetPrevious () const |
b2TrackedBlock * | GetTerminator () const |
b2TrackedBlock * | Remove () |
Remove this object from the list it's currently in. | |
bool | InList () const |
Determine whether this object is in a list. | |
bool | IsEmpty () const |
uint32 | GetLength () const |
Calculate the length of the list. | |
B2_INTRUSIVE_LIST_GET_NODE (m_node) | |
Static Public Member Functions | |
static void * | Allocate (uint32 size) |
static b2TrackedBlock * | GetFromMemory (void *memory) |
static void | Free (void *memory) |
Free a block of memory returned by b2TrackedBlock::Allocate() | |
static void | Free (b2TrackedBlock *block) |
Free a b2TrackedBlock. | |
Static Public Member Functions inherited from b2TypedIntrusiveListNode< b2TrackedBlock > | |
static b2TrackedBlock * | GetInstanceFromListNode (b2IntrusiveListNode *const node) |
Get a pointer to the instance of T that contains "node". | |
Allocated block of memory that can be tracked in a b2IntrusiveList.
|
static |
Allocate a b2TrackedBlock returning a pointer to memory of size bytes that can be used by the caller.
|
static |
Get a b2TrackedBlock from a pointer to memory returned by b2TrackedBlock::Allocate().