Changeset e15ffe
- Timestamp:
- Dec 3, 2012, 9:50:02 AM (12 years ago)
- 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, 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:
- 67db80
- Parents:
- 54a561
- git-author:
- Frederik Heber <heber@…> (10/19/12 06:50:45)
- git-committer:
- Frederik Heber <heber@…> (12/03/12 09:50:02)
- Location:
- src/Fragmentation/Homology
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Fragmentation/Homology/HomologyContainer.cpp
r54a561 re15ffe 39 39 #include "HomologyContainer.hpp" 40 40 41 #include <iostream> 42 41 43 #include "Fragmentation/Graph.hpp" 42 44 45 std::ostream& operator<<(std::ostream &out, const HomologyContainer &homologycontainer) 46 { 47 for(HomologyContainer::container_t::const_iterator iter = homologycontainer.container.begin(); 48 iter != homologycontainer.container.end(); ++iter) { 49 out << "Graph: " << iter->first 50 << ", (Fragment " << iter->second.first 51 << ":" << iter->second.second << ")\n"; 52 } 53 return out; 54 } 55 56 std::ostream& operator<<(std::ostream &out, const Fragment &container) 57 { 58 out << "Dummy fragment"; 59 return out; 60 } 61 -
src/Fragmentation/Homology/HomologyContainer.hpp
r54a561 re15ffe 15 15 #endif 16 16 17 #include <iosfwd> 17 18 #include <map> 18 19 #include <vector> … … 22 23 class Fragment 23 24 { 25 //!> grant access to output operator 26 friend std::ostream& operator<<(std::ostream &out, const Fragment &container); 24 27 public: 25 28 typedef std::vector<double> position_t; … … 32 35 }; 33 36 37 std::ostream& operator<<(std::ostream &out, const Fragment &container); 34 38 35 39 /** This class takes all KeySets in a Graph, checks for those that homologues … … 46 50 class HomologyContainer 47 51 { 52 //!> grant access to output operator 53 friend std::ostream& operator<<(std::ostream &out, const HomologyContainer &container); 48 54 public: 49 55 typedef double energy_t; … … 91 97 }; 92 98 99 /** Output operator for HomologyContainer. 100 * 101 * \param out output stream 102 * \param container container to print 103 * \return output stream for concatenation 104 */ 105 std::ostream& operator<<(std::ostream &out, const HomologyContainer &container); 93 106 94 107 #endif /* HOMOLOGYCONTAINER_HPP_ */
Note:
See TracChangeset
for help on using the changeset viewer.