Home | History | Annotate | Download | only in unit

Lines Matching defs:Key

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