Beispiel #1
0
 // very simple callback method for linked list's print list method's use
 void PrintCallback( void ) { cout << key.getKey() << '\t' << name << endl; }
Beispiel #2
0
 int getKey( void ) { return key.getKey(); }
Beispiel #3
0
 bool operator <=( int rhs ) { return key.getKey() <= rhs; }
Beispiel #4
0
 bool operator <( int rhs ) { return key.getKey() < rhs; }
Beispiel #5
0
 bool operator >=( int rhs ) { return key.getKey() >= rhs; }
Beispiel #6
0
 // also, since the key is an int, define operators on int keys
 bool operator >( int rhs ) { return key.getKey() > rhs; }