37 inline dgStackBase::dgStackBase(dgInt32 size) {
38 m_ptr = dgMallocStack(
size_t (size));
41 inline dgStackBase::~dgStackBase() {
53 dgInt32 GetSizeInBytes()
const;
54 dgInt32 GetElementsCount()
const;
56 T &operator[](dgInt32 entry);
57 const T &operator[](dgInt32 entry)
const;
80 return dgInt32(m_size *
sizeof(T));
88 NEWTON_ASSERT(entry >= 0);
89 NEWTON_ASSERT((entry < m_size) || ((m_size == 0) && (entry == 0)));
100 NEWTON_ASSERT(entry >= 0);
101 NEWTON_ASSERT((entry < m_size) || ((m_size == 0) && (entry == 0)));