Changeset 61003d for src/Parameters
- Timestamp:
- Jun 19, 2017, 8:24:16 AM (8 years ago)
- Branches:
- Action_Thermostats, Add_AtomRandomPerturbation, Add_SelectAtomByNameAction, Adding_Graph_to_ChangeBondActions, Adding_MD_integration_tests, Adding_StructOpt_integration_tests, AutomationFragmentation_failures, Candidate_v1.6.1, ChangeBugEmailaddress, ChemicalSpaceEvaluator, EmpiricalPotential_contain_HomologyGraph_documentation, Enhance_userguide, Enhanced_StructuralOptimization, Enhanced_StructuralOptimization_continued, Example_ManyWaysToTranslateAtom, Exclude_Hydrogens_annealWithBondGraph, Fix_Verbose_Codepatterns, ForceAnnealing_oldresults, 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, StoppableMakroAction, TremoloParser_IncreasedPrecision, TremoloParser_MultipleTimesteps
- Children:
- b5bdb9
- Parents:
- 9a9f847
- git-author:
- Frederik Heber <heber@…> (03/29/17 10:58:47)
- git-committer:
- Frederik Heber <frederik.heber@…> (06/19/17 08:24:16)
- Location:
- src/Parameters
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Parameters/Parameter_impl.hpp
r9a9f847 r61003d 23 23 value(instance.value.getValidator()) 24 24 { 25 value.set(instance.value. value);25 value.set(instance.value.getUnvalidated()); 26 26 } 27 27 … … 258 258 try { 259 259 status = status && 260 ( value == _instance.value);260 (getUnvalidated() == _instance.getUnvalidated()); 261 261 status = status && (ParameterInterface::getName() == _instance.ParameterInterface::getName()); 262 262 } catch(ParameterException &e) { … … 276 276 Parameter<T> *instance = new Parameter<T>(ParameterInterface::getName(), value.getValidator()); 277 277 // do not use get, we do not check for validity here 278 if (value. ValueSet)279 instance->set(value. value);278 if (value.isSet()) 279 instance->set(value.getUnvalidated()); 280 280 return instance; 281 281 } -
src/Parameters/Value.hpp
r9a9f847 r61003d 67 67 friend class ValueTest; 68 68 friend class ContinuousValueTest; 69 friend class Parameter<T>;69 // friend class Parameter<T>; 70 70 public: 71 71 Value();
Note:
See TracChangeset
for help on using the changeset viewer.