Changeset fa649a for src/molecule.hpp


Ignore:
Timestamp:
Nov 2, 2009, 12:50:57 PM (16 years ago)
Author:
Frederik Heber <heber@…>
Branches:
Action_Thermostats, Add_AtomRandomPerturbation, Add_FitFragmentPartialChargesAction, Add_RotateAroundBondAction, Add_SelectAtomByNameAction, Added_ParseSaveFragmentResults, AddingActions_SaveParseParticleParameters, Adding_Graph_to_ChangeBondActions, Adding_MD_integration_tests, Adding_ParticleName_to_Atom, Adding_StructOpt_integration_tests, AtomFragments, Automaking_mpqc_open, AutomationFragmentation_failures, Candidate_v1.5.4, Candidate_v1.6.0, Candidate_v1.6.1, Candidate_v1.7.0, Candidate_v1.7.1, ChangeBugEmailaddress, ChangingTestPorts, ChemicalSpaceEvaluator, CombiningParticlePotentialParsing, 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_BoundInBox_CenterInBox_MoleculeActions, Fix_ChargeSampling_PBC, Fix_ChronosMutex, Fix_FitPartialCharges, Fix_FitPotential_needs_atomicnumbers, Fix_ForceAnnealing, Fix_IndependentFragmentGrids, Fix_ParseParticles, Fix_ParseParticles_split_forward_backward_Actions, Fix_PopActions, Fix_QtFragmentList_sorted_selection, Fix_Restrictedkeyset_FragmentMolecule, Fix_StatusMsg, Fix_StepWorldTime_single_argument, Fix_Verbose_Codepatterns, Fix_fitting_potentials, Fixes, ForceAnnealing_goodresults, ForceAnnealing_oldresults, ForceAnnealing_tocheck, ForceAnnealing_with_BondGraph, ForceAnnealing_with_BondGraph_continued, ForceAnnealing_with_BondGraph_continued_betteresults, ForceAnnealing_with_BondGraph_contraction-expansion, FragmentAction_writes_AtomFragments, FragmentMolecule_checks_bonddegrees, GeometryObjects, Gui_Fixes, Gui_displays_atomic_force_velocity, ImplicitCharges, IndependentFragmentGrids, IndependentFragmentGrids_IndividualZeroInstances, IndependentFragmentGrids_IntegrationTest, IndependentFragmentGrids_Sole_NN_Calculation, JobMarket_RobustOnKillsSegFaults, JobMarket_StableWorkerPool, JobMarket_unresolvable_hostname_fix, MoreRobust_FragmentAutomation, ODR_violation_mpqc_open, PartialCharges_OrthogonalSummation, PdbParser_setsAtomName, PythonUI_with_named_parameters, QtGui_reactivate_TimeChanged_changes, Recreated_GuiChecks, Rewrite_FitPartialCharges, RotateToPrincipalAxisSystem_UndoRedo, SaturateAtoms_findBestMatching, SaturateAtoms_singleDegree, StoppableMakroAction, Subpackage_CodePatterns, Subpackage_JobMarket, Subpackage_LinearAlgebra, Subpackage_levmar, Subpackage_mpqc_open, Subpackage_vmg, Switchable_LogView, ThirdParty_MPQC_rebuilt_buildsystem, TrajectoryDependenant_MaxOrder, TremoloParser_IncreasedPrecision, TremoloParser_MultipleTimesteps, TremoloParser_setsAtomName, Ubuntu_1604_changes, stable
Children:
7218f8
Parents:
34e0013
Message:

Small changes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/molecule.hpp

    r34e0013 rfa649a  
    8383  public:
    8484    double cell_size[6];//!< cell size
    85     periodentafel *elemente; //!< periodic table with each element
     85    const periodentafel * const elemente; //!< periodic table with each element
    8686    atom *start;        //!< start of atom list
    8787    atom *end;          //!< end of atom list
     
    9393    int ElementCount;       //!< how many unique elements are therein
    9494    int ElementsInMolecule[MAX_ELEMENTS]; //!< list whether element (sorted by atomic number) is alread present or not
    95     int NoNonHydrogen;  //!< number of non-hydrogen atoms in molecule
    96     int NoNonBonds;     //!< number of non-hydrogen bonds in molecule
    97     int NoCyclicBonds;  //!< number of cyclic bonds in molecule, by DepthFirstSearchAnalysis()
     95    mutable int NoNonHydrogen;  //!< number of non-hydrogen atoms in molecule
     96    mutable int NoNonBonds;     //!< number of non-hydrogen bonds in molecule
     97    mutable int NoCyclicBonds;  //!< number of cyclic bonds in molecule, by DepthFirstSearchAnalysis()
    9898    double BondDistance;  //!< typical bond distance used in CreateAdjacencyList() and furtheron
    9999    bool ActiveFlag;    //!< in a MoleculeListClass used to discern active from inactive molecules
     
    102102    int IndexNr;        //!< index of molecule in a MoleculeListClass
    103103
    104   molecule(periodentafel *teil);
     104  molecule(const periodentafel * const teil);
    105105  virtual ~molecule();
    106106
     
    241241  void CreateAdjacencyListFromDbondFile(ofstream *out, ifstream *output);
    242242  void CreateAdjacencyList(ofstream *out, double bonddistance, bool IsAngstroem, void (BondGraph::*f)(BondedParticle * const , BondedParticle * const , double &, double &, bool), BondGraph *BG = NULL);
    243   int CorrectBondDegree(ofstream *out);
    244   void OutputBondsList(ofstream *out);
    245   void CyclicBondAnalysis();
    246   void OutputGraphInfoPerAtom(ofstream *out);
    247   void OutputGraphInfoPerBond(ofstream *out);
     243  int CorrectBondDegree(ofstream *out) const;
     244  void OutputBondsList(ofstream *out) const;
     245  void CyclicBondAnalysis() const;
     246  void OutputGraphInfoPerAtom(ofstream *out) const;
     247  void OutputGraphInfoPerBond(ofstream *out) const;
    248248
    249249
    250250  // Graph analysis
    251   MoleculeLeafClass * DepthFirstSearchAnalysis(ofstream *out, class StackClass<bond *> *&BackEdgeStack);
    252   void CyclicStructureAnalysis(ofstream *out, class StackClass<bond *> *BackEdgeStack, int *&MinimumRingSize);
    253   bool PickLocalBackEdges(ofstream *out, atom **ListOfLocalAtoms, class StackClass<bond *> *&ReferenceStack, class StackClass<bond *> *&LocalStack);
    254   bond * FindNextUnused(atom *vertex);
    255   void SetNextComponentNumber(atom *vertex, int nr);
    256   void InitComponentNumbers();
    257   void ResetAllBondsToUnused();
     251  MoleculeLeafClass * DepthFirstSearchAnalysis(ofstream *out, class StackClass<bond *> *&BackEdgeStack) const;
     252  void CyclicStructureAnalysis(ofstream *out, class StackClass<bond *> *BackEdgeStack, int *&MinimumRingSize) const;
     253  bool PickLocalBackEdges(ofstream *out, atom **ListOfLocalAtoms, class StackClass<bond *> *&ReferenceStack, class StackClass<bond *> *&LocalStack) const;
     254  bond * FindNextUnused(atom *vertex) const;
     255  void SetNextComponentNumber(atom *vertex, int nr) const;
     256  void ResetAllBondsToUnused() const;
    258257  int CountCyclicBonds(ofstream *out);
    259258  bool CheckForConnectedSubgraph(ofstream *out, KeySet *Fragment);
    260   string GetColor(enum Shading color);
     259  string GetColor(enum Shading color) const;
    261260  bond * CopyBond(atom *left, atom *right, bond *CopyBond);
    262261
     
    351350
    352351  bool AddLeaf(molecule *ptr, MoleculeLeafClass *Previous);
    353   bool FillBondStructureFromReference(ofstream *out, molecule *reference, int &FragmentCounter, atom ***&ListOfLocalAtoms, bool FreeList = false);
     352  bool FillBondStructureFromReference(ofstream *out, const molecule * const reference, int &FragmentCounter, atom ***&ListOfLocalAtoms, bool FreeList = false);
    354353  bool FillRootStackForSubgraphs(ofstream *out, KeyStack *&RootStack, bool *AtomMask, int &FragmentCounter);
    355354  bool AssignKeySetsToFragment(ofstream *out, molecule *reference, Graph *KeySetList, atom ***&ListOfLocalAtoms, Graph **&FragmentList, int &FragmentCounter, bool FreeList = false);
Note: See TracChangeset for help on using the changeset viewer.