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

Public Member Functions

 idIndxStr ()
 
 idIndxStr (int newID, int newIndx)
 
 idIndxStr (const idIndxStr &ref)
 
idIndxStroperator= (const idIndxStr &ref)
 
bool operator== (const idIndxStr &ref) const
 
bool operator!= (const idIndxStr &ref) const
 
bool operator< (const idIndxStr &ref)
 

Public Attributes

int ID
 
int indx
 

Detailed Description

Definition at line 205 of file ComputeQM.C.

Constructor & Destructor Documentation

◆ idIndxStr() [1/3]

idIndxStr::idIndxStr ( )
inline

Definition at line 209 of file ComputeQM.C.

References ID, and indx.

209  {
210  ID = -1;
211  indx = -1;
212  };
int indx
Definition: ComputeQM.C:207

◆ idIndxStr() [2/3]

idIndxStr::idIndxStr ( int  newID,
int  newIndx 
)
inline

Definition at line 213 of file ComputeQM.C.

References ID, and indx.

213  {
214  ID = newID;
215  indx = newIndx;
216  }
int indx
Definition: ComputeQM.C:207

◆ idIndxStr() [3/3]

idIndxStr::idIndxStr ( const idIndxStr ref)
inline

Definition at line 217 of file ComputeQM.C.

References ID, and indx.

217  {
218  ID = ref.ID ;
219  indx = ref.indx;
220  }
int indx
Definition: ComputeQM.C:207

Member Function Documentation

◆ operator!=()

bool idIndxStr::operator!= ( const idIndxStr ref) const
inline

Definition at line 231 of file ComputeQM.C.

231  {
232  return !(*this == ref);
233  }

◆ operator<()

bool idIndxStr::operator< ( const idIndxStr ref)
inline

Definition at line 239 of file ComputeQM.C.

References ID.

239 {return ID < ref.ID;}

◆ operator=()

idIndxStr& idIndxStr::operator= ( const idIndxStr ref)
inline

Definition at line 222 of file ComputeQM.C.

References ID, and indx.

222  {
223  ID = ref.ID ;
224  indx = ref.indx;
225  return *this;
226  }
int indx
Definition: ComputeQM.C:207

◆ operator==()

bool idIndxStr::operator== ( const idIndxStr ref) const
inline

Definition at line 228 of file ComputeQM.C.

References ID, and indx.

228  {
229  return (ID == ref.ID && indx == ref.indx);
230  }
int indx
Definition: ComputeQM.C:207

Member Data Documentation

◆ ID

int idIndxStr::ID

Definition at line 206 of file ComputeQM.C.

Referenced by idIndxStr(), operator<(), operator=(), and operator==().

◆ indx

int idIndxStr::indx

Definition at line 207 of file ComputeQM.C.

Referenced by idIndxStr(), operator=(), and operator==().


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