Changeset 8d9d38 for molecuilder/src/World.hpp
- Timestamp:
- Feb 25, 2010, 4:43:02 PM (16 years ago)
- Children:
- 3db67e
- Parents:
- 2e6496
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
molecuilder/src/World.hpp
r2e6496 r8d9d38 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; 42 typedef std::map<atomId_t,atom*> AtomSet; 43 typedef std::map<moleculeId_t,molecule*> MoleculeSet; 45 44 public: 46 45 … … 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 /** … … 166 168 periodentafel *periode; 167 169 AtomSet atoms; 168 int currAtomId; //!< stores the next available Id for atoms170 atomId_t currAtomId; //!< stores the next available Id for atoms 169 171 MoleculeSet molecules; 170 int currMoleculeId;172 moleculeId_t currMoleculeId; 171 173 172 174
Note:
See TracChangeset
for help on using the changeset viewer.