Exclusion Class Reference

#include <structures.h>

List of all members.

Public Member Functions

 Exclusion (void)
 Exclusion (int a1, int a2, int mod=0)
int hash (void) const
int operator== (const Exclusion &o) const
int operator< (const Exclusion &o) const

Public Attributes

int32 atom1
int32 atom2
Index modified

Detailed Description

Definition at line 153 of file structures.h.


Constructor & Destructor Documentation

Exclusion::Exclusion ( void   )  [inline]

Definition at line 156 of file structures.h.

00156 : modified(0) {;}

Exclusion::Exclusion ( int  a1,
int  a2,
int  mod = 0 
) [inline]

Definition at line 157 of file structures.h.

00157                                                :
00158                 atom1(a1), atom2(a2), modified(mod) {;}
        int32 atom1;


Member Function Documentation

int Exclusion::hash ( void   )  const [inline]

Definition at line 162 of file structures.h.

References atom1, and atom2.

00163         {
00164                 return atom1 + atom2;
00165         }

int Exclusion::operator< ( const Exclusion o  )  const [inline]

Definition at line 170 of file structures.h.

References atom1, and atom2.

00171         {
00172                 return
00173                 (
00174                   ( atom1 < o.atom1 ) ||
00175                   ( atom1 == o.atom1 && atom2 < o.atom2 )
00176                 );
00177         }

int Exclusion::operator== ( const Exclusion o  )  const [inline]

Definition at line 166 of file structures.h.

References atom1, and atom2.

00167         {
00168                 return atom1 == o.atom1 && atom2 == o.atom2;
00169         }


Member Data Documentation

Definition at line 159 of file structures.h.

Referenced by ExclElem::ExclElem(), hash(), operator<(), and operator==().

Definition at line 160 of file structures.h.

Referenced by ExclElem::ExclElem(), hash(), operator<(), and operator==().

Definition at line 161 of file structures.h.

Referenced by ExclElem::ExclElem().


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

Generated on 6 Dec 2019 for NAMD by  doxygen 1.6.1