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