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