pe_sortop_bit_reversed Struct Reference

List of all members.

Public Member Functions

 pe_sortop_bit_reversed (int *r)
bool operator() (int a, int b) const

Public Attributes

int * rankInPhysOfNode

Detailed Description

Definition at line 138 of file WorkDistrib.C.


Constructor & Destructor Documentation

pe_sortop_bit_reversed::pe_sortop_bit_reversed ( int *  r  )  [inline]

Definition at line 140 of file WorkDistrib.C.

00140 : rankInPhysOfNode(r) {}


Member Function Documentation

bool pe_sortop_bit_reversed::operator() ( int  a,
int  b 
) const [inline]

Definition at line 141 of file WorkDistrib.C.

References compare_bit_reversed(), and rankInPhysOfNode.

00141                                               {
00142     int c = compare_bit_reversed(CmiRankOf(a),CmiRankOf(b));
00143     if ( c < 0 ) return true;
00144     if ( c > 0 ) return false;
00145     c = compare_bit_reversed(
00146         rankInPhysOfNode[CmiNodeOf(a)],rankInPhysOfNode[CmiNodeOf(b)]);
00147     if ( c < 0 ) return true;
00148     if ( c > 0 ) return false;
00149     c = compare_bit_reversed(CmiPhysicalNodeID(a),CmiPhysicalNodeID(b));
00150     return ( c < 0 );
00151   }


Member Data Documentation

int* pe_sortop_bit_reversed::rankInPhysOfNode

Definition at line 139 of file WorkDistrib.C.

Referenced by operator()().


The documentation for this struct was generated from the following file:
Generated on Sat Sep 23 01:17:21 2017 for NAMD by  doxygen 1.4.7