NAMD
Public Member Functions | List of all members
sortop_x Struct Reference
Inheritance diagram for sortop_x:
sortop_base

Public Member Functions

 sortop_x (const FullAtom *atoms)
 
bool operator() (int i, int j) const
 
- Public Member Functions inherited from sortop_base
 sortop_base (const FullAtom *atoms)
 

Additional Inherited Members

- Public Attributes inherited from sortop_base
const FullAtom *const a
 

Detailed Description

Definition at line 19 of file SortAtoms.C.

Constructor & Destructor Documentation

sortop_x::sortop_x ( const FullAtom atoms)
inline

Definition at line 20 of file SortAtoms.C.

20 : sortop_base(atoms) { }
sortop_base(const FullAtom *atoms)
Definition: SortAtoms.C:16

Member Function Documentation

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

Definition at line 21 of file SortAtoms.C.

References sortop_base::a, CompAtom::position, and Vector::x.

21  {
22  return ( a[i].position.x < a[j].position.x );
23  }
const FullAtom *const a
Definition: SortAtoms.C:15
Position position
Definition: NamdTypes.h:53
BigReal x
Definition: Vector.h:66

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