Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/World.hpp

    rd2dbac0 r24a5e0  
    1616#include <boost/shared_ptr.hpp>
    1717
    18 
     18#include "defs.hpp"
    1919#include "Patterns/Observer.hpp"
    2020#include "Patterns/Cacheable.hpp"
     
    4040friend class ManipulateAtomsProcess;
    4141template<typename> friend class AtomsCalculation;
    42 
    43 typedef std::map<int,atom*> AtomSet;
    44 typedef std::map<int,molecule*> MoleculeSet;
    4542public:
     43  typedef std::map<atomId_t,atom*> AtomSet;
     44  typedef std::map<moleculeId_t,molecule*> MoleculeSet;
    4645
    4746  /***** getter and setter *****/
     
    9089  molecule *createMolecule();
    9190
     91  void destroyMolecule(molecule*);
     92  void destroyMolecule(moleculeId_t);
     93
    9294  /**
    9395   * Create a new atom. This method should be used whenever any atom is needed. Assigns a unique ID and stores
     
    112114   * atom directly since this will leave the pointer inside the world.
    113115   */
    114   void destroyAtom(int);
     116  void destroyAtom(atomId_t);
    115117
    116118  /**
     
    140142  protected:
    141143    void advanceState();
    142     World* world;
    143144    AtomSet::iterator state;
    144145    boost::shared_ptr<AtomDescriptor_impl>  descr;
    145146    int index;
     147
     148    World* world;
    146149  };
    147150
     
    166169  periodentafel *periode;
    167170  AtomSet atoms;
    168   int currAtomId; //!< stores the next available Id for atoms
     171  atomId_t currAtomId; //!< stores the next available Id for atoms
    169172  MoleculeSet molecules;
    170   int currMoleculeId;
     173  moleculeId_t currMoleculeId;
    171174
    172175
Note: See TracChangeset for help on using the changeset viewer.