Changeset f5fa48 for src/Fragmentation/Exporters/SaturatedFragment.hpp
- Timestamp:
- Aug 20, 2014, 1:06:47 PM (11 years ago)
- Children:
- d635829
- Parents:
- ce0ca4
- git-author:
- Frederik Heber <heber@…> (07/18/14 17:08:09)
- git-committer:
- Frederik Heber <heber@…> (08/20/14 13:06:47)
- File:
- 
      - 1 edited
 
 - 
          
  src/Fragmentation/Exporters/SaturatedFragment.hpp (modified) (5 diffs)
 
Legend:
- Unmodified
- Added
- Removed
- 
      src/Fragmentation/Exporters/SaturatedFragment.hpprce0ca4 rf5fa48 23 23 #include "Parser/FormatParserStorage.hpp" 24 24 25 #include "LinearAlgebra/Vector.hpp" 26 25 27 class atom; 26 28 class HydrogenPool; 27 class Vector;28 29 29 30 /** The SaturatedFragment class acts as a wrapper to a KeySet by adding a list … … 43 44 typedef std::set<KeySet> KeySetsInUse_t; 44 45 46 //!> List of points giving saturation positions for a single bond neighbor 47 typedef std::list<Vector> SaturationsPositions_t; 48 //!> map for one atom, containing the saturation points for all its neighbors 49 typedef std::map<int, SaturationsPositions_t> SaturationsPositionsPerNeighbor_t; 50 //!> containing the saturation points over all desired atoms required 51 typedef std::map<int, SaturationsPositionsPerNeighbor_t> GlobalSaturationPositions_t; 52 45 53 /** Constructor of SaturatedFragment requires \a set which we are tightly 46 54 * associated. … … 49 57 * \param _container container to add KeySet as in-use 50 58 * \param _hydrogens pool with hydrogens for saturation 59 * \param _globalsaturationpositions saturation positions to be used 51 60 */ 52 61 SaturatedFragment( … … 55 64 HydrogenPool &_hydrogens, 56 65 const enum HydrogenTreatment _treatment, 57 const enum HydrogenSaturation saturation); 66 const enum HydrogenSaturation saturation, 67 const GlobalSaturationPositions_t &_globalsaturationpositions); 58 68 59 69 /** Destructor of class SaturatedFragment. … … 101 111 /** Helper function to lease and bring in place saturation hydrogens. 102 112 * 113 * Here, we use local information to calculate saturation positions. 114 * 103 115 */ 104 116 void saturate(); 117 118 /** Helper function to lease and bring in place saturation hydrogens. 119 * 120 * Here, saturation positions have to be calculated before and are fully 121 * stored in \a _globalsaturationpositions. 122 * 123 * \param_globalsaturationpositions 124 */ 125 void saturate(const GlobalSaturationPositions_t &_globalsaturationpositions); 126 127 /** Replaces all cut bonds with respect to the given atom by hydrogens. 128 * 129 * \param _atom atom whose cut bonds to saturate 130 * \param _cutbonds list of cut bonds for \a _atom 131 * \return true - bonds saturated, false - something went wrong 132 */ 133 bool saturateAtom(atom * const _atom, const BondList &_cutbonds); 105 134 106 135 /** Helper function to get a hydrogen replacement for a given \a replacement. 
  Note:
 See   TracChangeset
 for help on using the changeset viewer.
  
