Home
last modified time | relevance | path

Searched refs:value_type (Results 1 – 25 of 71) sorted by relevance

123

/oneTBB/include/oneapi/tbb/
H A Dtbb_allocator.h43 using value_type = T;
60 return static_cast<T*>(r1::allocate_memory(n * sizeof(value_type))); in allocate()
74 using pointer = value_type*;
75 using const_pointer = const value_type*;
76 using reference = value_type&;
77 using const_reference = const value_type&;
85 size_type max = ~(std::size_t(0)) / sizeof(value_type); in max_size()
91 void destroy( pointer p ) { p->~value_type(); } in destroy()
103 using value_type = void; variable
H A Dblocked_rangeNd.h61 using value_type = Value; in __TBB_requires()
66 using dim_type_helper = tbb::blocked_range<value_type>; in __TBB_requires()
78 const tbb::blocked_range<value_type>& dim(unsigned int dimension) const { in __TBB_requires()
89 … return std::any_of(my_dims.begin(), my_dims.end(), [](const tbb::blocked_range<value_type>& d) { in __TBB_requires()
96 … return std::any_of(my_dims.begin(), my_dims.end(), [](const tbb::blocked_range<value_type>& d) { in __TBB_requires()
113 std::array<tbb::blocked_range<value_type>, N> my_dims; in __TBB_requires()
120 …in(), my_dims.end(), [](const tbb::blocked_range<value_type>& first, const tbb::blocked_range<valu… in __TBB_requires()
126 my_it->my_begin = tbb::blocked_range<value_type>::do_split(*r_it, proportion); in __TBB_requires()
H A Dcache_aligned_allocator.h43 using value_type = T;
54 return static_cast<T*>(r1::cache_aligned_allocate(n * sizeof(value_type))); in allocate()
64 return (~std::size_t(0) - r1::cache_line_size()) / sizeof(value_type); in max_size()
68 using pointer = value_type*;
69 using const_pointer = const value_type*;
70 using reference = value_type&;
71 using const_reference = const value_type&;
80 void destroy(pointer p) { p->~value_type(); } in destroy()
92 using value_type = void; variable
H A Dmemory_pool.h89 typedef T value_type; typedef
90 typedef value_type* pointer;
91 typedef const value_type* const_pointer;
92 typedef value_type& reference;
93 typedef const value_type& const_reference;
121 size_type max = static_cast<size_type>(-1) / sizeof (value_type); in max_size()
131 void destroy( pointer p ) { p->~value_type(); } in destroy()
147 typedef void value_type; typedef
205 sizeof(typename Alloc::value_type)); in memory_pool()
213 const size_t unit_size = sizeof(typename Alloc::value_type); in allocate_request()
[all …]
H A Dscalable_allocator.h214 using value_type = T;
225 T* p = static_cast<T*>(scalable_malloc(n * sizeof(value_type))); in allocate()
238 using pointer = value_type*;
239 using const_pointer = const value_type*;
240 using reference = value_type&;
241 using const_reference = const value_type&;
249 size_type absolutemax = static_cast<size_type>(-1) / sizeof (value_type); in max_size()
255 void destroy(pointer p) { p->~value_type(); } in destroy()
268 using value_type = void; variable
H A Dconcurrent_map.h39 using value_type = std::pair<const key_type, mapped_type>; member
40 using reference = value_type&;
41 using const_reference = const value_type&;
48 bool operator()(const value_type& lhs, const value_type& rhs) const { in operator()
76 using value_type = typename base_type::value_type; variable
106 concurrent_map& operator=( std::initializer_list<value_type> il ) {
146 typename std::enable_if<std::is_constructible<value_type, P&&>::value,
153 typename std::enable_if<std::is_constructible<value_type, P&&>::value,
226 using value_type = typename base_type::value_type; variable
263 typename std::enable_if<std::is_constructible<value_type, P&&>::value,
[all …]
H A Dconcurrent_priority_queue.h43 using value_type = T;
159 void assign( std::initializer_list<value_type> init ) { in assign()
173 void push( const value_type& value ) { in push()
181 void push( value_type&& value ) { in push()
192 push(value_type(std::forward<Args>(args)...)); in emplace()
199 bool try_pop( value_type& value ) { in try_pop()
234 value_type* elem;
237 cpq_operation( const value_type& value, operation_type t ) in cpq_operation()
238 : type(t), elem(const_cast<value_type*>(&value)) {} in cpq_operation()
349 value_type to_place = std::move(data[mark]); in heapify()
[all …]
H A Dconcurrent_vector.h45 using value_type = Value;
48 using pointer = value_type*;
49 using reference = value_type&;
111 value_type *item = my_item;
176 mutable value_type* my_item;
239 using value_type = T;
263 using value_type = T;
267 using reference = value_type&;
268 using const_reference = const value_type&;
407 iterator push_back( const value_type& item ) { in push_back()
[all …]
/oneTBB/include/oneapi/tbb/detail/
H A D_flow_graph_tagged_buffer_impl.h51 typedef ValueType value_type; typedef
53 typedef value_type *pointer_type;
110 value_type *ov = reinterpret_cast<value_type *>(&(op->first)); in grow_array()
130 const value_type &v) { in internal_insert_with_key()
136 (void) new(&(my_elem->first)) value_type(v); in internal_insert_with_key()
160 ((value_type*)ptr)->~value_type(); in internal_free_buffer()
200 bool insert_with_key(const value_type &v) { in insert_with_key()
204 p->~value_type(); in insert_with_key()
229 value_type *p; in find_with_key()
242 value_type *vp = reinterpret_cast<value_type *>(&(p->first)); in delete_with_key()
[all …]
H A D_concurrent_skip_list.h58 using value_type = Value;
63 using reference = value_type&;
178 value_type my_value;
190 using value_type = ValueType; variable
193 using pointer = value_type*;
194 using reference = value_type&;
254 using value_type = typename container_traits::value_type; variable
255 static_assert(std::is_same<value_type, typename allocator_type::value_type>::value,
272 using reference = value_type&;
670 using value_type = typename iterator::value_type; variable
[all …]
/oneTBB/examples/graph/binpack/
H A Dbinpack.cpp43 multifunction_node<value_type, std::tuple<value_type, bin>, oneapi::tbb::flow::rejecting>
46 typedef oneapi::tbb::flow::queue_node<value_type> value_pool;
54 typedef oneapi::tbb::flow::input_node<value_type> value_source;
70 value_type item_sum; // sum of all randomly generated input values
99 void operator()(const value_type& item, ports_type& p) { in operator ()()
207 value_type operator()(oneapi::tbb::flow_control& fc) { in operator ()()
209 value_type result = input_array[counter]; in operator ()()
215 return value_type{}; in operator ()()
221 value_type running_count;
223 value_type my_min, my_max;
[all …]
/oneTBB/test/common/
H A Dparallel_for_each_common.h168 typedef typename std::iterator_traits<Iterator>::value_type value_type; in TestBodyMove() typedef
169value_type a_depths[depths_nubmer] = {0, 1, 2, 3, 4, 0, 1, 0, 1, 2, 0, 1, 2, 3, 0, 1, 2, 0, 1, 2}; in TestBodyMove()
181 typedef typename std::iterator_traits<Iterator>::value_type value_type; in TestBody() typedef
182value_type a_depths[depths_nubmer] = {0, 1, 2, 3, 4, 0, 1, 0, 1, 2, 0, 1, 2, 3, 0, 1, 2, 0, 1, 2}; in TestBody()
215 typedef typename std::iterator_traits<Iterator>::value_type value_type; in TestGenericLambda() typedef
227 typedef typename std::iterator_traits<Iterator>::value_type value_type; in TestGenericLambdaMove() typedef
289 using value_type = std::size_t; member
290 using container_type = std::vector<value_type>;
291 using iterator_type = IteratorModifier<value_type>;
380 typedef typename std::iterator_traits<Iterator>::value_type value_type; in TestMoveIterator() typedef
[all …]
H A Dcustom_allocators.h49 using value_type = T; member
69 value_type* address( value_type& x ) const { return &x; } in address()
70 const value_type* address( const value_type& x ) const { return &x; } in address()
72 value_type* allocate( std::size_t n ) { in allocate()
109 using value_type = typename base_type::value_type;
161 value_type* allocate( std::size_t n ) { in allocate()
246 using value_type = typename base_type::value_type;
247 using pointer = value_type*;
385 using value_type = typename alloc_base_type::value_type;
596 using value_type = typename base_allocator::value_type;
[all …]
H A Dallocator_test_common.h120 typename A::value_type v = x; in TestBrokenAllocator()
156 …typedef typename A::template rebind<std::pair<typename A::value_type, typename A::value_type> >::o… in TestBrokenAllocator()
223 using value_type = typename std::allocator_traits<A>::value_type; member
235 for(std::size_t j = 0; j < size * sizeof(value_type); ++j) { in check_allocate()
247 for(std::size_t j=0; j < size * sizeof(value_type); ++j) in check_deallocate()
310 TestAllocatorConcept<typename AllocatorFooChar::value_type>(a1);
312 TestAllocatorConcept<typename AllocatorFooDouble::value_type>(a2);
317 TestBrokenAllocator<typename AllocatorFooChar::value_type>(a1);
319 TestBrokenAllocator<typename AllocatorFooDouble::value_type>(a2);
324 TestAllocatorExceptions<typename AllocatorFooChar::value_type>(a1);
[all …]
H A Dallocator_stl_test_common.h43 using value_type = typename Set::value_type; in TestSet() local
45 s.insert(value_type(3 * i)); in TestSet()
54 using value_type = typename Map::value_type; in TestMap() local
56 m.insert(value_type(i,i*i)); in TestMap()
H A Dconcurrent_priority_queue_common.h61 void examine( QueueType& q1, QueueType& q2, const std::vector<typename QueueType::value_type>& vec_… in examine()
62 using value_type = typename QueueType::value_type; in examine() local
65 value_type elem; in examine()
70 typename std::vector<value_type>::const_reverse_iterator it1; in examine()
92 void examine( const QueueType& q, const std::vector<typename QueueType::value_type>& vec_sorted ) { in examine()
204 using value_type = std::unique_ptr<T>; in type_tester_unique_ptr() local
205 using queue_type = tbb::concurrent_priority_queue<value_type, LessForSmartPointers>; in type_tester_unique_ptr()
207 std::vector<value_type> vec_sorted; in type_tester_unique_ptr()
209 vec_sorted.push_back(value_type(new T(item))); in type_tester_unique_ptr()
215 q1.push(value_type(new T(item))); in type_tester_unique_ptr()
[all …]
H A Diterator.h35 typedef T value_type; typedef
38 typedef typename allocator_traits_type::value_type& reference;
116 typedef T value_type; typedef
119 typedef typename allocator_traits_type::value_type& reference;
143 typedef T value_type; typedef
145 typedef typename allocator_traits_type::value_type& reference;
201 typedef const T value_type; typedef
203 typedef const typename allocator_traits_type::value_type& reference;
H A Dinitializer_list_support.h68 void test_initializer_list_support( std::initializer_list<typename ContainerType::value_type> init … in test_initializer_list_support()
69 using element_type = typename ContainerType::value_type; in test_initializer_list_support()
80 void test_initializer_list_support( std::initializer_list<typename ContainerType::value_type> init … in test_initializer_list_support()
85 …zer_list_support_without_assign( std::initializer_list<typename ContainerType::value_type> init ) { in test_initializer_list_support_without_assign()
/oneTBB/test/tbb/
H A Dtest_concurrent_queue_whitebox.cpp50 using value_type = typename Q::value_type; in operator ()() typedef
51 value_type elem = value_type(thread_id); in operator ()()
81 …utils::NativeParallelFor(static_cast<typename Q::value_type>(utils::MaxThread), FloggerBody<Q>(q, … in test_flogger_help()
H A Dtest_concurrent_hash_map.cpp56 a_ch_map.insert(ch_map::value_type(i,i)); in TestRangeBasedFor()
74 using value_type = typename Table::value_type; typedef in test_insert_by_key
76 const value_type &my_value;
97 using value_type = typename Table::value_type; typedef in test_range
99 const std::list<value_type> &my_lst;
199 using value_type = typename Table::value_type; in Examine() typedef
222 CHECK(CompareTables<value_type>::IsEqual( c, const_c )); in Examine()
240 CHECK(CompareTables<value_type>::IsEqual( c, const_c )); in Examine()
247 value_type *ptr = a.allocate(1); in Examine()
461 basic_chmap_type::value_type val = *res; in TestInternalFastFind()
[all …]
/oneTBB/test/conformance/
H A Dconformance_concurrent_set.cpp54 static_assert(std::is_same<typename container_type::value_type, int>::value, in test_member_types()
67 using value_type = typename container_type::value_type; in test_member_types() typedef
68 static_assert(std::is_same<typename container_type::reference, value_type&>::value, in test_member_types()
70 static_assert(std::is_same<typename container_type::const_reference, const value_type&>::value, in test_member_types()
80 static_assert(!std::is_const<typename container_type::iterator::value_type>::value, in test_member_types()
84 static_assert(std::is_const<typename container_type::const_iterator::value_type>::value, in test_member_types()
H A Dconformance_concurrent_unordered_set.cpp59 static_assert(std::is_same<typename container_type::value_type, int>::value, in test_member_types()
80 using value_type = typename container_type::value_type; in test_member_types() typedef
81 static_assert(std::is_same<typename container_type::reference, value_type&>::value, in test_member_types()
83 static_assert(std::is_same<typename container_type::const_reference, const value_type&>::value, in test_member_types()
93 static_assert(!std::is_const<typename container_type::iterator::value_type>::value, in test_member_types()
97 static_assert(std::is_const<typename container_type::const_iterator::value_type>::value, in test_member_types()
101 static_assert(!std::is_const<typename container_type::local_iterator::value_type>::value, in test_member_types()
105 static_assert(std::is_const<typename container_type::const_local_iterator::value_type>::value, in test_member_types()
H A Dconformance_concurrent_map.cpp74 … static_assert(std::is_same<typename container_type::value_type, std::pair<const int, int>>::value, in test_member_types()
87 using value_type = typename container_type::value_type; in test_member_types() typedef
88 static_assert(std::is_same<typename container_type::reference, value_type&>::value, in test_member_types()
90 static_assert(std::is_same<typename container_type::const_reference, const value_type&>::value, in test_member_types()
100 static_assert(!std::is_const<typename container_type::iterator::value_type>::value, in test_member_types()
104 static_assert(std::is_const<typename container_type::const_iterator::value_type>::value, in test_member_types()
/oneTBB/doc/main/reference/scalable_memory_pools/
H A Dmemory_pool_allocator_cls.rst43 using value_type = T;
44 using pointer = value_type*;
45 using const_pointer = const value_type*;
46 using reference = value_type&;
47 using const_reference = const value_type&;
72 using value_type = void;
/oneTBB/doc/main/reference/
H A Dconcurrent_lru_cache_cls.rst57 using value_type = Value;
58 using pointer = value_type*;
59 using const_pointer = const value_type*;
60 using reference = value_type&;
61 using const_reference = const value_type&;
75 value_type& value();
159 .. cpp:function:: value_type& value();
161 **Returns**: a reference to a ``value_type`` object stored in ``concurrent_lru_cache``.

123