Changes in src/World.hpp [24a5e0:d2dbac0]
- File:
-
- 1 edited
-
src/World.hpp (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/World.hpp
r24a5e0 rd2dbac0 16 16 #include <boost/shared_ptr.hpp> 17 17 18 #include "defs.hpp" 18 19 19 #include "Patterns/Observer.hpp" 20 20 #include "Patterns/Cacheable.hpp" … … 40 40 friend class ManipulateAtomsProcess; 41 41 template<typename> friend class AtomsCalculation; 42 43 typedef std::map<int,atom*> AtomSet; 44 typedef std::map<int,molecule*> MoleculeSet; 42 45 public: 43 typedef std::map<atomId_t,atom*> AtomSet;44 typedef std::map<moleculeId_t,molecule*> MoleculeSet;45 46 46 47 /***** getter and setter *****/ … … 89 90 molecule *createMolecule(); 90 91 91 void destroyMolecule(molecule*);92 void destroyMolecule(moleculeId_t);93 94 92 /** 95 93 * Create a new atom. This method should be used whenever any atom is needed. Assigns a unique ID and stores … … 114 112 * atom directly since this will leave the pointer inside the world. 115 113 */ 116 void destroyAtom( atomId_t);114 void destroyAtom(int); 117 115 118 116 /** … … 142 140 protected: 143 141 void advanceState(); 142 World* world; 144 143 AtomSet::iterator state; 145 144 boost::shared_ptr<AtomDescriptor_impl> descr; 146 145 int index; 147 148 World* world;149 146 }; 150 147 … … 169 166 periodentafel *periode; 170 167 AtomSet atoms; 171 atomId_t currAtomId; //!< stores the next available Id for atoms168 int currAtomId; //!< stores the next available Id for atoms 172 169 MoleculeSet molecules; 173 moleculeId_t currMoleculeId;170 int currMoleculeId; 174 171 175 172
Note:
See TracChangeset
for help on using the changeset viewer.
