Lines Matching defs:mem
167 mem = pool;
173 if ( mem != pool ) {
174 delete [] mem;
180 mem[size++] = t;
186 T* ret = &mem[size];
191 return mem[--size];
200 T& operator[](int i) { TIXMLASSERT( i>= 0 && i < size ); return mem[i]; }
201 const T& operator[](int i) const { TIXMLASSERT( i>= 0 && i < size ); return mem[i]; }
204 const T* Mem() const { return mem; }
205 T* Mem() { return mem; }
213 memcpy( newMem, mem, sizeof(T)*size ); // warning: not using constructors, only works for PODs
214 if ( mem != pool ) delete [] mem;
215 mem = newMem;
220 T* mem;
281 virtual void Free( void* mem ) {
282 if ( !mem ) return;
284 Chunk* chunk = (Chunk*)mem;
298 char mem[SIZE];
1440 const char* CStr() const { return buffer.Mem(); }