Lines Matching refs:size
60 std::size_t size() const { in size() function in ConcQWithCapacity
89 CHECK(queue.size() == 0); in TestEmptyQueue()
151 CHECK(queue.size() == n); in TestClear()
154 CHECK(queue.size()==0); in TestClear()
161 CHECK(queue.size() == n); in TestClear()
163 CHECK(queue.size() == 0); in TestClear()
171 CHECK(queue.size()==n); in TestClear()
180 void TestIteratorAux( Iterator1 i, Iterator2 j, int size ) { in TestIteratorAux() argument
182 for (std::size_t k = 0; k < (std::size_t)size; ++k) { in TestIteratorAux()
195 if (k < std::size_t(size - 1)) { in TestIteratorAux()
273 …typename oneapi::tbb::concurrent_queue<T, A>::size_type size() const { return this->unsafe_size();… in size() function in ConcQWithSizeWrapper
424 for (size_type size = 0; size < 1001; ++size) { in TestConstructors() local
425 for (size_type i = 0; i < size; ++i) in TestConstructors()
426 src_queue.push(T(i + (i ^ size))); in TestConstructors()
433 CHECK_FAST_MESSAGE(src_queue.size() == dst_queue.size(), "different size"); in TestConstructors()
434 CHECK_FAST_MESSAGE(src_queue.size() == copy_with_alloc.size(), "different size"); in TestConstructors()
440 for (size_type size=0; size < 1001; ++size) { in TestConstructors() local
441 for (size_type i=0; i < size; ++i) { in TestConstructors()
442 bar_array[i] = T(i+(i^size)); in TestConstructors()
446 const TIter sae(bar_array + size); in TestConstructors()
450 CHECK_FAST(size == dst_queue2.size()); in TestConstructors()
452 CHECK_FAST(sae == TIter(bar_array+size)); in TestConstructors()
458 CHECK_FAST_MESSAGE(res.second == bar_array + size, "different size?"); in TestConstructors()
464 CHECK(src_queue.size() == dst_queue3.size()); in TestConstructors()
465 CHECK(0 == dst_queue3.size()); in TestConstructors()
476 CHECK_FAST(src_queue.size() == dst_queue4.size()); in TestConstructors()
488 CHECK(src_queue.size() == dst_queue5.size()); in TestConstructors()
505 CHECK(src_queue.size() == dst_queue5.size()); in TestConstructors()
517 for (size_type size = 0; size < 1001; ++size) { in TestConstructors() local
522 src_queue_ex.push(T_EX(k + (k ^ size))); in TestConstructors()
528 src_queue_ex.push(T_EX(k + (k ^ size))); in TestConstructors()
535 CHECK_FAST(src_queue_ex.size() == n_elements); in TestConstructors()
540 CHECK_FAST(src_queue_ex.size() == dst_queue_ex.size()); in TestConstructors()
553 for (size_type size = 0; size < 1001; ++size) { in TestConstructors() local
554 for (size_type i = 0; i < size; ++i) { in TestConstructors()
555 src_queue.push(T(i + (i ^ size))); in TestConstructors()
557 std::vector<const T*> locations(size); in TestConstructors()
559 for (size_type i = 0; i < size; ++i, ++qit) { in TestConstructors()
563 size_type size_of_queue = src_queue.size(); in TestConstructors()
566 … CHECK_FAST_MESSAGE((src_queue.empty() && src_queue.size() == 0), "not working move constructor?"); in TestConstructors()
567 …CHECK_FAST_MESSAGE((size == size_of_queue && size_of_queue == dst_queue.size()), "not working move… in TestConstructors()
574 for (size_type i = 0; i < size; ++i) { in TestConstructors()
575 T test(i + (i ^ size)); in TestConstructors()
599 while (int(queue.size())> -number_of_pops) { in operator ()()
604 CHECK(queue.size() == std::size_t(i - number_of_pops)); in operator ()()
605 CHECK((queue.empty() == (queue.size() <= 0))); in operator ()()
631 std::size_t size() const { return this->unsafe_size(); } in size() function in ConcQPushPopWrapper
704 CHECK_FAST(queue.size() == i + 1); in TestPushPop()
721 CHECK_FAST(int(queue.size()) == i); in TestPushPop()
725 REQUIRE_MESSAGE(queue.size() == 0, "The queue should have zero size"); in TestPushPop()
879 … REQUIRE_MESSAGE(ptrdiff_t(queue_test.size())==n_pushed, "incorrect queue size"); in TestExceptionBody()
893 … REQUIRE_MESSAGE(ptrdiff_t(queue_test.size())==n_pushed, "queue size must be equal to n pushed"); in TestExceptionBody()
899 REQUIRE_MESSAGE(queue_test.size()==0, "queue must be empty"); in TestExceptionBody()
905 std::size_t size = queue_test.size(); in TestExceptionBody() local
908 REQUIRE_MESSAGE(size>0, "incorrect queue size"); in TestExceptionBody()
944 while ( q->size() < std::ptrdiff_t(max) ) { in operator ()()
970 while (q->size()> prefill - max) { in operator ()()
1239 CHECK(q.size() == typename Queue::size_type(vec.size())); in AssertEquality()
1246 CHECK(!q.size()); in AssertEmptiness()
1284 q2.set_capacity(size_type(vec.size())); in bounded_queue_specific_test()
1285 CHECK(q2.capacity() == size_type(vec.size())); in bounded_queue_specific_test()
1286 CHECK(q2.size() == size_type(vec.size())); in bounded_queue_specific_test()
1294 const std::size_t size = 10; in TestQueueOperabilityAfterDataMove() local
1295 std::vector<T> v(size); in TestQueueOperabilityAfterDataMove()
1296 for( std::size_t i = 0; i < size; ++i ) v[i] = T( i * i + i ); in TestQueueOperabilityAfterDataMove()
1307 const std::size_t size = 10; in TestMoveConstructors() local
1308 for( std::size_t i = 0; i < size; ++i ) in TestMoveConstructors()
1309 src_queue.push( T(i + (i ^ size)) ); in TestMoveConstructors()
1310 CHECK(T::construction_num == 2 * size); in TestMoveConstructors()
1311 CHECK(T::destruction_num == size); in TestMoveConstructors()
1313 const T* locations[size]; in TestMoveConstructors()
1315 for( std::size_t i = 0; i < size; ++i, ++qit ) in TestMoveConstructors()
1321 CHECK(T::construction_num == size); in TestMoveConstructors()
1322 CHECK(T::destruction_num == size); in TestMoveConstructors()
1327 for( std::size_t i = 0; i < size; ++i, ++qit ) { in TestMoveConstructors()
1341 for( std::size_t i = 0; i < size; ++i, ++qit ) { in TestMoveConstructors()
1345 for( std::size_t i = 0; i < size; ++i) { in TestMoveConstructors()
1346 T test(i + (i ^ size)); in TestMoveConstructors()
1353 CHECK(dst_queue2.size() == 0); in TestMoveConstructors()
1396 CHECK(cq.size() == 1); in TestEmplaceInQueue()
1686 int size = 5; in test_queue_helper() local
1687 typename CQ::value_type vec_1(size, 0), vec_2(size, 0), vec_3(size, 0), vec_4(size, 0); in test_queue_helper()
1842 REQUIRE_MESSAGE(cpy_bnd.size() == dst_bnd.size(), "Queues are not equal"); in test_move_assignment_test_equal()
1877 REQUIRE_MESSAGE(dst_bnd.size() == cpy_bnd.size(), "Queues are not equal"); in test_move_assignment_test_unequal()