Lines Matching refs:Key
303 struct Key struct
305 Key() : m_data(0) {} in Key() argument
306 explicit Key(int data) : m_data(data) {} in Key() function
313 bool operator () (Key lhs, Key rhs) const in operator ()() argument
316 bool operator () (Key lhs, int rhs) const in operator ()()
319 bool operator () (int lhs, Key rhs) const in operator ()()
325 bool operator () (Key const volatile *lhs, Key const volatile *rhs) const in operator ()()
328 bool operator () (Key const volatile *lhs, int rhs) const in operator ()()
331 bool operator () (int lhs, Key const volatile *rhs) const in operator ()()
339 typedef map<Key, int, KeyCmp> Container; in template_methods()
342 cont.insert(value(Key(1), 1)); in template_methods()
343 cont.insert(value(Key(2), 2)); in template_methods()
344 cont.insert(value(Key(3), 3)); in template_methods()
345 cont.insert(value(Key(4), 4)); in template_methods()
347 CPPUNIT_ASSERT( cont.count(Key(1)) == 1 ); in template_methods()
364 typedef map<Key*, int, KeyCmpPtr> Container; in template_methods()
367 Key key1(1), key2(2), key3(3), key4(4); in template_methods()
388 typedef multimap<Key, int, KeyCmp> Container; in template_methods()
391 cont.insert(value(Key(1), 1)); in template_methods()
392 cont.insert(value(Key(2), 2)); in template_methods()
393 cont.insert(value(Key(3), 3)); in template_methods()
394 cont.insert(value(Key(4), 4)); in template_methods()
396 CPPUNIT_ASSERT( cont.count(Key(1)) == 1 ); in template_methods()
413 typedef multimap<Key const volatile*, int, KeyCmpPtr> Container; in template_methods()
416 Key key1(1), key2(2), key3(3), key4(4); in template_methods()