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