Lines Matching refs:arr
35 PoolArray<int> arr (&pool);
45 arr.pushBack(i);
49 DE_TEST_ASSERT(arr.size() == 5000);
53 DE_TEST_ASSERT(arr[i] == i);
60 DE_TEST_ASSERT(arr.popBack() == (4999 - i));
64 DE_TEST_ASSERT(arr.size() == 4000);
68 DE_TEST_ASSERT(arr[i] == i);
73 arr.resize(1000);
77 arr.pushBack(i);
81 DE_TEST_ASSERT(arr.size() == 5000);
85 DE_TEST_ASSERT(arr[i] == i);
109 PoolArray<int, 16> arr (&pool);
119 arr.pushBack(i);
123 DE_TEST_ASSERT(arr.size() == 5000);
127 DE_TEST_ASSERT(arr[i] == i);
134 DE_TEST_ASSERT(arr.popBack() == (4999 - i));
138 DE_TEST_ASSERT(arr.size() == 4000);
142 DE_TEST_ASSERT(arr[i] == i);
147 arr.resize(1000);
151 arr.pushBack(i);
155 DE_TEST_ASSERT(arr.size() == 5000);
159 DE_TEST_ASSERT(arr[i] == i);
163 arr.resize(0);
164 arr.resize(100, -123);
165 DE_TEST_ASSERT(arr.size() == 100);
167 DE_TEST_ASSERT(arr[i] == -123);
241 PoolArray<RefCount> arr (&pool);
248 arr.pushBack(counter);
253 arr.popBack();
257 arr.resize(150);
260 arr.resize(18);
263 arr.resize(19);
266 arr.clear();
273 PoolArray<int> arr (&pool);
276 arr.pushBack(ndx);
280 const PoolArray<int>& cRef = arr;
289 for (PoolArray<int>::ConstIterator iter = arr.begin(); iter != arr.end(); iter++, ndx++)
296 DE_TEST_ASSERT(arr.end()-arr.begin() == 128);
297 DE_TEST_ASSERT(*(arr.begin()+3) == 3);
298 DE_TEST_ASSERT(arr.begin()[4] == 4);
301 DE_TEST_ASSERT(arr.begin() != arr.begin()+1);
302 DE_TEST_ASSERT(arr.begin() == arr.begin());
303 DE_TEST_ASSERT(arr.begin() != arr.end());
304 DE_TEST_ASSERT(arr.begin() < arr.end());
305 DE_TEST_ASSERT(arr.begin() < arr.begin()+1);
306 DE_TEST_ASSERT(arr.begin() <= arr.begin());
307 DE_TEST_ASSERT(arr.end() > arr.begin());
308 DE_TEST_ASSERT(arr.begin() >= arr.begin());
311 DE_TEST_ASSERT(std::distance(arr.begin(), arr.end()) == 128);
313 std::vector<int> vecCopy(arr.size());
314 std::copy(arr.begin(), arr.end(), vecCopy.begin());
318 std::fill(arr.begin(), arr.end(), -1);
319 for (int ndx = 0; ndx < (int)arr.size(); ndx++)
320 DE_TEST_ASSERT(arr[ndx] == -1);
322 std::copy(vecCopy.begin(), vecCopy.end(), arr.begin());
323 for (int ndx = 0; ndx < (int)arr.size(); ndx++)
324 DE_TEST_ASSERT(arr[ndx] == ndx);
329 for (PoolArray<int>::Iterator iter = arr.begin(); iter != arr.end(); iter++, ndx++)
339 DE_TEST_ASSERT(arr[4] == 0);
340 DE_TEST_ASSERT(arr[6] == 1);