NAMD
Public Member Functions | Public Attributes | List of all members
sortop_SOA Struct Reference

Public Member Functions

 sortop_SOA (const double *r)
 
bool operator() (int i, int j) const
 

Public Attributes

const double *const a
 

Detailed Description

Definition at line 196 of file SortAtoms.C.

Constructor & Destructor Documentation

◆ sortop_SOA()

sortop_SOA::sortop_SOA ( const double *  r)
inline

Definition at line 198 of file SortAtoms.C.

198 : a(r) { }
const double *const a
Definition: SortAtoms.C:197

Member Function Documentation

◆ operator()()

bool sortop_SOA::operator() ( int  i,
int  j 
) const
inline

Definition at line 199 of file SortAtoms.C.

References a.

199  {
200  return ( a[i] < a[j] );
201  }
const double *const a
Definition: SortAtoms.C:197

Member Data Documentation

◆ a

const double* const sortop_SOA::a

Definition at line 197 of file SortAtoms.C.

Referenced by operator()().


The documentation for this struct was generated from the following file: