Home | History | Annotate | Download | only in unit

Lines Matching defs:Key

360 struct Key
362 Key() : m_data(0) {}
363 explicit Key(int data) : m_data(data) {}
370 bool operator () (Key lhs, Key rhs) const
373 bool operator () (Key lhs, int rhs) const
376 bool operator () (int lhs, Key rhs) const
382 bool operator () (Key const volatile *lhs, Key const volatile *rhs) const
385 bool operator () (Key const volatile *lhs, int rhs) const
388 bool operator () (int lhs, Key const volatile *rhs) const
396 typedef set<Key, KeyCmp> KeySet;
398 keySet.insert(Key(1));
399 keySet.insert(Key(2));
400 keySet.insert(Key(3));
401 keySet.insert(Key(4));
403 CPPUNIT_ASSERT( keySet.count(Key(1)) == 1 );
420 typedef set<Key*, KeyCmpPtr> KeySet;
422 Key key1(1), key2(2), key3(3), key4(4);
443 typedef multiset<Key, KeyCmp> KeySet;
445 keySet.insert(Key(1));
446 keySet.insert(Key(2));
447 keySet.insert(Key(3));
448 keySet.insert(Key(4));
450 CPPUNIT_ASSERT( keySet.count(Key(1)) == 1 );
467 typedef multiset<Key const volatile*, KeyCmpPtr> KeySet;
469 Key key1(1), key2(2), key3(3), key4(4);