Changeset b56114
- Timestamp:
- Feb 4, 2015, 9:31:33 PM (10 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:
- 917300
- Parents:
- 2e7afe
- git-author:
- Frederik Heber <heber@…> (01/23/15 19:43:55)
- git-committer:
- Frederik Heber <heber@…> (02/04/15 21:31:33)
- Location:
- src
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Actions/Action_impl_pre.hpp
r2e7afe rb56114 175 175 << "\"" << toPythonString(params. \ 176 176 BOOST_PP_SEQ_ELEM(n, paramreferences) \ 177 .get ()) \177 .getUnvalidated()) \ 178 178 << "\""; 179 179 -
src/Parameters/Parameter.hpp
r2e7afe rb56114 53 53 bool isValid(const T &_value) const throw(ParameterValidatorException); 54 54 const T & get() const throw(ParameterValueException); 55 const T & getUnvalidated() const throw(ParameterValueException); 55 56 void set(const T & _value) throw(ParameterValueException); 56 57 bool isSet() const -
src/Parameters/Parameter_impl.hpp
r2e7afe rb56114 186 186 } 187 187 188 189 /** Catch call to value.getUnvalidated() to add exception information. 190 * 191 * @return parameter value as string 192 */ 193 template<typename T> 194 inline const T & Parameter<T>::getUnvalidated() const throw(ParameterValueException) 195 { 196 try { 197 return value.getUnvalidated(); 198 } catch(ParameterException &e) { 199 e << ParameterName(ParameterInterface::getName()); 200 throw; 201 } 202 } 188 203 189 204 /** Catch call to value.get() to add exception information. -
src/Parameters/Value.hpp
r2e7afe rb56114 77 77 // functions for ValueInterface 78 78 bool isValid(const T &_value) const throw(ParameterValidatorException); 79 const T & getUnvalidated() const throw(ParameterValueException); 79 80 const T & get() const throw(ParameterValueException); 80 81 void set(const T & _value) throw(ParameterException); -
src/Parameters/ValueInterface.hpp
r2e7afe rb56114 31 31 virtual bool isValid(const T & _value) const throw(ParameterValidatorException)=0; 32 32 virtual const T & get() const throw(ParameterValueException)=0; 33 virtual const T & getUnvalidated() const throw(ParameterValueException)=0; 33 34 virtual void set(const T & _value) throw(ParameterException)=0; 34 35 virtual bool isSet() const=0; -
src/Parameters/Value_impl.hpp
r2e7afe rb56114 120 120 { 121 121 if (!isValid(value)) throw ParameterValueException(); 122 if (!ValueSet) throw ParameterValueException(); 123 return value; 124 } 125 126 /** Getter of value without any validation 127 * 128 * @return value 129 */ 130 template <class T> 131 inline const T & Value<T>::getUnvalidated() const throw(ParameterValueException) 132 { 122 133 if (!ValueSet) throw ParameterValueException(); 123 134 return value;
Note:
See TracChangeset
for help on using the changeset viewer.