Ignore:
Timestamp:
Apr 20, 2016, 11:04:53 PM (9 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, 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:
e4b13a
Parents:
96f14a
git-author:
Frederik Heber <heber@…> (03/23/16 10:02:43)
git-committer:
Frederik Heber <heber@…> (04/20/16 23:04:53)
Message:

Removed partial specialization of ObservedValue_wCallback for index.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/UIElements/Qt4/InstanceBoard/QtObservedBond.cpp

    r96f14a rd48a16  
    128128          boost::ref(subjectKilledCount), _1);
    129129
    130   const boost::function<void (const ObservedValue_Index_t)> bondSubjectKilled(
     130  const boost::function<void ()> bondSubjectKilled(
    131131      boost::bind(&QtObservedBond::countValuesSubjectKilled,
    132132          boost::ref(*this),
     
    134134          boost::bind(accessor,
    135135              getObservable(_bond.get()))));
    136   const boost::function<void (const ObservedValue_Index_t)> leftatomSubjectKilled(
     136  const boost::function<void ()> leftatomSubjectKilled(
    137137      boost::bind(&QtObservedBond::countValuesSubjectKilled,
    138138          boost::ref(*this),
     
    140140          boost::bind(accessor,
    141141              getObservable(_bond->leftatom))));
    142   const boost::function<void (const ObservedValue_Index_t)> rightatomSubjectKilled(
     142  const boost::function<void ()> rightatomSubjectKilled(
    143143      boost::bind(&QtObservedBond::countValuesSubjectKilled,
    144144          boost::ref(*this),
     
    146146          boost::bind(accessor,
    147147              getObservable(_bond->rightatom))));
    148   const boost::function<void (const ObservedValue_Index_t)> moleculeSubjectKilled(
     148  const boost::function<void ()> moleculeSubjectKilled(
    149149      boost::bind(&QtObservedBond::countValuesSubjectKilled,
    150150          boost::ref(*this),
     
    588588    const bondId_t _id,
    589589    const bond::ptr _bondref,
    590     const boost::function<void(const ObservedValue_Index_t)> &_bondsubjectKilled,
    591     const boost::function<void(const ObservedValue_Index_t)> &_leftatomsubjectKilled,
    592     const boost::function<void(const ObservedValue_Index_t)> &_rightatomsubjectKilled,
    593     const boost::function<void(const ObservedValue_Index_t)> &_moleculesubjectKilled)
     590    const boost::function<void()> &_bondsubjectKilled,
     591    const boost::function<void()> &_leftatomsubjectKilled,
     592    const boost::function<void()> &_rightatomsubjectKilled,
     593    const boost::function<void()> &_moleculesubjectKilled)
    594594{
    595595  // fill ObservedValues: index first
     
    622622      BondDegreeUpdater(),
    623623      BondDegreeChannels,
    624       _bondsubjectKilled,
    625       BondIndexGetter);
     624      _bondsubjectKilled);
    626625  _ObservedValues[leftAtomIndex] = new ObservedValue_wCallback<atomId_t, ObservedValue_Index_t>(
    627626      _bondref->leftatom,
     
    630629      leftAtomIndexUpdater(),
    631630      Observable::channels_t(1, AtomObservable::IndexChanged),
    632       _leftatomsubjectKilled,
    633       BondIndexGetter);
     631      _leftatomsubjectKilled);
    634632  _ObservedValues[leftAtomElement] = new ObservedValue_wCallback<atomicNumber_t, ObservedValue_Index_t>(
    635633      _bondref->leftatom,
     
    638636      leftAtomElementUpdater(),
    639637      Observable::channels_t(1, AtomObservable::ElementChanged),
    640       _leftatomsubjectKilled,
    641       BondIndexGetter);
     638      _leftatomsubjectKilled);
    642639  _ObservedValues[leftAtomPosition] = new ObservedValue_wCallback<Vector, ObservedValue_Index_t>(
    643640      _bondref->leftatom,
     
    646643      leftAtomPositionUpdater(),
    647644      Observable::channels_t(1, AtomObservable::PositionChanged),
    648       _leftatomsubjectKilled,
    649       BondIndexGetter);
     645      _leftatomsubjectKilled);
    650646  _ObservedValues[rightAtomIndex] = new ObservedValue_wCallback<atomId_t, ObservedValue_Index_t>(
    651647      _bondref->rightatom,
     
    654650      rightAtomIndexUpdater(),
    655651      Observable::channels_t(1, AtomObservable::IndexChanged),
    656       _rightatomsubjectKilled,
    657       BondIndexGetter);
     652      _rightatomsubjectKilled);
    658653  _ObservedValues[rightAtomElement] = new ObservedValue_wCallback<atomicNumber_t, ObservedValue_Index_t>(
    659654      _bondref->rightatom,
     
    662657      rightAtomElementUpdater(),
    663658      Observable::channels_t(1, AtomObservable::ElementChanged),
    664       _rightatomsubjectKilled,
    665       BondIndexGetter);
     659      _rightatomsubjectKilled);
    666660  _ObservedValues[rightAtomPosition] = new ObservedValue_wCallback<Vector, ObservedValue_Index_t>(
    667661      _bondref->rightatom,
     
    670664      rightAtomPositionUpdater(),
    671665      Observable::channels_t(1, AtomObservable::PositionChanged),
    672       _rightatomsubjectKilled,
    673       BondIndexGetter);
     666      _rightatomsubjectKilled);
    674667  _ObservedValues[moleculeIndex] = new ObservedValue_wCallback<moleculeId_t, ObservedValue_Index_t>(
    675668      _bondref->leftatom->getMolecule(),
     
    678671      MoleculeIndexUpdater(),
    679672      Observable::channels_t(1, AtomObservable::PositionChanged),
    680       _moleculesubjectKilled,
    681       BondIndexGetter);
     673      _moleculesubjectKilled);
    682674}
    683675
Note: See TracChangeset for help on using the changeset viewer.