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

ExclusionCheck Class Reference

#include <Molecule.h>

List of all members.

Public Member Functions

 ExclusionCheck ()
 ExclusionCheck (const ExclusionCheck &chk)
ExclusionCheckoperator= (const ExclusionCheck &chk)
 ~ExclusionCheck ()

Public Attributes

int32 min
int32 max
char * flags


Constructor & Destructor Documentation

ExclusionCheck::ExclusionCheck  )  [inline]
 

Definition at line 61 of file Molecule.h.

00061                   {
00062       min=0;
00063       max=-1;
00064       flags = NULL;
00065   }

ExclusionCheck::ExclusionCheck const ExclusionCheck chk  )  [inline]
 

Definition at line 66 of file Molecule.h.

References flags, max, and min.

00066                                            {
00067       min = chk.min;
00068       max = chk.max;
00069       if(max>min){ 
00070         flags = new char[max-min+1];
00071         memcpy(flags, chk.flags, sizeof(char)*(max-min+1));
00072       }
00073   }

ExclusionCheck::~ExclusionCheck  )  [inline]
 

Definition at line 85 of file Molecule.h.

00085                    {
00086       if(flags) delete [] flags;
00087   }


Member Function Documentation

ExclusionCheck& ExclusionCheck::operator= const ExclusionCheck chk  )  [inline]
 

Definition at line 74 of file Molecule.h.

References flags, max, and min.

00074                                                       {
00075     min = chk.min;
00076     max = chk.max;
00077     if(flags) delete [] flags;
00078     flags = NULL;
00079     if(max>min){
00080         flags = new char[max-min+1];
00081         memcpy(flags, chk.flags, sizeof(char)*(max-min+1));
00082     }
00083     return *this;
00084   }


Member Data Documentation

char* ExclusionCheck::flags
 

Definition at line 59 of file Molecule.h.

Referenced by dumpbench(), ExclusionCheck(), operator=(), and SELF().

int32 ExclusionCheck::max
 

Definition at line 58 of file Molecule.h.

Referenced by dumpbench(), ExclusionCheck(), operator=(), and SELF().

int32 ExclusionCheck::min
 

Definition at line 58 of file Molecule.h.

Referenced by dumpbench(), ExclusionCheck(), operator=(), and SELF().


The documentation for this class was generated from the following file:
Generated on Tue Nov 24 04:07:49 2009 for NAMD by  doxygen 1.3.9.1