Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | 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 1425 of file WorkDistrib.C.

01425 : 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 1435 of file WorkDistrib.C.

References a_total, b_total, c_total, and npatches.

01435                                          {
01436     float a1 = ((float)a_total)/((float)npatches);
01437     float a2 = ((float)o.a_total)/((float)o.npatches);
01438     float b1 = ((float)b_total)/((float)npatches);
01439     float b2 = ((float)o.b_total)/((float)o.npatches);
01440     float c1 = ((float)c_total)/((float)npatches);
01441     float c2 = ((float)o.c_total)/((float)o.npatches);
01442     return ( (a1 < a2) || ((a1 == a2) && (b1 < b2)) ||
01443                 ((a1 == a2) && (b1 == b2) && (c1 < c2)) );
01444   }

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

Definition at line 1426 of file WorkDistrib.C.

References a_total, b_total, c_total, and npatches.

01426                                           {
01427     float a1 = ((float)a_total)/((float)npatches);
01428     float a2 = ((float)o.a_total)/((float)o.npatches);
01429     float b1 = ((float)b_total)/((float)npatches);
01430     float b2 = ((float)o.b_total)/((float)o.npatches);
01431     float c1 = ((float)c_total)/((float)npatches);
01432     float c2 = ((float)o.c_total)/((float)o.npatches);
01433     return ((a1 == a2) && (b1 == b2) && (c1 == c2));
01434   }


Member Data Documentation

int nodesort::a_total
 

Definition at line 1421 of file WorkDistrib.C.

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

int nodesort::b_total
 

Definition at line 1422 of file WorkDistrib.C.

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

int nodesort::c_total
 

Definition at line 1423 of file WorkDistrib.C.

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

int nodesort::node
 

Definition at line 1420 of file WorkDistrib.C.

int nodesort::npatches
 

Definition at line 1424 of file WorkDistrib.C.

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


The documentation for this struct was generated from the following file:
Generated on Thu Jun 20 04:07:31 2013 for NAMD by  doxygen 1.3.9.1