--- branches/mmeineke/OOPSE/libmdtools/Molecule.hpp 2003/03/21 17:42:12 377 +++ trunk/OOPSE/libmdtools/Molecule.hpp 2003/03/26 20:22:02 407 @@ -3,14 +3,35 @@ #include "Atom.hpp" #include "SRI.hpp" +#include "MoleculeStamp.hpp" +typedef struct{ + + int stampID; // the ID in the BASS component stamp array + int nAtoms; // the number of atoms in the molecule + int nBonds; // ... .. .. . .bonds .. .. . . . . + int nBends; // . . . . .. . .bends . . . . .. . + int nTorsions // .. . . .. . . torsions . . .. . . + int nOriented; // .. . . . .. . oreineted atoms . . . + + + Atom** myAtoms; // the array of atoms + Bond** myBonds; // arrays of all the short range interactions + Bend** myBends; + Torsion** myTorsions; + + +} molInit; + class Molecule{ public: - Molecule() {} - ~Molecule() {} + Molecule( void ); + ~Molecule( void ); + void initialize( molInit &theInit ); + int getNMembers( void ) { return nMembers; } int getStartAtom( void ) { return startAtom; } int getEndAtom( void ) { return endAtom; } @@ -24,11 +45,23 @@ class Molecule{ (private) private: - int nMembers; + int stampID; // the ID in the BASS component stamp array + int nAtoms; // the number of atoms in the molecule + int nBonds; // ... .. .. . .bonds .. .. . . . . + int nBends; // . . . . .. . .bends . . . . .. . + int nTorsions // .. . . .. . . torsions . . .. . . + int nOriented; // .. . . . .. . oreineted atoms . . . + + + Atom** myAtoms; // the array of atoms + Bond** myBonds; // arrays of all the short range interactions + Bend** myBends; + Torsion** myTorsions; + int startAtom; int endAtom; - int stampID; + }; #endif