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 1065 of file WorkDistrib.C.

01065 : 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 1075 of file WorkDistrib.C.

References a_total, b_total, c_total, and npatches.

01075                                          {
01076     float a1 = ((float)a_total)/((float)npatches);
01077     float a2 = ((float)o.a_total)/((float)o.npatches);
01078     float b1 = ((float)b_total)/((float)npatches);
01079     float b2 = ((float)o.b_total)/((float)o.npatches);
01080     float c1 = ((float)c_total)/((float)npatches);
01081     float c2 = ((float)o.c_total)/((float)o.npatches);
01082     return ( (a1 < a2) || ((a1 == a2) && (b1 < b2)) ||
01083                 ((a1 == a2) && (b1 == b2) && (c1 < c2)) );
01084   }

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

Definition at line 1066 of file WorkDistrib.C.

References a_total, b_total, c_total, and npatches.

01066                                           {
01067     float a1 = ((float)a_total)/((float)npatches);
01068     float a2 = ((float)o.a_total)/((float)o.npatches);
01069     float b1 = ((float)b_total)/((float)npatches);
01070     float b2 = ((float)o.b_total)/((float)o.npatches);
01071     float c1 = ((float)c_total)/((float)npatches);
01072     float c2 = ((float)o.c_total)/((float)o.npatches);
01073     return ((a1 == a2) && (b1 == b2) && (c1 == c2));
01074   }


Member Data Documentation

int nodesort::a_total
 

Definition at line 1061 of file WorkDistrib.C.

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

int nodesort::b_total
 

Definition at line 1062 of file WorkDistrib.C.

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

int nodesort::c_total
 

Definition at line 1063 of file WorkDistrib.C.

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

int nodesort::node
 

Definition at line 1060 of file WorkDistrib.C.

int nodesort::npatches
 

Definition at line 1064 of file WorkDistrib.C.

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


The documentation for this struct was generated from the following file:
Generated on Sun Jul 6 04:07:47 2008 for NAMD by  doxygen 1.3.9.1