Changeset 3746aeb for molecuilder/src/atom.cpp
- Timestamp:
- Mar 3, 2010, 5:47:40 PM (16 years ago)
- Children:
- 4938aa, f058ef
- Parents:
- 14d898
- File:
-
- 1 edited
-
molecuilder/src/atom.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
molecuilder/src/atom.cpp
r14d898 r3746aeb 290 290 } 291 291 292 void atom::setId(int _id) { 292 bool atom::changeId(atomId_t newId){ 293 // first we move ourselves in the world 294 // the world lets us know if that succeeded 295 if(world->changeAtomId(id,newId,this)){ 296 id = newId; 297 return true; 298 } 299 else{ 300 return false; 301 } 302 } 303 304 void atom::setId(atomId_t _id) { 293 305 id=_id; 294 306 } … … 298 310 } 299 311 300 atom* NewAtom(){ 301 return new atom(); 302 } 303 304 void DeleteAtom(atom* atom){ 312 atom* NewAtom(atomId_t _id){ 313 atom * res =new atom(); 314 res->setId(_id); 315 return res; 316 } 317 318 void DeleteAtom(atom* atom){ 305 319 delete atom; 306 320 }
Note:
See TracChangeset
for help on using the changeset viewer.
