コード例 #1
0
ファイル: templateList.cpp プロジェクト: X3N04/20Examples
 // very simple callback method for linked list's print list method's use
 void PrintCallback( void ) { cout << key.getKey() << '\t' << name << endl; }
コード例 #2
0
ファイル: templateList.cpp プロジェクト: X3N04/20Examples
 int getKey( void ) { return key.getKey(); }
コード例 #3
0
ファイル: templateList.cpp プロジェクト: X3N04/20Examples
 bool operator <=( int rhs ) { return key.getKey() <= rhs; }
コード例 #4
0
ファイル: templateList.cpp プロジェクト: X3N04/20Examples
 bool operator <( int rhs ) { return key.getKey() < rhs; }
コード例 #5
0
ファイル: templateList.cpp プロジェクト: X3N04/20Examples
 bool operator >=( int rhs ) { return key.getKey() >= rhs; }
コード例 #6
0
ファイル: templateList.cpp プロジェクト: X3N04/20Examples
 // also, since the key is an int, define operators on int keys
 bool operator >( int rhs ) { return key.getKey() > rhs; }