- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Fragmentation/Exporters/SaturatedFragment.hpp
r98a293b rc39675 18 18 #include <string> 19 19 20 #include "Atom/atom_bondedparticleinfo.hpp"21 20 #include "Bond/bond.hpp" 22 21 #include "Fragmentation/KeySet.hpp" 23 22 #include "Fragmentation/HydrogenSaturation_enum.hpp" 24 23 #include "Parser/FormatParserStorage.hpp" 25 26 #include "LinearAlgebra/Vector.hpp"27 24 28 25 class atom; … … 45 42 typedef std::set<KeySet> KeySetsInUse_t; 46 43 47 //!> List of points giving saturation positions for a single bond neighbor48 typedef std::list<Vector> SaturationsPositions_t;49 //!> map for one atom, containing the saturation points for all its neighbors50 typedef std::map<int, SaturationsPositions_t> SaturationsPositionsPerNeighbor_t;51 //!> containing the saturation points over all desired atoms required52 typedef std::map<int, SaturationsPositionsPerNeighbor_t> GlobalSaturationPositions_t;53 54 44 /** Constructor of SaturatedFragment requires \a set which we are tightly 55 45 * associated. … … 58 48 * \param _container container to add KeySet as in-use 59 49 * \param _hydrogens pool with hydrogens for saturation 60 * \param _globalsaturationpositions saturation positions to be used61 50 */ 62 51 SaturatedFragment( … … 65 54 HydrogenPool &_hydrogens, 66 55 const enum HydrogenTreatment _treatment, 67 const enum HydrogenSaturation saturation, 68 const GlobalSaturationPositions_t &_globalsaturationpositions); 56 const enum HydrogenSaturation saturation); 69 57 70 58 /** Destructor of class SaturatedFragment. … … 112 100 /** Helper function to lease and bring in place saturation hydrogens. 113 101 * 114 * Here, we use local information to calculate saturation positions.115 *116 102 */ 117 103 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 fully122 * stored in \a _globalsaturationpositions.123 *124 * \param_globalsaturationpositions125 */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 saturate131 * \param _cutbonds list of cut bonds for \a _atom132 * \return true - bonds saturated, false - something went wrong133 */134 bool saturateAtom(atom * const _atom, const BondList &_cutbonds);135 104 136 105 /** Helper function to get a hydrogen replacement for a given \a replacement. … … 140 109 */ 141 110 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 _OwnerAtom147 * \param _distance scale factor to the distance (default 1.)148 * \param _father bond partner of \a _OwnerAtom that is replaced149 */150 const atom& setHydrogenReplacement(151 const atom * const _OwnerAtom,152 const Vector &_position,153 const double _distance,154 atom * const _father);155 111 156 112 /** 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.