Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/World.hpp

    r24a5e0 rd2dbac0  
    1616#include <boost/shared_ptr.hpp>
    1717
    18 #include "defs.hpp"
     18
    1919#include "Patterns/Observer.hpp"
    2020#include "Patterns/Cacheable.hpp"
     
    4040friend class ManipulateAtomsProcess;
    4141template<typename> friend class AtomsCalculation;
     42
     43typedef std::map<int,atom*> AtomSet;
     44typedef std::map<int,molecule*> MoleculeSet;
    4245public:
    43   typedef std::map<atomId_t,atom*> AtomSet;
    44   typedef std::map<moleculeId_t,molecule*> MoleculeSet;
    4546
    4647  /***** getter and setter *****/
     
    8990  molecule *createMolecule();
    9091
    91   void destroyMolecule(molecule*);
    92   void destroyMolecule(moleculeId_t);
    93 
    9492  /**
    9593   * Create a new atom. This method should be used whenever any atom is needed. Assigns a unique ID and stores
     
    114112   * atom directly since this will leave the pointer inside the world.
    115113   */
    116   void destroyAtom(atomId_t);
     114  void destroyAtom(int);
    117115
    118116  /**
     
    142140  protected:
    143141    void advanceState();
     142    World* world;
    144143    AtomSet::iterator state;
    145144    boost::shared_ptr<AtomDescriptor_impl>  descr;
    146145    int index;
    147 
    148     World* world;
    149146  };
    150147
     
    169166  periodentafel *periode;
    170167  AtomSet atoms;
    171   atomId_t currAtomId; //!< stores the next available Id for atoms
     168  int currAtomId; //!< stores the next available Id for atoms
    172169  MoleculeSet molecules;
    173   moleculeId_t currMoleculeId;
     170  int currMoleculeId;
    174171
    175172
Note: See TracChangeset for help on using the changeset viewer.