ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE-4/src/primitives/RigidBody.hpp
(Generate patch)

Comparing trunk/OOPSE-4/src/primitives/RigidBody.hpp (file contents):
Revision 1930 by gezelter, Wed Jan 12 22:41:40 2005 UTC vs.
Revision 1973 by tim, Fri Feb 4 22:41:23 2005 UTC

# Line 57 | Line 57 | class RigidBody : public StuntDouble {
57   namespace oopse{
58   class RigidBody : public StuntDouble {
59      public:
60 +
61 +        typedef std::vector<Atom*>::iterator AtomIterator;        
62 +
63          RigidBody();
64  
65          virtual std::string getType() { return name_;}
# Line 116 | Line 119 | class RigidBody : public StuntDouble {
119          /** update the positions of atoms belong to this rigidbody */
120          void updateAtoms();
121  
122 <        Atom* beginAtom(std::vector<Atom*>::iterator& i);
122 >        Atom* beginAtom(std::vector<Atom*>::iterator& i) {
123 >            i = atoms_.begin();
124 >            return i != atoms_.end() ? *i : NULL;
125 >        }
126  
127 <        Atom* nextAtom(std::vector<Atom*>::iterator& i);
127 >        Atom* nextAtom(std::vector<Atom*>::iterator& i) {
128 >            ++i;
129 >            return i != atoms_.end() ? *i : NULL;
130 >        }
131  
132          std::vector<Atom*>::iterator getBeginAtomIter() {
133              return atoms_.begin();

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines