Home
last modified time | relevance | path

Searched refs:key_type (Results 1 – 25 of 28) sorted by relevance

12

/oneTBB/test/conformance/
H A Dconformance_concurrent_hash_map.cpp1059 using key_type = int; in TestHashCompareConstructors() typedef
1060 …ap_type = oneapi::tbb::concurrent_hash_map<key_type, key_type, non_default_constructible_hash_comp… in TestHashCompareConstructors()
1062 non_default_constructible_hash_compare<key_type> compare(0); in TestHashCompareConstructors()
1293 key_type key(key_type::construct_flag{}, 1); in test_heterogeneous_find()
1330 key_type::reset(); in test_heterogeneous_find()
1340 key_type key(key_type::construct_flag{}, 1); in test_heterogeneous_count()
1357 key_type::reset(); in test_heterogeneous_count()
1371 key_type key(key_type::construct_flag{}, 1); in test_heterogeneous_equal_range()
1408 key_type::reset(); in test_heterogeneous_equal_range()
1451 key_type::reset(); in test_heterogeneous_insert()
[all …]
H A Dconformance_concurrent_set.cpp52 static_assert(std::is_same<typename container_type::key_type, int>::value, in test_member_types()
H A Dconformance_concurrent_map.cpp70 static_assert(std::is_same<typename container_type::key_type, int>::value, in test_member_types()
H A Dconformance_concurrent_unordered_set.cpp57 static_assert(std::is_same<typename container_type::key_type, int>::value, in test_member_types()
H A Dconformance_concurrent_unordered_map.cpp72 static_assert(std::is_same<typename container_type::key_type, int>::value, in test_member_types()
/oneTBB/include/oneapi/tbb/
H A Dconcurrent_set.h34 using key_type = Key; member
35 using value_type = key_type;
44 static const key_type& get_key(const_reference val) { in get_key()
58 using key_type = Key;
95 void merge(concurrent_set<key_type, OtherCompare, Allocator>& source) { in merge() argument
100 void merge(concurrent_set<key_type, OtherCompare, Allocator>&& source) { in merge() argument
105 void merge(concurrent_multiset<key_type, OtherCompare, Allocator>& source) { in merge() argument
110 void merge(concurrent_multiset<key_type, OtherCompare, Allocator>&& source) { in merge() argument
159 using key_type = Key;
196 void merge(concurrent_set<key_type, OtherCompare, Allocator>& source) { in merge() argument
[all …]
H A Dconcurrent_map.h36 using key_type = Key; member
39 using value_type = std::pair<const key_type, mapped_type>;
62 static const key_type& get_key(const_reference val) { in get_key()
74 using key_type = Key;
112 mapped_type& at(const key_type& key) { in at()
121 const mapped_type& at(const key_type& key) const { in at()
125 mapped_type& operator[](const key_type& key) {
134 mapped_type& operator[](key_type&& key) {
160 void merge(concurrent_map<key_type, mapped_type, OtherCompare, Allocator>& source) { in merge() argument
165 void merge(concurrent_map<key_type, mapped_type, OtherCompare, Allocator>&& source) { in merge() argument
[all …]
H A Dconcurrent_unordered_set.h30 using key_type = Key; member
31 using value_type = key_type;
33 using hash_compare_type = hash_compare<key_type, Hash, KeyEqual>;
36 static constexpr const key_type& get_key( const value_type& value ) { in get_key()
52 using key_type = typename base_type::key_type;
88 …void merge( concurrent_unordered_set<key_type, OtherHash, OtherKeyEqual, allocator_type>& source )… in merge() argument
93 …void merge( concurrent_unordered_set<key_type, OtherHash, OtherKeyEqual, allocator_type>&& source … in merge() argument
98 …void merge( concurrent_unordered_multiset<key_type, OtherHash, OtherKeyEqual, allocator_type>& sou… in merge() argument
191 using key_type = typename base_type::key_type;
227 …void merge( concurrent_unordered_set<key_type, OtherHash, OtherKeyEqual, allocator_type>& source )… in merge() argument
[all …]
H A Dconcurrent_unordered_map.h32 using key_type = Key; member
37 static constexpr const key_type& get_key( const value_type& value ) { in get_key()
53 using key_type = typename base_type::key_type;
90 mapped_type& operator[]( const key_type& key ) {
99 mapped_type& operator[]( key_type&& key ) {
108 mapped_type& at( const key_type& key ) { in at()
117 const mapped_type& at( const key_type& key ) const { in at()
141 …void merge( concurrent_unordered_map<key_type, mapped_type, OtherHash, OtherKeyEqual, allocator_ty… in merge() argument
146 …void merge( concurrent_unordered_map<key_type, mapped_type, OtherHash, OtherKeyEqual, allocator_ty… in merge() argument
252 using key_type = typename base_type::key_type;
[all …]
H A Denumerable_thread_specific.h71 using key_type = std::thread::id; member
72 static key_type current_key() { in current_key()
81 using key_type = std::size_t;
82 static key_type current_key() {
95 using key_type = suspend_point;
96 static key_type current_key() {
105 using key_type = typename ets_key_selector<ETS_key_type>::key_type;
122 std::atomic<key_type> key;
126 bool claim( key_type k ) {
128 key_type expected = key_type();
[all …]
H A Dconcurrent_lru_cache.h55 using key_type = KeyT;
67 using storage_map_type = std::map<key_type, storage_map_value_type>;
98 handle operator[](key_type key) {
168 storage_map_reference_type retrieve_serial(key_type key, bool& is_new_value_needed) { in retrieve_serial()
321 key_type my_key;
326 retrieve_aggregator_operation(key_type key)
/oneTBB/test/tbb/
H A Dtest_concurrent_hash_map.cpp258 using key_type = typename std::remove_const<first_type>::type; in TypeTester() typedef
260 using ch_map = tbb::concurrent_hash_map<key_type, second_type>; in TypeTester()
261 debug_hash_compare<key_type> compare{}; in TypeTester()
313 using ch_map_debug_hash = tbb::concurrent_hash_map<key_type, second_type, in TypeTester()
859 using key_type = int; typedef
864 Correct<key_type>, tbb::tbb_hash_compare<key_type>>();
867 NonCopyable<key_type>, NonDestructible<key_type>,
868 … NoHash<key_type>, HashNonConst<key_type>, WrongInputHash<key_type>, WrongReturnHash<key_type>,
869 NoEqual<key_type>, EqualNonConst<key_type>,
870 … WrongFirstInputEqual<key_type>, WrongSecondInputEqual<key_type>, WrongReturnEqual<key_type>>();
[all …]
H A Dtest_concurrent_map.cpp81 using key_type = typename ValueType::first_type; in check() typedef
84 TypeTester<DefCtorPresent, tbb::concurrent_map<key_type, mapped_type>>(lst); in check()
85 TypeTester<DefCtorPresent, tbb::concurrent_multimap<key_type, mapped_type>>(lst); in check()
H A Dtest_concurrent_unordered_map.cpp88 using key_type = typename std::remove_const<typename ValueType::first_type>::type; in check() typedef
91 … TypeTester<DefCtorPresent, table_type<tbb::concurrent_unordered_map, key_type, mapped_type>>(lst); in check()
92 …TypeTester<DefCtorPresent, table_type<tbb::concurrent_unordered_multimap, key_type, mapped_type>>(… in check()
H A Dtest_join_node.h455 typedef int key_type; // have to define it to something
464 typedef K key_type;
473 typedef K key_type;
1158 typedef typename is_key_matching_join<JP>::key_type key_type;
1167 …h K == " << name_of<typename K_deref<typename is_key_matching_join<JP>::key_type>::type >::name());
1168 if(std::is_reference<typename is_key_matching_join<JP>::key_type>::value) {
1399 …h K == " << name_of<typename K_deref<typename is_key_matching_join<JP>::key_type>::type >::name());
1400 if(std::is_reference<typename is_key_matching_join<JP>::key_type>::value) {
/oneTBB/include/oneapi/tbb/detail/
H A D_node_handle.h109 using key_type = Key;
115 key_type& key() const { in key()
117 return *const_cast<key_type*>(&(this->my_node->value().first)); in key()
H A D_concurrent_skip_list.h253 using key_type = typename container_traits::key_type; variable
465 size_type unsafe_erase( const key_type& key ) { in unsafe_erase()
487 node_type unsafe_extract( const key_type& key ) { in unsafe_extract()
500 iterator lower_bound( const key_type& key ) { in lower_bound()
504 const_iterator lower_bound( const key_type& key ) const { in lower_bound()
518 iterator upper_bound( const key_type& key ) { in upper_bound()
536 iterator find( const key_type& key ) { in find()
540 const_iterator find( const key_type& key ) const { in find()
554 size_type count( const key_type& key ) const { in count()
563 bool contains( const key_type& key ) const { in contains()
[all …]
H A D_concurrent_unordered_base.h194 using key_type = typename traits_type::key_type; variable
509 size_type unsafe_erase( const key_type& key ) { in unsafe_erase()
532 node_type unsafe_extract( const key_type& key ) { in unsafe_extract()
548 iterator find( const key_type& key ) { in find()
553 const_iterator find( const key_type& key ) const { in find()
570 std::pair<iterator, iterator> equal_range( const key_type& key ) { in equal_range()
592 size_type count( const key_type& key ) const { in count()
601 bool contains( const key_type& key ) const { in contains()
650 size_type unsafe_bucket( const key_type& key ) const { in unsafe_bucket()
988 const key_type& key = traits_type::get_key(value); in internal_insert()
[all …]
H A D_flow_graph_join_impl.h531 typedef typename TraitsType::K key_type;
532 typedef typename std::decay<key_type>::type noref_key_type;
536 … typedef hash_buffer< key_type, input_type, type_to_key_func_type, hash_compare_type > buffer_type;
629 my_join = dynamic_cast<matching_forwarding_base<key_type>*>(join);
658 matching_forwarding_base<key_type> *my_join;
833 typedef K key_type;
834 typedef typename std::decay<key_type>::type unref_key_type;
847 …typedef join_node_base<key_matching<key_type,key_hash_compare>, InputTuple, OutputTuple> base_node…
848 typedef matching_forwarding_base<key_type> forwarding_base_type;
855 … typedef join_node_FE<key_matching<key_type,key_hash_compare>, InputTuple, OutputTuple> class_type;
[all …]
H A D_flow_graph_body_impl.h59 typedef K key_type;
H A D_flow_graph_types_impl.h61 typedef typename KeyTraits::key_type K;
/oneTBB/doc/main/reference/
H A Dconcurrent_lru_cache_cls.rst56 using key_type = Key;
81 handle operator[]( key_type key );
105 .. cpp:function:: handle operator[]( key_type k );
/oneTBB/test/common/
H A Dconcurrent_lru_cache_common.h83 template<typename key_type, typename value_type, std::size_t array_size>
91 const value_type& operator()(key_type k) const { in operator()
H A Dnode_handling_support.h32 bool compare_handle_getters( const Handle& node, const std::pair<typename Handle::key_type, typenam… in compare_handle_getters() argument
42 void set_node_handle_value( Handle& node, const std::pair<typename Handle::key_type, typename Handl… in set_node_handle_value() argument
245 void test_extract( Container table_for_extract, typename Container::key_type new_key ) { in test_extract()
H A Dconcurrent_associative_common.h84 struct Value : ValueFactoryBase<typename Container::key_type, typename Container::value_type> {
1017 typename Table::key_type temp_key = my_value.first;
1041 void TestMapSpecificMethods( Table& c, const std::pair<const typename Table::key_type,
1324 static_assert(std::is_same<typename Container::key_type, int>::value,
1390 static_assert(std::is_same<typename Container::key_type, std::string>::value,

12