Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members

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


Constructor & Destructor Documentation

Exclusion::Exclusion void   )  [inline]
 

Definition at line 137 of file structures.h.

00137 : modified(0) {;}

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

Definition at line 138 of file structures.h.

00138                                                :
00139                 atom1(a1), atom2(a2), modified(mod) {;}
        int32 atom1;


Member Function Documentation

int Exclusion::hash void   )  const [inline]
 

Definition at line 143 of file structures.h.

00144         {
00145                 return atom1 + atom2;
00146         }

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

Definition at line 151 of file structures.h.

References atom1, and atom2.

00152         {
00153                 return
00154                 (
00155                   ( atom1 < o.atom1 ) ||
00156                   ( atom1 == o.atom1 && atom2 < o.atom2 )
00157                 );
00158         }

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

Definition at line 147 of file structures.h.

References atom1, and atom2.

00148         {
00149                 return atom1 == o.atom1 && atom2 == o.atom2;
00150         }


Member Data Documentation

int32 Exclusion::atom1
 

Definition at line 140 of file structures.h.

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

int32 Exclusion::atom2
 

Definition at line 141 of file structures.h.

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

Index Exclusion::modified
 

Definition at line 142 of file structures.h.

Referenced by ExclElem::ExclElem().


The documentation for this class was generated from the following file:
Generated on Fri May 25 04:07:22 2012 for NAMD by  doxygen 1.3.9.1