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