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