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

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 20 of file SortAtoms.C.

Constructor & Destructor Documentation

sortop_x::sortop_x ( const FullAtom atoms)

Definition at line 21 of file SortAtoms.C.

21 : sortop_base(atoms) { }
sortop_base(const FullAtom *atoms)
Definition: SortAtoms.C:17

Member Function Documentation

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

Definition at line 22 of file SortAtoms.C.

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

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

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