Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/World.cpp

    r6d574a r387b36  
    55 *      Author: crueger
    66 */
    7 
    8 #include "Helpers/MemDebug.hpp"
    97
    108#include "World.hpp"
     
    2018#include "Descriptors/SelectiveIterator_impl.hpp"
    2119#include "Actions/ManipulateAtomsProcess.hpp"
    22 #include "Helpers/Assert.hpp"
    2320
    2421#include "Patterns/Singleton_impl.hpp"
     
    106103  molecule *mol = NULL;
    107104  mol = NewMolecule();
    108   ASSERT(!molecules.count(currMoleculeId),"currMoleculeId did not specify an unused ID");
     105  assert(!molecules.count(currMoleculeId));
    109106  mol->setId(currMoleculeId++);
    110107  // store the molecule by ID
     
    122119  OBSERVE;
    123120  molecule *mol = molecules[id];
    124   ASSERT(mol,"Molecule id that was meant to be destroyed did not exist");
     121  assert(mol);
    125122  DeleteMolecule(mol);
    126123  molecules.erase(id);
     
    158155  OBSERVE;
    159156  atom *atom = atoms[id];
    160   ASSERT(atom,"Atom ID that was meant to be destroyed did not exist");
     157  assert(atom);
    161158  DeleteAtom(atom);
    162159  atoms.erase(id);
     
    170167  if(!target){
    171168    target = atoms[oldId];
    172     ASSERT(target,"Atom with that ID not found");
     169    assert(target && "Atom with that ID not found");
    173170    return target->changeId(newId);
    174171  }
     
    279276
    280277World::World() :
    281     Observable("World"),
    282278    periode(new periodentafel),
    283279    configuration(new config),
Note: See TracChangeset for help on using the changeset viewer.