Changeset a1a532 for molecuilder/src/World.hpp
- Timestamp:
- Feb 25, 2010, 10:50:54 AM (16 years ago)
- Children:
- 2e6496
- Parents:
- bb89b9
- File:
-
- 1 edited
-
molecuilder/src/World.hpp (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
molecuilder/src/World.hpp
rbb89b9 ra1a532 41 41 template<typename> friend class AtomsCalculation; 42 42 43 typedef std::map<int,atom*> AtomList; 43 typedef std::map<int,atom*> AtomSet; 44 typedef std::map<int,molecule*> MoleculeSet; 44 45 public: 45 46 … … 131 132 AtomIterator operator++(int); // postfix with dummy parameter 132 133 bool operator==(const AtomIterator&); 133 bool operator==(const Atom List::iterator&);134 bool operator==(const AtomSet::iterator&); 134 135 bool operator!=(const AtomIterator&); 135 bool operator!=(const Atom List::iterator&);136 bool operator!=(const AtomSet::iterator&); 136 137 atom* operator*(); 137 138 … … 140 141 void advanceState(); 141 142 World* world; 142 Atom List::iterator state;143 AtomSet::iterator state; 143 144 boost::shared_ptr<AtomDescriptor_impl> descr; 144 145 int index; … … 152 153 153 154 /** 154 * returns an iterator to the end of the Atom List. Due to overloading this iterator155 * returns an iterator to the end of the AtomSet. Due to overloading this iterator 155 156 * can be compared to iterators produced by getAtomIter (see the mis-matching types). 156 157 * Thus it can be used to detect when such an iterator is at the end of the list. 157 158 * used for internal purposes, like AtomProcesses and AtomCalculations. 158 159 */ 159 Atom List::iterator atomEnd();160 AtomSet::iterator atomEnd(); 160 161 161 162 /******* Internal manipulation routines for double callback and Observer mechanism ******/ … … 164 165 private: 165 166 periodentafel *periode; 166 Atom List atoms;167 AtomSet atoms; 167 168 int currAtomId; //!< stores the next available Id for atoms 168 std::set<molecule*> molecules; 169 MoleculeSet molecules; 170 int currMoleculeId; 169 171 170 172
Note:
See TracChangeset
for help on using the changeset viewer.
