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(); |