Lines Matching refs:Key
514 struct Key struct
516 Key() : m_data(0) {} in Key() argument
517 explicit Key(int data) : m_data(data) {} in Key() argument
522 bool operator==(const Key&) const; argument
528 size_t operator () (Key key) const in operator ()()
537 bool operator () (Key lhs, Key rhs) const in operator ()()
540 bool operator () (Key lhs, int rhs) const in operator ()()
543 bool operator () (int lhs, Key rhs) const in operator ()()
549 size_t operator () (Key const volatile *key) const in operator ()()
558 bool operator () (Key const volatile *lhs, Key const volatile *rhs) const in operator ()()
561 bool operator () (Key const volatile *lhs, int rhs) const in operator ()()
564 bool operator () (int lhs, Key const volatile *rhs) const in operator ()()
572 typedef unordered_set<Key, KeyHash, KeyEqual> Container; in template_methods()
574 cont.insert(Key(1)); in template_methods()
575 cont.insert(Key(2)); in template_methods()
576 cont.insert(Key(3)); in template_methods()
577 cont.insert(Key(4)); in template_methods()
579 CPPUNIT_ASSERT( cont.count(Key(1)) == 1 ); in template_methods()
593 typedef unordered_set<Key*, KeyHashPtr, KeyEqualPtr> Container; in template_methods()
595 Key key1(1), key2(2), key3(3), key4(4); in template_methods()
613 typedef unordered_multiset<Key, KeyHash, KeyEqual> Container; in template_methods()
615 cont.insert(Key(1)); in template_methods()
616 cont.insert(Key(2)); in template_methods()
617 cont.insert(Key(1)); in template_methods()
618 cont.insert(Key(2)); in template_methods()
620 CPPUNIT_ASSERT( cont.count(Key(1)) == 2 ); in template_methods()
634 typedef unordered_multiset<Key const volatile*, KeyHashPtr, KeyEqualPtr> Container; in template_methods()
636 Key key1(1), key2(2), key3(3), key4(4); in template_methods()