Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members

nodesort Struct Reference

List of all members.

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

Constructor & Destructor Documentation

nodesort::nodesort  )  [inline]
 

Definition at line 1138 of file WorkDistrib.C.

01138 : node(-1),a_total(0),b_total(0),c_total(0),npatches(0) { ; }


Member Function Documentation

int nodesort::operator< const nodesort o  )  const [inline]
 

Definition at line 1148 of file WorkDistrib.C.

References a_total, b_total, c_total, and npatches.

01148                                          {
01149     float a1 = ((float)a_total)/((float)npatches);
01150     float a2 = ((float)o.a_total)/((float)o.npatches);
01151     float b1 = ((float)b_total)/((float)npatches);
01152     float b2 = ((float)o.b_total)/((float)o.npatches);
01153     float c1 = ((float)c_total)/((float)npatches);
01154     float c2 = ((float)o.c_total)/((float)o.npatches);
01155     return ( (a1 < a2) || ((a1 == a2) && (b1 < b2)) ||
01156                 ((a1 == a2) && (b1 == b2) && (c1 < c2)) );
01157   }

int nodesort::operator== const nodesort o  )  const [inline]
 

Definition at line 1139 of file WorkDistrib.C.

References a_total, b_total, c_total, and npatches.

01139                                           {
01140     float a1 = ((float)a_total)/((float)npatches);
01141     float a2 = ((float)o.a_total)/((float)o.npatches);
01142     float b1 = ((float)b_total)/((float)npatches);
01143     float b2 = ((float)o.b_total)/((float)o.npatches);
01144     float c1 = ((float)c_total)/((float)npatches);
01145     float c2 = ((float)o.c_total)/((float)o.npatches);
01146     return ((a1 == a2) && (b1 == b2) && (c1 == c2));
01147   }


Member Data Documentation

int nodesort::a_total
 

Definition at line 1134 of file WorkDistrib.C.

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

int nodesort::b_total
 

Definition at line 1135 of file WorkDistrib.C.

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

int nodesort::c_total
 

Definition at line 1136 of file WorkDistrib.C.

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

int nodesort::node
 

Definition at line 1133 of file WorkDistrib.C.

int nodesort::npatches
 

Definition at line 1137 of file WorkDistrib.C.

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


The documentation for this struct was generated from the following file:
Generated on Sun Feb 12 04:08:03 2012 for NAMD by  doxygen 1.3.9.1