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 143 of file structures.h.


Constructor & Destructor Documentation

Exclusion::Exclusion ( void   )  [inline]

Definition at line 146 of file structures.h.

00146 : modified(0) {;}

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

Definition at line 147 of file structures.h.

00147                                                :
00148                 atom1(a1), atom2(a2), modified(mod) {;}
        int32 atom1;


Member Function Documentation

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

Definition at line 152 of file structures.h.

References atom1, and atom2.

00153         {
00154                 return atom1 + atom2;
00155         }

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

Definition at line 160 of file structures.h.

References atom1, and atom2.

00161         {
00162                 return
00163                 (
00164                   ( atom1 < o.atom1 ) ||
00165                   ( atom1 == o.atom1 && atom2 < o.atom2 )
00166                 );
00167         }

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

Definition at line 156 of file structures.h.

References atom1, and atom2.

00157         {
00158                 return atom1 == o.atom1 && atom2 == o.atom2;
00159         }


Member Data Documentation

int32 Exclusion::atom1

Definition at line 149 of file structures.h.

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

int32 Exclusion::atom2

Definition at line 150 of file structures.h.

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

Index Exclusion::modified

Definition at line 151 of file structures.h.

Referenced by ExclElem::ExclElem().


The documentation for this class was generated from the following file:
Generated on Thu Nov 23 01:17:18 2017 for NAMD by  doxygen 1.4.7