Home | History | Annotate | Download | only in unit

Lines Matching defs:Key

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