| 1 |
#include <cstdlib> |
| 2 |
|
| 3 |
#include "Molecule.hpp" |
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
Molecule::Molecule( int theNMembers, Atom **atomStart ){ |
| 9 |
|
| 10 |
nMembers = theNMembers; |
| 11 |
myAtoms = atomStart; |
| 12 |
|
| 13 |
nBonds = 0; |
| 14 |
nBends = 0; |
| 15 |
nTorsions = 0; |
| 16 |
} |
| 17 |
|
| 18 |
|
| 19 |
void Molecule::setBonds( int theNBonds, Bond** bondStart ){ |
| 20 |
nBonds = theNBonds; |
| 21 |
myBonds = bondStart; |
| 22 |
} |
| 23 |
|
| 24 |
void Molecule::setBends( int theNBends, Bend** bendStart ){ |
| 25 |
nBends = theNBends; |
| 26 |
myBends = bendStart; |
| 27 |
} |
| 28 |
|
| 29 |
void Molecule::setTorsions( int theNTorsions, Torsion** torsionStart ){ |
| 30 |
nTorsions = theNTorsions; |
| 31 |
myTorsions = torsionStart; |
| 32 |
} |