LiquidFun
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Public Member Functions | Static Public Member Functions | List of all members
b2TrackedBlock Class Reference

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.
 
b2TrackedBlockGetNext () const
 
b2TrackedBlockGetPrevious () const
 
b2TrackedBlockGetTerminator () const
 
b2TrackedBlockRemove ()
 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 b2TrackedBlockGetFromMemory (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 b2TrackedBlockGetInstanceFromListNode (b2IntrusiveListNode *const node)
 Get a pointer to the instance of T that contains "node".
 

Detailed Description

Allocated block of memory that can be tracked in a b2IntrusiveList.

Member Function Documentation

void * b2TrackedBlock::Allocate ( uint32  size)
static

Allocate a b2TrackedBlock returning a pointer to memory of size bytes that can be used by the caller.

b2TrackedBlock * b2TrackedBlock::GetFromMemory ( void *  memory)
static

Get a b2TrackedBlock from a pointer to memory returned by b2TrackedBlock::Allocate().


The documentation for this class was generated from the following files: