Changeset 323177 for molecuilder/src/World.hpp
- Timestamp:
- Feb 16, 2010, 4:24:07 PM (16 years ago)
- Children:
- 120f8b
- Parents:
- 973c03
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
molecuilder/src/World.hpp
r973c03 r323177 21 21 class atom; 22 22 class AtomDescriptor; 23 class AtomDescriptor_impl; 23 24 24 25 class World : public Observable 25 26 { 26 friend class AtomDescriptor ;27 friend class AtomDescriptor_impl; 27 28 public: 28 29 29 30 /***** getter and setter *****/ 30 31 periodentafel* getPeriode(); 31 atom* getAtom(AtomDescriptor &descriptor);32 std::vector<atom*> getAllAtoms(AtomDescriptor &descriptor);32 atom* getAtom(AtomDescriptor descriptor); 33 std::vector<atom*> getAllAtoms(AtomDescriptor descriptor); 33 34 private: 34 35 periodentafel *periode; … … 63 64 private: 64 65 MoleculeListClass *molecules; 66 67 // this is needed to assign unique IDs to atoms... so far 68 // IDs are not assigned upon Atom creation, so we cannot query the ID 69 // during construction. By using the dummy ID we can make sure all atoms 70 // are actually stored in the map and don't overwrite each other. 71 int dummyId; 65 72 }; 66 73
Note:
See TracChangeset
for help on using the changeset viewer.