Action_Thermostats
Add_AtomRandomPerturbation
Add_RotateAroundBondAction
Add_SelectAtomByNameAction
Adding_Graph_to_ChangeBondActions
Adding_MD_integration_tests
Adding_StructOpt_integration_tests
AutomationFragmentation_failures
Candidate_v1.6.1
ChangeBugEmailaddress
ChangingTestPorts
ChemicalSpaceEvaluator
Docu_Python_wait
EmpiricalPotential_contain_HomologyGraph_documentation
Enhance_userguide
Enhanced_StructuralOptimization
Enhanced_StructuralOptimization_continued
Example_ManyWaysToTranslateAtom
Exclude_Hydrogens_annealWithBondGraph
Fix_ChronosMutex
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_IntegrationTest
JobMarket_RobustOnKillsSegFaults
JobMarket_StableWorkerPool
PythonUI_with_named_parameters
QtGui_reactivate_TimeChanged_changes
Recreated_GuiChecks
RotateToPrincipalAxisSystem_UndoRedo
StoppableMakroAction
TremoloParser_IncreasedPrecision
TremoloParser_MultipleTimesteps
Ubuntu_1604_changes
Last change
on this file since 3aa204 was f01769, checked in by Frederik Heber <heber@…>, 10 years ago |
Replaced World::getAtom() wherever possible by const version.
- some AtomSet member functions now have const atom ptr instead of atom ptr.
- molecule can return const and non-const AtomSet.
- added FromIdToConstAtom to allow iterate through atoms in molecule (which
are stored by id, not by ptr) in const fashion.
- in molecule::isInMolecule() is now const, ::CopyMolecule..() is non-const
(because copying involves father atom who is stored non-const).
|
-
Property mode
set to
100644
|
File size:
1.2 KB
|
Rev | Line | |
---|
[2d4334] | 1 | /*
|
---|
| 2 | * BuildInducedSubgraph.hpp
|
---|
| 3 | *
|
---|
| 4 | * Created on: Mar 3, 2011
|
---|
| 5 | * Author: heber
|
---|
| 6 | */
|
---|
| 7 |
|
---|
| 8 | #ifndef BUILDINDUCEDSUBGRAPH_HPP_
|
---|
| 9 | #define BUILDINDUCEDSUBGRAPH_HPP_
|
---|
| 10 |
|
---|
| 11 | // include config.h
|
---|
| 12 | #ifdef HAVE_CONFIG_H
|
---|
| 13 | #include <config.h>
|
---|
| 14 | #endif
|
---|
| 15 |
|
---|
| 16 | #include <map>
|
---|
| 17 |
|
---|
| 18 | class atom;
|
---|
| 19 | class molecule;
|
---|
| 20 |
|
---|
| 21 | class BuildInducedSubgraph
|
---|
| 22 | {
|
---|
| 23 | public:
|
---|
[f01769] | 24 | BuildInducedSubgraph(molecule * const _Son, molecule * const _Father);
|
---|
[2d4334] | 25 | ~BuildInducedSubgraph();
|
---|
| 26 |
|
---|
| 27 | /** Adds bond structure to this molecule from \a Father molecule.
|
---|
| 28 | * This basically causes this molecule to become an induced subgraph of the \a Father, i.e. for every bond in Father
|
---|
| 29 | * with end points present in this molecule, bond is created in this molecule.
|
---|
| 30 | * Special care was taken to ensure that this is of complexity O(N), where N is the \a Father's molecule::AtomCount.
|
---|
| 31 | * \param *Father father molecule
|
---|
| 32 | * \return true - is induced subgraph, false - there are atoms with fathers not in \a Father
|
---|
| 33 | * \todo not checked, not fully working probably
|
---|
| 34 | */
|
---|
| 35 | bool operator()();
|
---|
| 36 |
|
---|
| 37 |
|
---|
| 38 | private:
|
---|
| 39 | std::map<atom *, atom*> ParentList;
|
---|
| 40 | molecule * const Son;
|
---|
[f01769] | 41 | molecule * const Father;
|
---|
[2d4334] | 42 |
|
---|
| 43 | void FillParentList();
|
---|
| 44 | bool CreateBondsFromParent();
|
---|
| 45 | };
|
---|
| 46 |
|
---|
| 47 | #endif /* BUILDINDUCEDSUBGRAPH_HPP_ */
|
---|
Note:
See
TracBrowser
for help on using the repository browser.