![]() |
![]() |
|
Index
Source Files
Annotated Class List
Alphabetical Class List
Class Hierarchy
Graphical Class Hierarchy
|
||
![]() |
![]() |
#include <MessageSorters.h>
Static Public Member Functions | |
| bool | compare (const int x, const int y, int *order, int largest) |
Definition at line 81 of file MessageSorters.h.
|
||||||||||||||||||||
|
Definition at line 83 of file MessageSorters.h.
00084 {
00085 if ( x <= largest && y <= largest )
00086 {
00087 int iX = order[ x ];
00088 int iY = order[ y ];
00089 if ( iX == 0 && iY == 0 )
00090 return x < y;
00091 else if ( iX == 0 )
00092 return false;
00093 else if ( iY == 0 )
00094 return true;
00095 else
00096 return iX < iY;
00097 }
00098 else if ( x <= largest ) return true;
00099 else if ( y <= largest ) return false;
00100 else return x < y;
00101 }
|
1.3.6-20040222 written by Dimitri van Heesch,
© 1997-2001