patch_sortop_curve_b Struct Reference

List of all members.

Public Member Functions

 patch_sortop_curve_b (PatchMap *m)
bool operator() (int p1, int p2) const

Public Attributes

PatchMappmap

Detailed Description

Definition at line 1973 of file WorkDistrib.C.


Constructor & Destructor Documentation

patch_sortop_curve_b::patch_sortop_curve_b ( PatchMap m  )  [inline]

Definition at line 1975 of file WorkDistrib.C.

01975 : pmap(m) {}


Member Function Documentation

bool patch_sortop_curve_b::operator() ( int  p1,
int  p2 
) const [inline]

Definition at line 1976 of file WorkDistrib.C.

References PatchMap::index_a(), PatchMap::index_b(), PatchMap::index_c(), and pmap.

01976                                                 {
01977     int a1 = pmap->index_b(p1);
01978     int a2 = pmap->index_b(p2);
01979     if ( a1 < a2 ) return true;
01980     if ( a1 > a2 ) return false;
01981     int dir = ( (a1 & 1) ? -1 : 1 );
01982     int b1 = pmap->index_a(p1);
01983     int b2 = pmap->index_a(p2);
01984     if ( b1 * dir < b2 * dir ) return true;
01985     if ( b1 * dir > b2 * dir ) return false;
01986     dir *= ( (b1 & 1) ? -1 : 1 );
01987     int c1 = pmap->index_c(p1);
01988     int c2 = pmap->index_c(p2);
01989     if ( c1 * dir < c2 * dir ) return true;
01990     return false;
01991   }


Member Data Documentation

PatchMap* patch_sortop_curve_b::pmap

Definition at line 1974 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:20 2017 for NAMD by  doxygen 1.4.7