Public Member Functions | |
nodesort () | |
int | operator== (const nodesort &o) const |
int | operator< (const nodesort &o) const |
Public Attributes | |
int | node |
int | a_total |
int | b_total |
int | c_total |
int | npatches |
Definition at line 1481 of file WorkDistrib.C.
nodesort::nodesort | ( | ) | [inline] |
int nodesort::operator< | ( | const nodesort & | o | ) | const [inline] |
Definition at line 1497 of file WorkDistrib.C.
References a_total, b_total, c_total, and npatches.
01497 { 01498 float a1 = ((float)a_total)/((float)npatches); 01499 float a2 = ((float)o.a_total)/((float)o.npatches); 01500 float b1 = ((float)b_total)/((float)npatches); 01501 float b2 = ((float)o.b_total)/((float)o.npatches); 01502 float c1 = ((float)c_total)/((float)npatches); 01503 float c2 = ((float)o.c_total)/((float)o.npatches); 01504 return ( (a1 < a2) || ((a1 == a2) && (b1 < b2)) || 01505 ((a1 == a2) && (b1 == b2) && (c1 < c2)) ); 01506 }
int nodesort::operator== | ( | const nodesort & | o | ) | const [inline] |
Definition at line 1488 of file WorkDistrib.C.
References a_total, b_total, c_total, and npatches.
01488 { 01489 float a1 = ((float)a_total)/((float)npatches); 01490 float a2 = ((float)o.a_total)/((float)o.npatches); 01491 float b1 = ((float)b_total)/((float)npatches); 01492 float b2 = ((float)o.b_total)/((float)o.npatches); 01493 float c1 = ((float)c_total)/((float)npatches); 01494 float c2 = ((float)o.c_total)/((float)o.npatches); 01495 return ((a1 == a2) && (b1 == b2) && (c1 == c2)); 01496 }
Definition at line 1483 of file WorkDistrib.C.
Referenced by operator<(), and operator==().
Definition at line 1484 of file WorkDistrib.C.
Referenced by operator<(), and operator==().
Definition at line 1485 of file WorkDistrib.C.
Referenced by operator<(), and operator==().
int nodesort::node |
Definition at line 1482 of file WorkDistrib.C.
Definition at line 1486 of file WorkDistrib.C.
Referenced by operator<(), and operator==().