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