Changes in src/molecule.hpp [c27778:f17e1c]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/molecule.hpp
rc27778 rf17e1c 7 7 #define MOLECULES_HPP_ 8 8 9 using namespace std;10 11 9 /*********************************************** includes ***********************************/ 12 10 13 // GSL headers 14 #include <gsl/gsl_eigen.h> 15 #include <gsl/gsl_heapsort.h> 16 #include <gsl/gsl_linalg.h> 17 #include <gsl/gsl_matrix.h> 18 #include <gsl/gsl_multimin.h> 19 #include <gsl/gsl_vector.h> 20 #include <gsl/gsl_randist.h> 11 #ifdef HAVE_CONFIG_H 12 #include <config.h> 13 #endif 21 14 22 15 //// STL headers … … 31 24 #include "types.hpp" 32 25 #include "graph.hpp" 33 #include "stackclass.hpp"34 26 #include "tesselation.hpp" 35 27 #include "Patterns/Observer.hpp" 36 28 #include "Patterns/ObservedIterator.hpp" 37 29 #include "Patterns/Cacheable.hpp" 30 #include "Formula.hpp" 38 31 39 32 #include "Descriptors/MoleculeDescriptor_impl.hpp" … … 53 46 class periodentafel; 54 47 class Vector; 48 class Shape; 49 template <class> class StackClass; 55 50 56 51 /******************************** Some definitions for easier reading **********************************/ … … 103 98 //int AtomCount; //!< number of atoms, brought up-to-date by CountAtoms() 104 99 int BondCount; //!< number of atoms, brought up-to-date by CountBonds() 105 int ElementCount; //!< how many unique elements are therein106 int ElementsInMolecule[MAX_ELEMENTS]; //!< list whether element (sorted by atomic number) is alread present or not107 100 mutable int NoNonHydrogen; //!< number of non-hydrogen atoms in molecule 108 101 mutable int NoNonBonds; //!< number of non-hydrogen bonds in molecule … … 115 108 116 109 private: 117 Cacheable<string>formula;110 Formula formula; 118 111 Cacheable<int> AtomCount; 119 112 moleculeId_t id; … … 141 134 void setId(moleculeId_t); 142 135 void setName(const std::string); 143 const std::string getFormula(); 144 std::string calcFormula(); 136 const Formula &getFormula(); 137 unsigned int getElementCount(); 138 bool hasElement(const element*) const; 139 bool hasElement(atomicNumber_t) const; 140 bool hasElement(const std::string&) const; 141 145 142 146 143 iterator begin(); … … 260 257 261 258 /// Count and change present atoms' coordination. 262 void CountElements();263 259 bool CenterInBox(); 264 260 bool BoundInBox(); … … 316 312 317 313 molecule *CopyMolecule(); 318 molecule* CopyMoleculeFromSubRegion(const Vector offset, const double *parallelepiped) const;314 molecule* CopyMoleculeFromSubRegion(const Shape&) const; 319 315 320 316 /// Fragment molecule by two different approaches:
Note:
See TracChangeset
for help on using the changeset viewer.