Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/molecule.hpp

    ra3fded r274d45  
    8181};
    8282
     83#define MaxThermostats 6      //!< maximum number of thermostat entries in Ions#ThermostatNames and Ions#ThermostatImplemented
     84enum thermostats { None, Woodcock, Gaussian, Langevin, Berendsen, NoseHoover };   //!< Thermostat names for output
     85
     86
    8387/** The complete molecule.
    8488 * Class incorporates number of types
     
    8993
    9094  public:
    91     typedef std::set<atom*> atomSet;
     95    typedef std::list<atom*> atomSet;
     96    typedef std::set<atomId_t> atomIdSet;
    9297    typedef ObservedIterator<atomSet> iterator;
    9398    typedef atomSet::const_iterator const_iterator;
     
    117122    Cacheable<int>    AtomCount;
    118123    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
    120126  protected:
    121127    //void CountAtoms();
     
    149155  size_t size() const;
    150156  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;
    153159  pair<iterator,bool> insert ( atom * const key );
     160  bool containsAtom(atom* key);
    154161
    155162
Note: See TracChangeset for help on using the changeset viewer.