pid_sortop_reverse_priority Struct Reference

List of all members.

Public Member Functions

bool operator() (int pidj, int pidi)
bool operator() (int2 pidj, int2 pidi)

Detailed Description

Definition at line 976 of file ComputeNonbondedCUDA.C.


Member Function Documentation

bool pid_sortop_reverse_priority::operator() ( int2  pidj,
int2  pidi 
) [inline]

Definition at line 304 of file CudaComputeNonbonded.C.

References PATCH_PRIORITY.

00304                                          {  // i and j reversed
00305     int ppi = PATCH_PRIORITY(pidi.x);
00306     int ppj = PATCH_PRIORITY(pidj.x);
00307     if ( ppi != ppj ) return ppi < ppj;
00308     return pidi.x < pidj.x;
00309   }

bool pid_sortop_reverse_priority::operator() ( int  pidj,
int  pidi 
) [inline]

Definition at line 977 of file ComputeNonbondedCUDA.C.

References PATCH_PRIORITY.

00977                                        {  // i and j reversed
00978     int ppi = PATCH_PRIORITY(pidi);
00979     int ppj = PATCH_PRIORITY(pidj);
00980     if ( ppi != ppj ) return ppi < ppj;
00981     return pidi < pidj;
00982   }


The documentation for this struct was generated from the following files:
Generated on Tue Nov 21 01:17:20 2017 for NAMD by  doxygen 1.4.7