• Home
  • Raw
  • Download

Lines Matching refs:_items

13   T *_items;  variable
19 if (_items) in Free()
21 delete []_items; in Free()
22 _items = 0; in Free()
27 CBuffer(): _items(0), _size(0) {}; in CBuffer()
28 CBuffer(size_t size): _items(0), _size(0) { _items = new T[size]; _size = size; } in CBuffer()
29 CBuffer(const CBuffer &buffer): _items(0), _size(0) in CBuffer()
34 _items = new T[size]; in CBuffer()
35 memcpy(_items, buffer._items, size * sizeof(T)); in CBuffer()
40 ~CBuffer() { delete []_items; } in ~CBuffer()
42 operator T *() { return _items; }
43 operator const T *() const { return _items; }
53 _items = new T[size]; in Alloc()
64 _items = new T[size]; in AllocAtLeast()
73 memcpy(_items, data, size * sizeof(T)); in CopyFrom()
87 memcpy(newBuffer, _items, MyMin(keepSize, newSize) * sizeof(T)); in ChangeSize_KeepData()
89 delete []_items; in ChangeSize_KeepData()
90 _items = newBuffer; in ChangeSize_KeepData()
133 T *_items;
141 delete []_items; in Free()
142 _items = 0; in Free()
144 CObjArray(size_t size): _items(0) in CObjArray()
148 MY_ARRAY_NEW(_items, T, size) in CObjArray()
152 CObjArray(): _items(0) {}; in CObjArray()
153 ~CObjArray() { delete []_items; } in ~CObjArray()
155 operator T *() { return _items; }
156 operator const T *() const { return _items; }
160 delete []_items; in Alloc()
161 _items = 0; in Alloc()
162 MY_ARRAY_NEW(_items, T, newSize) in Alloc()
175 T *_items; variable
185 delete []_items; in Free()
186 _items = 0; in Free()
189 CObjArray2(): _items(0), _size(0) {}; in CObjArray2()
216 ~CObjArray2() { delete []_items; } in ~CObjArray2()
218 operator T *() { return _items; }
219 operator const T *() const { return _items; }
235 delete []_items; in SetSize()
236 _items = newBuffer; in SetSize()