Changeset 7bfc19 for molecuilder/src/World.hpp
- Timestamp:
- Feb 24, 2010, 4:21:12 PM (16 years ago)
- Children:
- 5bf941
- Parents:
- 01d28a
- git-author:
- Tillmann Crueger <crueger@…> (02/24/10 15:29:12)
- git-committer:
- Tillmann Crueger <crueger@…> (02/24/10 16:21:12)
- File:
-
- 1 edited
-
molecuilder/src/World.hpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
molecuilder/src/World.hpp
r01d28a r7bfc19 58 58 /***** Methods to work with the World *****/ 59 59 molecule *createMolecule(); 60 atom *createAtom(); 61 int registerAtom(atom*); 62 void destroyAtom(atom*); 63 void destroyAtom(int); 60 64 61 65 ManipulateAtomsProcess* manipulateAtoms(boost::function<void(atom*)>,std::string,AtomDescriptor); … … 95 99 periodentafel *periode; 96 100 AtomList atoms; 101 int currAtomId; //!< stores the next available Id for atoms 97 102 std::set<molecule*> molecules; 98 103 … … 120 125 MoleculeListClass *&getMolecules(); 121 126 122 // functions used for the WorldContent template mechanism123 void registerAtom(atom *theAtom);124 void unregisterAtom(atom *theAtom);125 127 private: 126 // this function cleans up anything that cannot be cleaned while the lock is active127 // at a later point all these cleanups have to be moved to the World Class so the deadlock and128 // race condition can both be avoided.129 void destroyLegacy();130 131 128 MoleculeListClass *molecules_deprecated; 132 133 // this is needed to assign unique IDs to atoms... so far134 // IDs are not assigned upon Atom creation, so we cannot query the ID135 // during construction. By using the dummy ID we can make sure all atoms136 // are actually stored in the map and don't overwrite each other.137 int dummyId;138 129 }; 139 130
Note:
See TracChangeset
for help on using the changeset viewer.
