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

Public Member Functions

 pntChrgDist ()
 
 pntChrgDist (int newIndx, Real newDist)
 
int operator< (const pntChrgDist &v)
 

Public Attributes

int index
 
Real dist
 

Detailed Description

Definition at line 115 of file ComputeQM.C.

Constructor & Destructor Documentation

◆ pntChrgDist() [1/2]

pntChrgDist::pntChrgDist ( )
inline

Definition at line 118 of file ComputeQM.C.

118 : index(-1), dist(0) {};

◆ pntChrgDist() [2/2]

pntChrgDist::pntChrgDist ( int  newIndx,
Real  newDist 
)
inline

Definition at line 119 of file ComputeQM.C.

References dist, and index.

119  {
120  index = newIndx;
121  dist = newDist;
122  }

Member Function Documentation

◆ operator<()

int pntChrgDist::operator< ( const pntChrgDist v)
inline

Definition at line 123 of file ComputeQM.C.

References dist.

123 {return dist < v.dist;}

Member Data Documentation

◆ dist

Real pntChrgDist::dist

Definition at line 117 of file ComputeQM.C.

Referenced by operator<(), and pntChrgDist().

◆ index

int pntChrgDist::index

Definition at line 116 of file ComputeQM.C.

Referenced by pntChrgDist().


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