Changes in src/molecule.hpp [a3fded:274d45]
- File:
-
- 1 edited
-
src/molecule.hpp (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/molecule.hpp
ra3fded r274d45 81 81 }; 82 82 83 #define MaxThermostats 6 //!< maximum number of thermostat entries in Ions#ThermostatNames and Ions#ThermostatImplemented 84 enum thermostats { None, Woodcock, Gaussian, Langevin, Berendsen, NoseHoover }; //!< Thermostat names for output 85 86 83 87 /** The complete molecule. 84 88 * Class incorporates number of types … … 89 93 90 94 public: 91 typedef std::set<atom*> atomSet; 95 typedef std::list<atom*> atomSet; 96 typedef std::set<atomId_t> atomIdSet; 92 97 typedef ObservedIterator<atomSet> iterator; 93 98 typedef atomSet::const_iterator const_iterator; … … 117 122 Cacheable<int> AtomCount; 118 123 moleculeId_t id; 119 atomSet atoms; //<!set of atoms 124 atomSet atoms; //<!list of atoms 125 atomIdSet atomIds; //<!set of atomic ids to check uniqueness of atoms 120 126 protected: 121 127 //void CountAtoms(); … … 149 155 size_t size() const; 150 156 const_iterator erase( const_iterator loc ); 151 const_iterator erase( atom * &key );152 const_iterator find ( atom * &key ) const;157 const_iterator erase( atom * key ); 158 const_iterator find ( atom * key ) const; 153 159 pair<iterator,bool> insert ( atom * const key ); 160 bool containsAtom(atom* key); 154 161 155 162
Note:
See TracChangeset
for help on using the changeset viewer.
