Action_Thermostats
        Add_AtomRandomPerturbation
        Add_FitFragmentPartialChargesAction
        Add_RotateAroundBondAction
        Add_SelectAtomByNameAction
        Adding_Graph_to_ChangeBondActions
        Adding_MD_integration_tests
        Adding_StructOpt_integration_tests
        Automaking_mpqc_open
        AutomationFragmentation_failures
        Candidate_v1.5.4
        Candidate_v1.6.0
        Candidate_v1.6.1
        Candidate_v1.7.0
        ChangeBugEmailaddress
        ChangingTestPorts
        ChemicalSpaceEvaluator
        Combining_Subpackages
        Debian_Package_split
        Debian_package_split_molecuildergui_only
        Disabling_MemDebug
        Docu_Python_wait
        EmpiricalPotential_contain_HomologyGraph
        EmpiricalPotential_contain_HomologyGraph_documentation
        Enable_parallel_make_install
        Enhance_userguide
        Enhanced_StructuralOptimization
        Enhanced_StructuralOptimization_continued
        Example_ManyWaysToTranslateAtom
        Exclude_Hydrogens_annealWithBondGraph
        FitPartialCharges_GlobalError
        Fix_ChargeSampling_PBC
        Fix_ChronosMutex
        Fix_FitPartialCharges
        Fix_FitPotential_needs_atomicnumbers
        Fix_ForceAnnealing
        Fix_IndependentFragmentGrids
        Fix_ParseParticles
        Fix_ParseParticles_split_forward_backward_Actions
        Fix_StatusMsg
        Fix_StepWorldTime_single_argument
        Fix_Verbose_Codepatterns
        ForceAnnealing_goodresults
        ForceAnnealing_oldresults
        ForceAnnealing_tocheck
        ForceAnnealing_with_BondGraph
        ForceAnnealing_with_BondGraph_continued
        ForceAnnealing_with_BondGraph_continued_betteresults
        ForceAnnealing_with_BondGraph_contraction-expansion
        GeometryObjects
        Gui_displays_atomic_force_velocity
        IndependentFragmentGrids
        IndependentFragmentGrids_IndividualZeroInstances
        IndependentFragmentGrids_IntegrationTest
        IndependentFragmentGrids_Sole_NN_Calculation
        JobMarket_RobustOnKillsSegFaults
        JobMarket_StableWorkerPool
        JobMarket_unresolvable_hostname_fix
        ODR_violation_mpqc_open
        PartialCharges_OrthogonalSummation
        PythonUI_with_named_parameters
        QtGui_reactivate_TimeChanged_changes
        Recreated_GuiChecks
        RotateToPrincipalAxisSystem_UndoRedo
        SaturateAtoms_findBestMatching
        StoppableMakroAction
        Subpackage_CodePatterns
        Subpackage_JobMarket
        Subpackage_LinearAlgebra
        Subpackage_levmar
        Subpackage_mpqc_open
        Subpackage_vmg
        ThirdParty_MPQC_rebuilt_buildsystem
        TrajectoryDependenant_MaxOrder
        TremoloParser_IncreasedPrecision
        TremoloParser_MultipleTimesteps
        Ubuntu_1604_changes
        stable
      
      
        
          | Last change
 on this file since 3678eb was             9291d04, checked in by Frederik Heber <heber@…>, 13 years ago | 
        
          | 
Split saturation with hydrogen of treatment of hydrogen.
 | 
        
          | 
              
Property                 mode
 set to                 100644 | 
        
          | File size:
            1.2 KB | 
      
      
| Rev | Line |  | 
|---|
| [212c179] | 1 | /* | 
|---|
|  | 2 | * BondsPerShortestPath.hpp | 
|---|
|  | 3 | * | 
|---|
|  | 4 | *  Created on: Oct 18, 2011 | 
|---|
|  | 5 | *      Author: heber | 
|---|
|  | 6 | */ | 
|---|
|  | 7 |  | 
|---|
|  | 8 | #ifndef BONDSPERSHORTESTPATH_HPP_ | 
|---|
|  | 9 | #define BONDSPERSHORTESTPATH_HPP_ | 
|---|
|  | 10 |  | 
|---|
|  | 11 | // include config.h | 
|---|
|  | 12 | #ifdef HAVE_CONFIG_H | 
|---|
|  | 13 | #include <config.h> | 
|---|
|  | 14 | #endif | 
|---|
|  | 15 |  | 
|---|
| [7d82a5] | 16 | #include "Bond/bond.hpp" | 
|---|
| [07a47e] | 17 | #include "Fragmentation/HydrogenSaturation_enum.hpp" | 
|---|
|  | 18 |  | 
|---|
| [212c179] | 19 | #include <list> | 
|---|
|  | 20 | #include <vector> | 
|---|
|  | 21 |  | 
|---|
|  | 22 | class atom; | 
|---|
| [dadc74] | 23 | class KeySet; | 
|---|
| [212c179] | 24 |  | 
|---|
|  | 25 | class BondsPerShortestPath | 
|---|
|  | 26 | { | 
|---|
|  | 27 | public: | 
|---|
|  | 28 | explicit BondsPerShortestPath(int _Order); | 
|---|
|  | 29 | ~BondsPerShortestPath(); | 
|---|
|  | 30 |  | 
|---|
|  | 31 | void InitialiseSPList(); | 
|---|
|  | 32 | void FreeSPList(); | 
|---|
|  | 33 | void SetSPList(atom *_Root); | 
|---|
|  | 34 | void ResetSPList(); | 
|---|
| [9291d04] | 35 | void FillSPListandLabelVertices(int _RootKeyNr, KeySet &RestrictedKeySet, const enum HydrogenTreatment treatment); | 
|---|
| [212c179] | 36 | void OutputSPList(); | 
|---|
|  | 37 | int CountNumbersInBondsList(); | 
|---|
|  | 38 |  | 
|---|
|  | 39 | int getOrder() const; | 
|---|
|  | 40 |  | 
|---|
| [7d82a5] | 41 | typedef std::list<bond::ptr> BondsPerSP; | 
|---|
| [212c179] | 42 | typedef std::vector< BondsPerSP > AllSPBonds; | 
|---|
|  | 43 |  | 
|---|
|  | 44 | int *BondsPerSPCount; | 
|---|
|  | 45 | AllSPBonds BondsPerSPList; | 
|---|
|  | 46 |  | 
|---|
|  | 47 | private: | 
|---|
|  | 48 | //!> bond order (limits BFS exploration and "number of digits" in power set generation | 
|---|
|  | 49 | int Order; | 
|---|
|  | 50 | }; | 
|---|
|  | 51 |  | 
|---|
| [d760bb] | 52 | /** Getter for BondsPerShortestPath::Order. | 
|---|
|  | 53 | * | 
|---|
|  | 54 | * @return returns BondsPerShortestPath::Order | 
|---|
|  | 55 | */ | 
|---|
|  | 56 | #ifdef HAVE_INLINE | 
|---|
|  | 57 | inline | 
|---|
|  | 58 | #endif | 
|---|
|  | 59 | int BondsPerShortestPath::getOrder() const | 
|---|
|  | 60 | { | 
|---|
|  | 61 | return Order; | 
|---|
|  | 62 | } | 
|---|
|  | 63 |  | 
|---|
| [212c179] | 64 |  | 
|---|
|  | 65 | #endif /* BONDSPERSHORTESTPATH_HPP_ */ | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.