Array< type > Class Template Reference
#include <array.h>
template<typename type>
class mudbox::Array< type >
An internal helper class, representing an array. Use the Store class instead.
Definition at line 65 of file array.h.
Array |
( |
const char * |
sName | ) |
|
|
inline |
Definition at line 69 of file array.h.
GLuint GLuint GLsizei GLenum type
const Array< type > * m_pThis
Array |
( |
const char * |
sName, |
|
|
unsigned int |
iSize |
|
) |
| |
|
inline |
Definition at line 76 of file array.h.
GLuint GLuint GLsizei GLenum type
static void SetAllocatorID(const char *pAllocatorID)
static bool RegisterMemoryBlock(long long iSize)
static void LogAll(float fSizeFilter=0.01f, bool bSortByAddress=false)
const Array< type > * m_pThis
Array |
( |
const char * |
sName, |
|
|
const type * |
pArray, |
|
|
int |
iSize |
|
) |
| |
|
inline |
Definition at line 99 of file array.h.
GLuint GLuint GLsizei GLenum type
static void SetAllocatorID(const char *pAllocatorID)
static bool RegisterMemoryBlock(long long iSize)
static void LogAll(float fSizeFilter=0.01f, bool bSortByAddress=false)
const Array< type > * m_pThis
static void ThrowBadAlloc(void)
Throws a static bad alloc exception. (No memory allocation is required to report allocation problems...
Array |
( |
const char * |
sName, |
|
|
bool |
bNoObjects |
|
) |
| |
|
inline |
Definition at line 128 of file array.h.
GLuint GLuint GLsizei GLenum type
const Array< type > * m_pThis
Definition at line 136 of file array.h.
GLuint GLuint GLsizei GLenum type
const Array< type > * m_pThis
GLubyte GLubyte GLubyte a
Definition at line 282 of file array.h.
#define MB_ASSERT(condition)
void Clear(bool bDestruct=false)
const Array< type > * m_pThis
void Clear |
( |
bool |
bDestruct = false | ) |
|
|
inline |
Definition at line 146 of file array.h.
148 bDestruct = bDestruct;
GLuint GLuint GLsizei GLenum type
static bool UnregisterMemoryBlock(long long iSize)
Definition at line 162 of file array.h.
162 { Array<type>
a;
Copy( a );
return a; };
bool Copy(Array< type > &a) const
GLubyte GLubyte GLubyte a
Definition at line 164 of file array.h.
GLuint GLuint GLsizei GLenum type
GLubyte GLubyte GLubyte a
void Set |
( |
unsigned int |
iStart, |
|
|
unsigned int |
iSize, |
|
|
unsigned char |
cPattern |
|
) |
| |
|
inline |
Definition at line 172 of file array.h.
GLuint GLuint GLsizei GLenum type
#define MB_ASSERT(condition)
const Array< type > * m_pThis
bool Extend |
( |
unsigned int |
iElementIndex | ) |
|
|
inline |
Definition at line 175 of file array.h.
177 if ( iElementIndex == 0xffffffff )
179 unsigned int iNewSize =
m_iSize;
180 while ( iElementIndex >= iNewSize )
181 iNewSize = iNewSize*2+1;
183 return Alloc( iNewSize );
bool Alloc(unsigned int iNewSize)
bool Alloc |
( |
unsigned int |
iNewSize | ) |
|
|
inline |
Definition at line 187 of file array.h.
198 pNew =
new type[iNewSize];
224 for (
unsigned int i = 0; i <
Min( iNewSize,
m_iSize ); i++ )
GLuint GLuint GLsizei GLenum type
#define MB_ASSERT(condition)
static bool UnregisterMemoryBlock(long long iSize)
static void SetAllocatorID(const char *pAllocatorID)
static bool RegisterMemoryBlock(long long iSize)
static void LogAll(float fSizeFilter=0.01f, bool bSortByAddress=false)
const Array< type > * m_pThis
static void CopyMemoryBlock(void *pDestination, const void *pSource, long long iSize)
Definition at line 233 of file array.h.
238 return m_pArray[iIndex];
#define MB_ASSERT(condition)
#define MB_ONBUG(condition)
const Array< type > * m_pThis
type& operator[] |
( |
unsigned int |
iIndex | ) |
|
|
inline |
Definition at line 241 of file array.h.
246 return m_pArray[iIndex];
#define MB_ASSERT(condition)
#define MB_ONBUG(condition)
const Array< type > * m_pThis
const type& operator[] |
( |
unsigned int |
iIndex | ) |
const |
|
inline |
Definition at line 249 of file array.h.
254 return m_pArray[iIndex];
#define MB_ASSERT(condition)
#define MB_ONBUG(condition)
const Array< type > * m_pThis
type* indexedAddr |
( |
unsigned int |
i | ) |
|
|
inline |
Definition at line 259 of file array.h.
type & operator[](int iIndex)
const type* indexedAddr |
( |
unsigned int |
i | ) |
const |
|
inline |
Definition at line 260 of file array.h.
type & operator[](int iIndex)
Definition at line 262 of file array.h.
type & operator[](int iIndex)
const type* baseAddr |
( |
| ) |
const |
|
inline |
Definition at line 263 of file array.h.
type & operator[](int iIndex)
Definition at line 265 of file array.h.
#define MB_ASSERT(condition)
void Clear(bool bDestruct=false)
const Array< type > * m_pThis
GLubyte GLubyte GLubyte a
The documentation for this class was generated from the following file: