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

00095 : modified(0) {;}

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

Definition at line 96 of file structures.h.

00096                                                :
00097                 atom1(a1), atom2(a2), modified(mod) {;}
        int32 atom1;


Member Function Documentation

int Exclusion::hash void   )  const [inline]
 

Definition at line 101 of file structures.h.

00102         {
00103                 return atom1 + atom2;
00104         }

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

Definition at line 109 of file structures.h.

References atom1, and atom2.

00110         {
00111                 return
00112                 (
00113                   ( atom1 < o.atom1 ) ||
00114                   ( atom1 == o.atom1 && atom2 < o.atom2 )
00115                 );
00116         }

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

Definition at line 105 of file structures.h.

References atom1, and atom2.

00106         {
00107                 return atom1 == o.atom1 && atom2 == o.atom2;
00108         }


Member Data Documentation

int32 Exclusion::atom1
 

Definition at line 98 of file structures.h.

Referenced by operator<(), operator==(), and Molecule::read_parm().

int32 Exclusion::atom2
 

Definition at line 99 of file structures.h.

Referenced by operator<(), operator==(), and Molecule::read_parm().

Index Exclusion::modified
 

Definition at line 100 of file structures.h.

Referenced by Molecule::read_parm().


The documentation for this class was generated from the following file:
Generated on Sat Sep 6 04:07:45 2008 for NAMD by  doxygen 1.3.9.1