Changes in src/World.cpp [6d574a:387b36]
- File:
-
- 1 edited
-
src/World.cpp (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/World.cpp
r6d574a r387b36 5 5 * Author: crueger 6 6 */ 7 8 #include "Helpers/MemDebug.hpp"9 7 10 8 #include "World.hpp" … … 20 18 #include "Descriptors/SelectiveIterator_impl.hpp" 21 19 #include "Actions/ManipulateAtomsProcess.hpp" 22 #include "Helpers/Assert.hpp"23 20 24 21 #include "Patterns/Singleton_impl.hpp" … … 106 103 molecule *mol = NULL; 107 104 mol = NewMolecule(); 108 ASSERT(!molecules.count(currMoleculeId),"currMoleculeId did not specify an unused ID");105 assert(!molecules.count(currMoleculeId)); 109 106 mol->setId(currMoleculeId++); 110 107 // store the molecule by ID … … 122 119 OBSERVE; 123 120 molecule *mol = molecules[id]; 124 ASSERT(mol,"Molecule id that was meant to be destroyed did not exist");121 assert(mol); 125 122 DeleteMolecule(mol); 126 123 molecules.erase(id); … … 158 155 OBSERVE; 159 156 atom *atom = atoms[id]; 160 ASSERT(atom,"Atom ID that was meant to be destroyed did not exist");157 assert(atom); 161 158 DeleteAtom(atom); 162 159 atoms.erase(id); … … 170 167 if(!target){ 171 168 target = atoms[oldId]; 172 ASSERT(target,"Atom with that ID not found");169 assert(target && "Atom with that ID not found"); 173 170 return target->changeId(newId); 174 171 } … … 279 276 280 277 World::World() : 281 Observable("World"),282 278 periode(new periodentafel), 283 279 configuration(new config),
Note:
See TracChangeset
for help on using the changeset viewer.
