25 #include "dCoreStdafx.h"
39 inline dStackBase::dStackBase (
size_t size)
40 :m_ptr (
dMemory::Malloc (size_t (size)))
44 inline dStackBase::~dStackBase ()
55 dInt32 GetSizeInBytes()
const;
56 dInt32 GetElementsCount()
const;
58 D_INLINE T& operator[] (dInt32 entry);
59 D_INLINE
const T& operator[] (dInt32 entry)
const;
80 return dInt32 (m_size);
86 return dInt32 (m_size *
sizeof(T));
93 dAssert ((
size_t(entry) < m_size) || ((m_size == 0) && (entry == 0)));
95 T*
const mem = (T*) m_ptr;
102 dAssert (entry >= 0);
103 dAssert ((entry < m_size) || ((m_size == 0) && (entry == 0)));
105 const T*
const mem = (T*) m_ptr;