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

01098 : 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 1108 of file WorkDistrib.C.

References a_total, b_total, c_total, and npatches.

01108                                          {
01109     float a1 = ((float)a_total)/((float)npatches);
01110     float a2 = ((float)o.a_total)/((float)o.npatches);
01111     float b1 = ((float)b_total)/((float)npatches);
01112     float b2 = ((float)o.b_total)/((float)o.npatches);
01113     float c1 = ((float)c_total)/((float)npatches);
01114     float c2 = ((float)o.c_total)/((float)o.npatches);
01115     return ( (a1 < a2) || ((a1 == a2) && (b1 < b2)) ||
01116                 ((a1 == a2) && (b1 == b2) && (c1 < c2)) );
01117   }

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

Definition at line 1099 of file WorkDistrib.C.

References a_total, b_total, c_total, and npatches.

01099                                           {
01100     float a1 = ((float)a_total)/((float)npatches);
01101     float a2 = ((float)o.a_total)/((float)o.npatches);
01102     float b1 = ((float)b_total)/((float)npatches);
01103     float b2 = ((float)o.b_total)/((float)o.npatches);
01104     float c1 = ((float)c_total)/((float)npatches);
01105     float c2 = ((float)o.c_total)/((float)o.npatches);
01106     return ((a1 == a2) && (b1 == b2) && (c1 == c2));
01107   }


Member Data Documentation

int nodesort::a_total
 

Definition at line 1094 of file WorkDistrib.C.

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

int nodesort::b_total
 

Definition at line 1095 of file WorkDistrib.C.

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

int nodesort::c_total
 

Definition at line 1096 of file WorkDistrib.C.

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

int nodesort::node
 

Definition at line 1093 of file WorkDistrib.C.

int nodesort::npatches
 

Definition at line 1097 of file WorkDistrib.C.

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


The documentation for this struct was generated from the following file:
Generated on Mon Nov 23 05:00:01 2009 for NAMD by  doxygen 1.3.9.1