- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Fragmentation/Exporters/SaturatedFragment.hpp
rc39675 r98a293b 18 18 #include <string> 19 19 20 #include "Atom/atom_bondedparticleinfo.hpp" 20 21 #include "Bond/bond.hpp" 21 22 #include "Fragmentation/KeySet.hpp" 22 23 #include "Fragmentation/HydrogenSaturation_enum.hpp" 23 24 #include "Parser/FormatParserStorage.hpp" 25 26 #include "LinearAlgebra/Vector.hpp" 24 27 25 28 class atom; … … 42 45 typedef std::set<KeySet> KeySetsInUse_t; 43 46 47 //!> List of points giving saturation positions for a single bond neighbor 48 typedef std::list<Vector> SaturationsPositions_t; 49 //!> map for one atom, containing the saturation points for all its neighbors 50 typedef std::map<int, SaturationsPositions_t> SaturationsPositionsPerNeighbor_t; 51 //!> containing the saturation points over all desired atoms required 52 typedef std::map<int, SaturationsPositionsPerNeighbor_t> GlobalSaturationPositions_t; 53 44 54 /** Constructor of SaturatedFragment requires \a set which we are tightly 45 55 * associated. … … 48 58 * \param _container container to add KeySet as in-use 49 59 * \param _hydrogens pool with hydrogens for saturation 60 * \param _globalsaturationpositions saturation positions to be used 50 61 */ 51 62 SaturatedFragment( … … 54 65 HydrogenPool &_hydrogens, 55 66 const enum HydrogenTreatment _treatment, 56 const enum HydrogenSaturation saturation); 67 const enum HydrogenSaturation saturation, 68 const GlobalSaturationPositions_t &_globalsaturationpositions); 57 69 58 70 /** Destructor of class SaturatedFragment. … … 100 112 /** Helper function to lease and bring in place saturation hydrogens. 101 113 * 114 * Here, we use local information to calculate saturation positions. 115 * 102 116 */ 103 117 void saturate(); 118 119 /** Helper function to lease and bring in place saturation hydrogens. 120 * 121 * Here, saturation positions have to be calculated before and are fully 122 * stored in \a _globalsaturationpositions. 123 * 124 * \param_globalsaturationpositions 125 */ 126 void saturate(const GlobalSaturationPositions_t &_globalsaturationpositions); 127 128 /** Replaces all cut bonds with respect to the given atom by hydrogens. 129 * 130 * \param _atom atom whose cut bonds to saturate 131 * \param _cutbonds list of cut bonds for \a _atom 132 * \return true - bonds saturated, false - something went wrong 133 */ 134 bool saturateAtom(atom * const _atom, const BondList &_cutbonds); 104 135 105 136 /** Helper function to get a hydrogen replacement for a given \a replacement. … … 109 140 */ 110 141 atom * const getHydrogenReplacement(atom * const replacement); 142 143 /** Sets a saturation hydrogen at the given position in place of \a _father. 144 * 145 * \param _OwnerAtom atom "owning" the hydrogen (i.e. the one getting saturated) 146 * \param _position new position relative to \a _OwnerAtom 147 * \param _distance scale factor to the distance (default 1.) 148 * \param _father bond partner of \a _OwnerAtom that is replaced 149 */ 150 const atom& setHydrogenReplacement( 151 const atom * const _OwnerAtom, 152 const Vector &_position, 153 const double _distance, 154 atom * const _father); 111 155 112 156 /** Leases and adds a Hydrogen atom in replacement for the given atom \a *partner in bond with a *origin.
Note:
See TracChangeset
for help on using the changeset viewer.