Block Class Reference


Detailed Description

An internal helper class, representing a block of memory. Use the Store class instead.

Definition at line 20 of file array.h.

#include <array.h>

Inheritance diagram for Block:
Inheritance graph
[legend]

List of all members.

Public Member Functions

const Block Next (void) const
unsigned int  ItemSize (void) const
const char *  Name (void) const
long long  Size (void) const
long long  Address (void) const
void  Check (void) const

Static Public Member Functions

static const Block Head (void)
static void  LogAll (float fSizeFilter=0.01f, bool bSortByAddress=false)
static void  CheckAll (void)
static bool  RegisterMemoryBlock (long long iSize)
static bool  UnregisterMemoryBlock (long long iSize)
static void  SetAllocatorID (const char *pAllocatorID)
static void  CopyMemoryBlock (void *pDestination, const void *pSource, long long iSize)

Public Attributes

const char *  m_sName

Protected Member Functions

  Block (const char *sName, unsigned int iItemSize)
  ~Block (void)

Protected Attributes

Block m_pNext
Block m_pPrev
unsigned int  m_iItemSize

Static Protected Attributes

static Block s_pHead

Constructor & Destructor Documentation

Block ( const char *  sName,
unsigned int  iItemSize 
) [inline, protected]

Definition at line 23 of file array.h.

    {                                                                     
        m_sName = sName;
        m_pNext = s_pHead;
        m_pPrev = 0;
        if ( m_pNext ) m_pNext->m_pPrev = this;
        s_pHead = this;
        m_iItemSize = iItemSize;
    };
~Block ( void  ) [protected]

Member Function Documentation

static const Block* Head ( void  ) [inline, static]

Definition at line 39 of file array.h.

{ return s_pHead; };
const Block* Next ( void  ) const [inline]

Definition at line 40 of file array.h.

{ return m_pNext; };
unsigned int ItemSize ( void  ) const [inline]

Definition at line 41 of file array.h.

{ return m_iItemSize; };
const char* Name ( void  ) const
long long Size ( void  ) const
long long Address ( void  ) const
static void LogAll ( float  fSizeFilter = 0.01f,
bool  bSortByAddress = false 
) [static]
void Check ( void  ) const
static void CheckAll ( void  ) [static]
static bool RegisterMemoryBlock ( long long  iSize ) [static]
static bool UnregisterMemoryBlock ( long long  iSize ) [static]
static void SetAllocatorID ( const char *  pAllocatorID ) [static]
static void CopyMemoryBlock ( void *  pDestination,
const void *  pSource,
long long  iSize 
) [static]

Member Data Documentation

Block* m_pNext [protected]

Definition at line 34 of file array.h.

Block * m_pPrev [protected]

Definition at line 34 of file array.h.

unsigned int m_iItemSize [protected]

Definition at line 35 of file array.h.

Block* s_pHead [static, protected]

Definition at line 36 of file array.h.

const char* m_sName

Definition at line 54 of file array.h.


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

Block Block Block Block Block Block Block Block Block Block
Block Block Block Block Block Block Block Block Block Block