NAMD
Public Member Functions | Public Attributes | List of all members
nodesort Struct Reference

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
 

Detailed Description

Definition at line 1485 of file WorkDistrib.C.

Constructor & Destructor Documentation

nodesort::nodesort ( )
inline

Definition at line 1491 of file WorkDistrib.C.

1491 : node(-1),a_total(0),b_total(0),c_total(0),npatches(0) { ; }
int npatches
Definition: WorkDistrib.C:1490

Member Function Documentation

int nodesort::operator< ( const nodesort o) const
inline

Definition at line 1501 of file WorkDistrib.C.

References a_total, b_total, c_total, and npatches.

1501  {
1502  float a1 = ((float)a_total)/((float)npatches);
1503  float a2 = ((float)o.a_total)/((float)o.npatches);
1504  float b1 = ((float)b_total)/((float)npatches);
1505  float b2 = ((float)o.b_total)/((float)o.npatches);
1506  float c1 = ((float)c_total)/((float)npatches);
1507  float c2 = ((float)o.c_total)/((float)o.npatches);
1508  return ( (a1 < a2) || ((a1 == a2) && (b1 < b2)) ||
1509  ((a1 == a2) && (b1 == b2) && (c1 < c2)) );
1510  }
int npatches
Definition: WorkDistrib.C:1490
int nodesort::operator== ( const nodesort o) const
inline

Definition at line 1492 of file WorkDistrib.C.

References a_total, b_total, c_total, and npatches.

1492  {
1493  float a1 = ((float)a_total)/((float)npatches);
1494  float a2 = ((float)o.a_total)/((float)o.npatches);
1495  float b1 = ((float)b_total)/((float)npatches);
1496  float b2 = ((float)o.b_total)/((float)o.npatches);
1497  float c1 = ((float)c_total)/((float)npatches);
1498  float c2 = ((float)o.c_total)/((float)o.npatches);
1499  return ((a1 == a2) && (b1 == b2) && (c1 == c2));
1500  }
int npatches
Definition: WorkDistrib.C:1490

Member Data Documentation

int nodesort::a_total

Definition at line 1487 of file WorkDistrib.C.

Referenced by operator<(), and operator==().

int nodesort::b_total

Definition at line 1488 of file WorkDistrib.C.

Referenced by operator<(), and operator==().

int nodesort::c_total

Definition at line 1489 of file WorkDistrib.C.

Referenced by operator<(), and operator==().

int nodesort::node

Definition at line 1486 of file WorkDistrib.C.

int nodesort::npatches

Definition at line 1490 of file WorkDistrib.C.

Referenced by operator<(), and operator==().


The documentation for this struct was generated from the following file: