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

Detailed Description

Definition at line 1524 of file WorkDistrib.C.


Constructor & Destructor Documentation

nodesort::nodesort (  )  [inline]

Definition at line 1530 of file WorkDistrib.C.

01530 : 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 1540 of file WorkDistrib.C.

References a_total, b_total, c_total, and npatches.

01540                                          {
01541     float a1 = ((float)a_total)/((float)npatches);
01542     float a2 = ((float)o.a_total)/((float)o.npatches);
01543     float b1 = ((float)b_total)/((float)npatches);
01544     float b2 = ((float)o.b_total)/((float)o.npatches);
01545     float c1 = ((float)c_total)/((float)npatches);
01546     float c2 = ((float)o.c_total)/((float)o.npatches);
01547     return ( (a1 < a2) || ((a1 == a2) && (b1 < b2)) ||
01548                 ((a1 == a2) && (b1 == b2) && (c1 < c2)) );
01549   }

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

Definition at line 1531 of file WorkDistrib.C.

References a_total, b_total, c_total, and npatches.

01531                                           {
01532     float a1 = ((float)a_total)/((float)npatches);
01533     float a2 = ((float)o.a_total)/((float)o.npatches);
01534     float b1 = ((float)b_total)/((float)npatches);
01535     float b2 = ((float)o.b_total)/((float)o.npatches);
01536     float c1 = ((float)c_total)/((float)npatches);
01537     float c2 = ((float)o.c_total)/((float)o.npatches);
01538     return ((a1 == a2) && (b1 == b2) && (c1 == c2));
01539   }


Member Data Documentation

int nodesort::a_total

Definition at line 1526 of file WorkDistrib.C.

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

int nodesort::b_total

Definition at line 1527 of file WorkDistrib.C.

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

int nodesort::c_total

Definition at line 1528 of file WorkDistrib.C.

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

int nodesort::node

Definition at line 1525 of file WorkDistrib.C.

int nodesort::npatches

Definition at line 1529 of file WorkDistrib.C.

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


The documentation for this struct was generated from the following file:
Generated on Mon Sep 25 01:17:19 2017 for NAMD by  doxygen 1.4.7