ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/branches/new_design/OOPSE-2.0/src/primitives/Molecule.hpp
(Generate patch)

Comparing branches/new_design/OOPSE-2.0/src/primitives/Molecule.hpp (file contents):
Revision 1695 by tim, Mon Nov 1 22:52:57 2004 UTC vs.
Revision 1713 by tim, Fri Nov 5 02:56:22 2004 UTC

# Line 38 | Line 38
38   #include "math/Vector3.hpp"
39   #include "primitives/Atom.hpp"
40   #include "primitives/RigidBody.hpp"
41 < #include "primitives/Bond.hpp"
42 < #include "primitives/Bend.hpp"
43 < #include "primitives/Torsion.hpp"
41 > //#include "primitives/Bond.hpp"
42 > //#include "primitives/Bend.hpp"
43 > //#include "primitives/Torsion.hpp"
44 > #include "primitives/SRI.hpp"
45   #include "primitives/CutoffGroup.hpp"
46  
47   namespace oopse{
48  
49 + class Constraint;
50 +
51   /**
52   * @class Molecule Molecule.hpp "primitives/Molecule.hpp"
53   * @brief
# Line 135 | Line 138 | class Molecule {
138              return cutoffGroups_.size();
139          }
140  
141 +        /** Returns the total number of constraints in this molecule */
142 +        unsigned int getNConstraints() {
143 +            return constraints_.size();
144 +        }
145 +        
146          /**
147           * Returns the first atom in this molecule and initialize the iterator.
148           * @return the first atom, return NULL if there is not cut off group in this molecule
# Line 202 | Line 210 | class Molecule {
210           */        
211          CutoffGroup* nextCutoffGroup(std::vector<CutoffGroup*>::iterator& i);
212  
213 +        Constraint* beginConstraint(std::vector<Constraint*>::iterator& i);
214 +
215 +        Constraint* nextConstraint(std::vector<Constraint*>::iterator& i);
216 +        
217          //void setStampID( int info ) {stampID = info;}
218  
219          void calcForces( void );
# Line 237 | Line 249 | class Molecule {
249          std::vector<RigidBody*> rigidBodies_;
250          std::vector<StuntDouble*> integrableObjects_;
251          std::vector<CutoffGroup*> cutoffGroups_;
252 +        std::vector<Constraint*> constraints_;
253 +
254 +        int stampID;
255   };
256  
257   } //namespace oopse

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines