| [cee0b57] | 1 | /** \file molecule.hpp
 | 
|---|
| [14de469] | 2 |  *
 | 
|---|
| [69eb71] | 3 |  * Class definitions of atom and molecule, element and periodentafel
 | 
|---|
| [14de469] | 4 |  */
 | 
|---|
 | 5 | 
 | 
|---|
 | 6 | #ifndef MOLECULES_HPP_
 | 
|---|
 | 7 | #define MOLECULES_HPP_
 | 
|---|
 | 8 | 
 | 
|---|
| [f66195] | 9 | /*********************************************** includes ***********************************/
 | 
|---|
 | 10 | 
 | 
|---|
| [962d8d] | 11 | #ifdef HAVE_CONFIG_H
 | 
|---|
 | 12 | #include <config.h>
 | 
|---|
 | 13 | #endif
 | 
|---|
 | 14 | 
 | 
|---|
| [edb93c] | 15 | //// STL headers
 | 
|---|
| [14de469] | 16 | #include <map>
 | 
|---|
 | 17 | #include <set>
 | 
|---|
| [a564be] | 18 | #include <stack>
 | 
|---|
| [14de469] | 19 | #include <deque>
 | 
|---|
| [d7e30c] | 20 | #include <list>
 | 
|---|
| [5e0d1f] | 21 | #include <vector>
 | 
|---|
| [14de469] | 22 | 
 | 
|---|
| [520c8b] | 23 | #include <string>
 | 
|---|
 | 24 | 
 | 
|---|
| [8e1f901] | 25 | #include "AtomIdSet.hpp"
 | 
|---|
| [6f0841] | 26 | #include "Atom/AtomSet.hpp"
 | 
|---|
| [ad011c] | 27 | #include "CodePatterns/Cacheable.hpp"
 | 
|---|
| [02ce36] | 28 | #include "CodePatterns/Observer/Observable.hpp"
 | 
|---|
| [30c753] | 29 | #include "Descriptors/AtomIdDescriptor.hpp"
 | 
|---|
| [07a47e] | 30 | #include "Fragmentation/HydrogenSaturation_enum.hpp"
 | 
|---|
| [389cc8] | 31 | #include "Formula.hpp"
 | 
|---|
| [30c753] | 32 | #include "Helpers/defs.hpp"
 | 
|---|
| [560bbe] | 33 | #include "IdPool_policy.hpp"
 | 
|---|
 | 34 | #include "IdPool.hpp"
 | 
|---|
| [c67ff9] | 35 | #include "Shapes/Shape.hpp"
 | 
|---|
| [30c753] | 36 | #include "types.hpp"
 | 
|---|
| [14de469] | 37 | 
 | 
|---|
| [f66195] | 38 | /****************************************** forward declarations *****************************/
 | 
|---|
 | 39 | 
 | 
|---|
 | 40 | class atom;
 | 
|---|
 | 41 | class bond;
 | 
|---|
| [b70721] | 42 | class BondedParticle;
 | 
|---|
 | 43 | class BondGraph;
 | 
|---|
| [49c059] | 44 | class DepthFirstSearchAnalysis;
 | 
|---|
| [f66195] | 45 | class element;
 | 
|---|
 | 46 | class ForceMatrix;
 | 
|---|
| [dadc74] | 47 | class Graph;
 | 
|---|
| [6bd7e0] | 48 | class LinkedCell_deprecated;
 | 
|---|
| [6d551c] | 49 | class ListOfLocalAtoms_t;
 | 
|---|
| [14de469] | 50 | class molecule;
 | 
|---|
| [2319ed] | 51 | class MoleculeLeafClass;
 | 
|---|
| [14de469] | 52 | class MoleculeListClass;
 | 
|---|
| [c67ff9] | 53 | class MoleculeUnittest;
 | 
|---|
| [1f91f4] | 54 | class RealSpaceMatrix;
 | 
|---|
| [f66195] | 55 | class Vector;
 | 
|---|
| [14de469] | 56 | 
 | 
|---|
 | 57 | /************************************* Class definitions ****************************************/
 | 
|---|
 | 58 | 
 | 
|---|
| [a7aebd] | 59 | /** External function to remove all atoms since this will also delete the molecule
 | 
|---|
 | 60 |  *
 | 
|---|
 | 61 |  * \param _mol ref pointer to molecule to destroy
 | 
|---|
 | 62 |  */
 | 
|---|
 | 63 | void removeAtomsinMolecule(molecule *&_mol);
 | 
|---|
 | 64 | 
 | 
|---|
| [14de469] | 65 | /** The complete molecule.
 | 
|---|
 | 66 |  * Class incorporates number of types
 | 
|---|
 | 67 |  */
 | 
|---|
| [34c43a] | 68 | class molecule : public Observable
 | 
|---|
| [e4afb4] | 69 | {
 | 
|---|
| [c67ff9] | 70 |   //!> grant unit test access
 | 
|---|
 | 71 |   friend class MoleculeUnittest;
 | 
|---|
 | 72 |   //!> function may access cstor
 | 
|---|
| [cbc5fb] | 73 |   friend molecule *NewMolecule();
 | 
|---|
| [c67ff9] | 74 |   //!> function may access dstor
 | 
|---|
| [cbc5fb] | 75 |   friend void DeleteMolecule(molecule *);
 | 
|---|
| [bd58fb] | 76 | 
 | 
|---|
| [e4afb4] | 77 | public:
 | 
|---|
| [8e1f901] | 78 |   typedef AtomIdSet::atomIdSet atomIdSet;
 | 
|---|
 | 79 |   typedef AtomIdSet::iterator iterator;
 | 
|---|
 | 80 |   typedef AtomIdSet::const_iterator const_iterator;
 | 
|---|
| [e4afb4] | 81 | 
 | 
|---|
 | 82 |   int MDSteps; //!< The number of MD steps in Trajectories
 | 
|---|
 | 83 |   mutable int NoNonBonds; //!< number of non-hydrogen bonds in molecule
 | 
|---|
 | 84 |   mutable int NoCyclicBonds; //!< number of cyclic bonds in molecule, by DepthFirstSearchAnalysis()
 | 
|---|
 | 85 |   bool ActiveFlag; //!< in a MoleculeListClass used to discern active from inactive molecules
 | 
|---|
 | 86 |   int IndexNr; //!< index of molecule in a MoleculeListClass
 | 
|---|
 | 87 |   char name[MAXSTRINGSIZE]; //!< arbitrary name
 | 
|---|
 | 88 | 
 | 
|---|
 | 89 | private:
 | 
|---|
 | 90 |   Formula formula;
 | 
|---|
| [e791dc] | 91 |   Cacheable<size_t> NoNonHydrogen; //!< number of non-hydrogen atoms in molecule
 | 
|---|
| [458c31] | 92 |   Cacheable<int> BondCount; //!< number of atoms, brought up-to-date by doCountBonds()
 | 
|---|
| [e4afb4] | 93 |   moleculeId_t id;
 | 
|---|
| [8e1f901] | 94 |   AtomIdSet atomIds; //<!set of atomic ids to check uniqueness of atoms
 | 
|---|
| [560bbe] | 95 |   IdPool<atomId_t, uniqueId> atomIdPool;  //!< pool of internal ids such that way may guarantee uniqueness
 | 
|---|
| [c6ab91] | 96 |   typedef std::map<atomId_t,atom *> LocalToGlobalId_t;
 | 
|---|
 | 97 |   LocalToGlobalId_t LocalToGlobalId; //!< internal map to ease FindAtom
 | 
|---|
| [560bbe] | 98 | 
 | 
|---|
| [e4afb4] | 99 | protected:
 | 
|---|
| [ac9b56] | 100 | 
 | 
|---|
| [4d2b33] | 101 |   molecule();
 | 
|---|
| [e4afb4] | 102 |   virtual ~molecule();
 | 
|---|
| [042f82] | 103 | 
 | 
|---|
| [6a3c83] | 104 | public:
 | 
|---|
 | 105 | 
 | 
|---|
 | 106 |   /******* Notifications *******/
 | 
|---|
 | 107 | 
 | 
|---|
 | 108 |   //!> enumeration of present notification types: only insertion/removal of atoms or molecules
 | 
|---|
 | 109 |   enum NotificationType {
 | 
|---|
 | 110 |     AtomInserted,
 | 
|---|
 | 111 |     AtomRemoved,
 | 
|---|
 | 112 |     AtomNrChanged,
 | 
|---|
| [c32d21] | 113 |     AtomMoved,
 | 
|---|
| [6b6959] | 114 |     FormulaChanged,
 | 
|---|
| [6a3c83] | 115 |     MoleculeNameChanged,
 | 
|---|
| [f54524] | 116 |     IndexChanged,
 | 
|---|
| [24edfe] | 117 |     AboutToBeRemoved,
 | 
|---|
| [6a3c83] | 118 |     NotificationType_MAX
 | 
|---|
 | 119 |   };
 | 
|---|
 | 120 | 
 | 
|---|
| [8c001a] | 121 |   //>! access to last changed element (atom)
 | 
|---|
 | 122 |   const atom* lastChanged() const
 | 
|---|
 | 123 |   { return _lastchangedatom; }
 | 
|---|
| [fb95a5] | 124 |   const atomId_t lastChangedAtomId() const
 | 
|---|
 | 125 |   { return _lastchangedatomid; }
 | 
|---|
| [8c001a] | 126 | 
 | 
|---|
| [cbc5fb] | 127 | public:
 | 
|---|
| [520c8b] | 128 |   //getter and setter
 | 
|---|
| [73a857] | 129 |   const std::string getName() const;
 | 
|---|
| [ea7176] | 130 |   int getAtomCount() const;
 | 
|---|
| [e791dc] | 131 |   size_t doCountNoNonHydrogen() const;
 | 
|---|
 | 132 |   size_t getNoNonHydrogen() const;
 | 
|---|
| [458c31] | 133 |   int getBondCount() const;
 | 
|---|
 | 134 |   int doCountBonds() const;
 | 
|---|
| [73a857] | 135 |   moleculeId_t getId() const;
 | 
|---|
| [cbc5fb] | 136 |   void setId(moleculeId_t);
 | 
|---|
| [520c8b] | 137 |   void setName(const std::string);
 | 
|---|
| [73a857] | 138 |   const Formula &getFormula() const;
 | 
|---|
 | 139 |   unsigned int getElementCount() const;
 | 
|---|
| [389cc8] | 140 |   bool hasElement(const element*) const;
 | 
|---|
 | 141 |   bool hasElement(atomicNumber_t) const;
 | 
|---|
 | 142 |   bool hasElement(const std::string&) const;
 | 
|---|
 | 143 | 
 | 
|---|
| [a7a087] | 144 |   virtual bool changeId(atomId_t newId);
 | 
|---|
| [520c8b] | 145 | 
 | 
|---|
| [f01769] | 146 |   World::AtomComposite getAtomSet();
 | 
|---|
 | 147 |   World::ConstAtomComposite getAtomSet() const;
 | 
|---|
| [3738f0] | 148 | 
 | 
|---|
| [8e1f901] | 149 |   // simply pass on all functions to AtomIdSet
 | 
|---|
 | 150 |   iterator begin() {
 | 
|---|
 | 151 |     return atomIds.begin();
 | 
|---|
 | 152 |   }
 | 
|---|
 | 153 |   const_iterator begin() const
 | 
|---|
 | 154 |   {
 | 
|---|
 | 155 |     return atomIds.begin();
 | 
|---|
 | 156 |   }
 | 
|---|
 | 157 |   iterator end()
 | 
|---|
 | 158 |   {
 | 
|---|
 | 159 |     return atomIds.end();
 | 
|---|
 | 160 |   }
 | 
|---|
 | 161 |   const_iterator end() const
 | 
|---|
 | 162 |   {
 | 
|---|
 | 163 |     return atomIds.end();
 | 
|---|
 | 164 |   }
 | 
|---|
 | 165 |   bool empty() const
 | 
|---|
 | 166 |   {
 | 
|---|
 | 167 |     return atomIds.empty();
 | 
|---|
 | 168 |   }
 | 
|---|
 | 169 |   size_t size() const
 | 
|---|
 | 170 |   {
 | 
|---|
 | 171 |     return atomIds.size();
 | 
|---|
 | 172 |   }
 | 
|---|
 | 173 |   const_iterator find(atom * key) const
 | 
|---|
 | 174 |   {
 | 
|---|
 | 175 |     return atomIds.find(key);
 | 
|---|
 | 176 |   }
 | 
|---|
| [c67ff9] | 177 | 
 | 
|---|
 | 178 |   /** Returns the set of atomic ids contained in this molecule.
 | 
|---|
 | 179 |    *
 | 
|---|
 | 180 |    * @return set of atomic ids
 | 
|---|
 | 181 |    */
 | 
|---|
| [8e1f901] | 182 |   const atomIdSet & getAtomIds() const {
 | 
|---|
 | 183 |     return atomIds.getAtomIds();
 | 
|---|
 | 184 |   }
 | 
|---|
 | 185 | 
 | 
|---|
 | 186 |   std::pair<iterator, bool> insert(atom * const key);
 | 
|---|
 | 187 | 
 | 
|---|
| [6aad6f] | 188 |   /** Predicate whether given \a key is contained in this molecule.
 | 
|---|
 | 189 |    *
 | 
|---|
 | 190 |    * @param key atom to check
 | 
|---|
 | 191 |    * @return true - is contained, false - else
 | 
|---|
 | 192 |    */
 | 
|---|
 | 193 |   bool containsAtom(const atom* key) const
 | 
|---|
 | 194 |   {
 | 
|---|
 | 195 |     return atomIds.contains(key);
 | 
|---|
 | 196 |   }
 | 
|---|
 | 197 | 
 | 
|---|
 | 198 |   /** Predicate whether given \a id is contained in this molecule.
 | 
|---|
 | 199 |    *
 | 
|---|
 | 200 |    * @param id atomic id to check
 | 
|---|
 | 201 |    * @return true - is contained, false - else
 | 
|---|
 | 202 |    */
 | 
|---|
 | 203 |   bool containsAtom(const atomId_t id) const
 | 
|---|
 | 204 |   {
 | 
|---|
 | 205 |     return atomIds.contains(id);
 | 
|---|
 | 206 |   }
 | 
|---|
| [bd58fb] | 207 | 
 | 
|---|
| [2e4105] | 208 | private:
 | 
|---|
 | 209 |   friend void atom::removeFromMolecule();
 | 
|---|
 | 210 |   /** Erase an atom from the list.
 | 
|---|
 | 211 |    * \note This should only be called by atom::removeFromMolecule(),
 | 
|---|
 | 212 |    * otherwise it is not assured that the atom knows about it.
 | 
|---|
 | 213 |    *
 | 
|---|
 | 214 |    * @param loc locator to atom in list
 | 
|---|
 | 215 |    * @return iterator to just after removed item (compliant with standard)
 | 
|---|
 | 216 |    */
 | 
|---|
 | 217 |   const_iterator erase(const_iterator loc);
 | 
|---|
| [8e1f901] | 218 | 
 | 
|---|
| [2e4105] | 219 |   /** Erase an atom from the list.
 | 
|---|
 | 220 |    * \note This should only be called by atom::removeFromMolecule(),
 | 
|---|
 | 221 |    * otherwise it is not assured that the atom knows about it.
 | 
|---|
 | 222 |    *
 | 
|---|
 | 223 |    * @param *key key to atom in list
 | 
|---|
 | 224 |    * @return iterator to just after removed item (compliant with standard)
 | 
|---|
 | 225 |    */
 | 
|---|
 | 226 |   const_iterator erase(atom * key);
 | 
|---|
 | 227 | 
 | 
|---|
| [560bbe] | 228 | private:
 | 
|---|
 | 229 |   friend bool atom::changeNr(int newId);
 | 
|---|
 | 230 |   /**
 | 
|---|
 | 231 |    * used when changing an ParticleInfo::Nr.
 | 
|---|
 | 232 |    * Note that this number is local with this molecule.
 | 
|---|
 | 233 |    * Unless you are calling this method from inside an atom don't fiddle with the third parameter.
 | 
|---|
 | 234 |    *
 | 
|---|
 | 235 |    * @param oldNr old Nr
 | 
|---|
 | 236 |    * @param newNr new Nr to set
 | 
|---|
 | 237 |    * @param *target ref to atom
 | 
|---|
 | 238 |    * @return indicates wether the change could be done or not.
 | 
|---|
 | 239 |    */
 | 
|---|
 | 240 |   bool changeAtomNr(int oldNr, int newNr, atom* target=0);
 | 
|---|
 | 241 | 
 | 
|---|
| [c6ab91] | 242 |   /** Updates the internal lookup fro local to global indices.
 | 
|---|
 | 243 |    *
 | 
|---|
 | 244 |    * \param pointer pointer to atom
 | 
|---|
 | 245 |    */
 | 
|---|
 | 246 |   void InsertLocalToGlobalId(atom * const pointer);
 | 
|---|
 | 247 | 
 | 
|---|
| [560bbe] | 248 |   /** Sets the name of the atom.
 | 
|---|
 | 249 |    *
 | 
|---|
 | 250 |    * The name is set via its element symbol and its internal ParticleInfo::Nr.
 | 
|---|
 | 251 |    *
 | 
|---|
 | 252 |    * @param _atom atom whose name to set
 | 
|---|
 | 253 |    */
 | 
|---|
 | 254 |   void setAtomName(atom *_atom) const;
 | 
|---|
 | 255 | 
 | 
|---|
| [9b3262b] | 256 |   /** Resets the formula for this molecule.
 | 
|---|
 | 257 |    *
 | 
|---|
 | 258 |    * This is required in case an atom changes its element as we then don't
 | 
|---|
 | 259 |    * have any knowledge about its previous element anymore.
 | 
|---|
 | 260 |    */
 | 
|---|
 | 261 |   void resetFormula();
 | 
|---|
 | 262 | 
 | 
|---|
| [2e4105] | 263 | public:
 | 
|---|
 | 264 | 
 | 
|---|
| [c67ff9] | 265 |   /** Function to create a bounding spherical shape for the currently associated atoms.
 | 
|---|
 | 266 |    *
 | 
|---|
| [55feea1] | 267 |    * \param boundary extra boundary of shape around (i.e. distance between outermost atom
 | 
|---|
 | 268 |    *        and the shape's surface)
 | 
|---|
| [c67ff9] | 269 |    */
 | 
|---|
| [aeb694] | 270 |   Shape getBoundingSphere(const double boundary = 0.) const;
 | 
|---|
 | 271 | 
 | 
|---|
 | 272 |   /** Creates the bounding box by adding van der Waals-Spheres around every atom.
 | 
|---|
 | 273 |    *
 | 
|---|
 | 274 |    * \param scale extra scale parameter to enlarge the spheres artifically
 | 
|---|
 | 275 |    */
 | 
|---|
 | 276 |   Shape getBoundingShape(const double scale = 1.) const;
 | 
|---|
| [c67ff9] | 277 | 
 | 
|---|
| [042f82] | 278 |   /// remove atoms from molecule.
 | 
|---|
 | 279 |   bool AddAtom(atom *pointer);
 | 
|---|
 | 280 |   bool RemoveAtom(atom *pointer);
 | 
|---|
 | 281 |   bool UnlinkAtom(atom *pointer);
 | 
|---|
 | 282 |   bool CleanupMolecule();
 | 
|---|
 | 283 | 
 | 
|---|
 | 284 |   /// Add/remove atoms to/from molecule.
 | 
|---|
 | 285 |   atom * AddCopyAtom(atom *pointer);
 | 
|---|
| [06804b] | 286 | //  bool AddHydrogenReplacementAtom(bond::ptr Bond, atom *BottomOrigin, atom *TopOrigin, atom *TopReplacement, bool IsAngstroem);
 | 
|---|
| [88c8ec] | 287 |   bond::ptr AddBond(atom *first, atom *second, int degree = 1);
 | 
|---|
| [e4afb4] | 288 |   bool hasBondStructure() const;
 | 
|---|
| [042f82] | 289 | 
 | 
|---|
 | 290 |   /// Find atoms.
 | 
|---|
 | 291 |   atom * FindAtom(int Nr) const;
 | 
|---|
| [955b91] | 292 |   atom * AskAtom(std::string text);
 | 
|---|
| [f01769] | 293 |   bool isInMolecule(const atom * const _atom) const;
 | 
|---|
| [042f82] | 294 | 
 | 
|---|
 | 295 |   /// Count and change present atoms' coordination.
 | 
|---|
| [e138de] | 296 |   bool CenterInBox();
 | 
|---|
 | 297 |   bool BoundInBox();
 | 
|---|
| [833b15] | 298 |   void CenterEdge();
 | 
|---|
| [e138de] | 299 |   void CenterOrigin();
 | 
|---|
 | 300 |   void CenterPeriodic();
 | 
|---|
| [833b15] | 301 |   void CenterAtVector(const Vector &newcenter);
 | 
|---|
 | 302 |   void Translate(const Vector &x);
 | 
|---|
 | 303 |   void TranslatePeriodically(const Vector &trans);
 | 
|---|
 | 304 |   void Mirror(const Vector &x);
 | 
|---|
 | 305 |   void Align(const Vector &n);
 | 
|---|
 | 306 |   void Scale(const double *factor);
 | 
|---|
| [9291d04] | 307 |   void DeterminePeriodicCenter(Vector ¢er, const enum HydrogenTreatment _treatment = ExcludeHydrogen);
 | 
|---|
| [833b15] | 308 |   const Vector DetermineCenterOfGravity() const;
 | 
|---|
 | 309 |   const Vector DetermineCenterOfAll() const;
 | 
|---|
| [437922] | 310 |   void SetNameFromFilename(const char *filename);
 | 
|---|
| [3c58f8] | 311 |   bool ScanForPeriodicCorrection();
 | 
|---|
| [e138de] | 312 |   double VolumeOfConvexEnvelope(bool IsAngstroem);
 | 
|---|
| [1f91f4] | 313 |   RealSpaceMatrix getInertiaTensor() const;
 | 
|---|
| [5b6a4b7] | 314 |   void RotateToPrincipalAxisSystem(const Vector &Axis);
 | 
|---|
| [042f82] | 315 | 
 | 
|---|
 | 316 |   bool CheckBounds(const Vector *x) const;
 | 
|---|
 | 317 |   void GetAlignvector(struct lsq_params * par) const;
 | 
|---|
 | 318 | 
 | 
|---|
 | 319 |   /// Initialising routines in fragmentation
 | 
|---|
| [e138de] | 320 |   void OutputBondsList() const;
 | 
|---|
| [49c059] | 321 | 
 | 
|---|
| [88c8ec] | 322 |   bond::ptr CopyBond(atom *left, atom *right, bond::ptr CopyBond);
 | 
|---|
| [266237] | 323 | 
 | 
|---|
| [f01769] | 324 |   molecule *CopyMolecule(const Vector &offset = zeroVec);
 | 
|---|
 | 325 |   molecule* CopyMoleculeFromSubRegion(const Shape&);
 | 
|---|
| [042f82] | 326 | 
 | 
|---|
 | 327 |   /// Fragment molecule by two different approaches:
 | 
|---|
| [e4afb4] | 328 |   bool StoreBondsToFile(std::string filename, std::string path = "");
 | 
|---|
| [6d551c] | 329 |   bool CreateFatherLookupTable(ListOfLocalAtoms_t &LookupTable, int count = 0);
 | 
|---|
| [b9772a] | 330 | 
 | 
|---|
| [042f82] | 331 |   // Recognize doubly appearing molecules in a list of them
 | 
|---|
| [f01769] | 332 |   int * GetFatherSonAtomicMap(const molecule * const OtherMolecule);
 | 
|---|
| [6d551c] | 333 |   bool FillBondStructureFromReference(const molecule * const reference, ListOfLocalAtoms_t &ListOfLocalAtoms, bool FreeList = false);
 | 
|---|
 | 334 |   bool FillListOfLocalAtoms(ListOfLocalAtoms_t &ListOfLocalAtoms, const int GlobalAtomCount);
 | 
|---|
| [042f82] | 335 | 
 | 
|---|
 | 336 |   // Output routines.
 | 
|---|
| [e4afb4] | 337 |   bool Output(std::ostream * const output) const;
 | 
|---|
| [e138de] | 338 |   void OutputListOfBonds() const;
 | 
|---|
| [042f82] | 339 | 
 | 
|---|
| [c68025] | 340 |   // Manipulation routines
 | 
|---|
 | 341 |   void flipActiveFlag();
 | 
|---|
 | 342 | 
 | 
|---|
| [c32d21] | 343 |   virtual void update(Observable *publisher);
 | 
|---|
 | 344 |   virtual void recieveNotification(Observable *publisher, Notification_ptr notification);
 | 
|---|
 | 345 |   virtual void subjectKilled(Observable *publisher);
 | 
|---|
 | 346 | 
 | 
|---|
| [e4afb4] | 347 | private:
 | 
|---|
| [fb95a5] | 348 |   atom* _lastchangedatom;
 | 
|---|
 | 349 |   atomId_t _lastchangedatomid;
 | 
|---|
| [8c001a] | 350 | 
 | 
|---|
| [e4afb4] | 351 |   int last_atom; //!< number given to last atom
 | 
|---|
| [14de469] | 352 | };
 | 
|---|
 | 353 | 
 | 
|---|
| [cbc5fb] | 354 | molecule *NewMolecule();
 | 
|---|
 | 355 | void DeleteMolecule(molecule* mol);
 | 
|---|
 | 356 | 
 | 
|---|
| [14de469] | 357 | 
 | 
|---|
 | 358 | 
 | 
|---|
 | 359 | #endif /*MOLECULES_HPP_*/
 | 
|---|
 | 360 | 
 | 
|---|