• Home
  • Raw
  • Download

Lines Matching refs:_items

11   T *_items;  variable
17 memmove(_items + destIndex, _items + srcIndex, (size_t)(_size - srcIndex) * sizeof(T)); in MoveItems()
29 memcpy(p, _items, (size_t)_size * sizeof(T)); in ReserveOnePosition()
30 delete []_items; in ReserveOnePosition()
31 _items = p; in ReserveOnePosition()
38 CRecordVector(): _items(0), _size(0), _capacity(0) {} in CRecordVector()
40 CRecordVector(const CRecordVector &v): _items(0), _size(0), _capacity(0) in CRecordVector()
45 _items = new T[size]; in CRecordVector()
48 memcpy(_items, v._items, (size_t)size * sizeof(T)); in CRecordVector()
59 MY_ARRAY_NEW(_items, T, size) in ConstructReserve()
73 memcpy(p, _items, (size_t)_size * sizeof(T)); in Reserve()
74 delete []_items; in Reserve()
75 _items = p; in Reserve()
85 delete []_items; in ClearAndReserve()
86 _items = NULL; in ClearAndReserve()
88 MY_ARRAY_NEW(_items, T, newCapacity) in ClearAndReserve()
108 memcpy(p, _items, (size_t)_size * sizeof(T)); in ChangeSize_KeepData()
109 delete []_items; in ChangeSize_KeepData()
110 _items = p; in ChangeSize_KeepData()
124 memcpy(p, _items, (size_t)_size * sizeof(T)); in ReserveDown()
126 delete []_items; in ReserveDown()
127 _items = p; in ReserveDown()
131 ~CRecordVector() { delete []_items; } in ~CRecordVector()
135 delete []_items; in ClearAndFree()
136 _items = NULL; in ClearAndFree()
184 delete []_items;
187 _items = NULL;
188 _items = new T[size];
193 memcpy(_items, v._items, (size_t)size * sizeof(T));
202 memcpy(_items + _size, v._items, (size_t)size * sizeof(T));
210 _items[_size] = item; in Add()
216 _items[_size++] = item; in AddInReserved()
223 _items[index] = item; in Insert()
231 T temp = _items[index]; in MoveToFront()
232 memmove(_items + 1, _items, (size_t)index * sizeof(T)); in MoveToFront()
233 _items[0] = temp; in MoveToFront()
237 const T& operator[](unsigned index) const { return _items[index]; }
238 T& operator[](unsigned index) { return _items[index]; }
239 const T& Front() const { return _items[0]; } in Front()
240 T& Front() { return _items[0]; } in Front()
241 const T& Back() const { return _items[(size_t)_size - 1]; } in Back()
242 T& Back() { return _items[(size_t)_size - 1]; } in Back()