Changeset 9e6722 for src/Parameters
- Timestamp:
- Feb 13, 2013, 3:47:46 PM (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:
- b11f5e
- Parents:
- 2665d3
- git-author:
- Frederik Heber <heber@…> (01/10/13 10:00:09)
- git-committer:
- Frederik Heber <heber@…> (02/13/13 15:47:46)
- Location:
- src/Parameters
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified src/Parameters/Parameter_impl.hpp ¶
r2665d3 r9e6722 144 144 */ 145 145 template<typename T> 146 const std::string Parameter<T>::getAsString() const throw(ParameterValueException)146 inline const std::string Parameter<T>::getAsString() const throw(ParameterValueException) 147 147 { 148 148 try { … … 159 159 */ 160 160 template<typename T> 161 const T & Parameter<T>::get() const throw(ParameterValueException)161 inline const T & Parameter<T>::get() const throw(ParameterValueException) 162 162 { 163 163 try { … … 174 174 */ 175 175 template<typename T> 176 void Parameter<T>::set(const T & _value) throw(ParameterValueException)176 inline void Parameter<T>::set(const T & _value) throw(ParameterValueException) 177 177 { 178 178 try { … … 189 189 */ 190 190 template<typename T> 191 void Parameter<T>::setAsString(const std::string _value) throw(ParameterValueException)191 inline void Parameter<T>::setAsString(const std::string _value) throw(ParameterValueException) 192 192 { 193 193 try { … … 224 224 */ 225 225 template<typename T> 226 ParameterAsString* Parameter<T>::clone() const226 inline ParameterAsString* Parameter<T>::clone() const 227 227 { 228 228 Parameter<T> *instance = new Parameter<T>(ParameterInterface<T>::getName(), Value<T>::getValidator()); -
TabularUnified src/Parameters/Value_impl.hpp ¶
r2665d3 r9e6722 87 87 */ 88 88 template <class T> 89 bool Value<T>::isValid(const T & _value) const throw(ParameterValidatorException)89 inline bool Value<T>::isValid(const T & _value) const throw(ParameterValidatorException) 90 90 { 91 91 if (validator == NULL) throw ParameterValidatorException(); … … 117 117 */ 118 118 template <class T> 119 const T & Value<T>::get() const throw(ParameterValueException)119 inline const T & Value<T>::get() const throw(ParameterValueException) 120 120 { 121 121 if (!ValueSet) throw ParameterValueException(); … … 128 128 */ 129 129 template <class T> 130 void Value<T>::set(const T & _value) throw(ParameterException)130 inline void Value<T>::set(const T & _value) throw(ParameterException) 131 131 { 132 132 if (!isValid(_value)) throw ParameterValueException(); … … 142 142 */ 143 143 template <class T> 144 bool Value<T>::isSet() const144 inline bool Value<T>::isSet() const 145 145 { 146 146 return ValueSet; … … 154 154 */ 155 155 template <class T> 156 bool Value<T>::isValidAsString(const std::string _value) const throw(ParameterValidatorException)156 inline bool Value<T>::isValidAsString(const std::string _value) const throw(ParameterValidatorException) 157 157 { 158 158 const T castvalue = Converter(_value); … … 166 166 */ 167 167 template <class T> 168 const std::string Value<T>::getAsString() const throw(ParameterValueException)168 inline const std::string Value<T>::getAsString() const throw(ParameterValueException) 169 169 { 170 170 if (!ValueSet) throw ParameterValueException(); … … 177 177 */ 178 178 template <class T> 179 void Value<T>::setAsString(const std::string _value) throw(ParameterException)179 inline void Value<T>::setAsString(const std::string _value) throw(ParameterException) 180 180 { 181 181 const T castvalue = Converter(_value); … … 190 190 */ 191 191 template <class T> 192 const Validator<T> &Value<T>::getValidator() const192 inline const Validator<T> &Value<T>::getValidator() const 193 193 { 194 194 if (validator == NULL) throw ParameterValidatorException(); … … 201 201 */ 202 202 template <class T> 203 Validator<T> &Value<T>::getValidator()203 inline Validator<T> &Value<T>::getValidator() 204 204 { 205 205 if (validator == NULL) throw ParameterValidatorException(); … … 210 210 211 211 template <class T> 212 const range<T> & Value<T>::getValidRange() const throw(ParameterValidatorException)212 inline const range<T> & Value<T>::getValidRange() const throw(ParameterValidatorException) 213 213 { 214 214 return dynamic_cast<const RangeValidator<T>&>(getValidator()).getValidRange(); … … 222 222 */ 223 223 template <class T> 224 void Value<T>::setValidRange(const range<T> &_range) throw(ParameterValueException)224 inline void Value<T>::setValidRange(const range<T> &_range) throw(ParameterValueException) 225 225 { 226 226 dynamic_cast<RangeValidator<T>&>(getValidator()).setValidRange(_range); … … 238 238 239 239 template <class T> 240 void Value<T>::appendValidValue(const T &_value) throw(ParameterValidatorException)240 inline void Value<T>::appendValidValue(const T &_value) throw(ParameterValidatorException) 241 241 { 242 242 dynamic_cast<DiscreteValidator<T>&>(getValidator()).appendValidValue(_value); … … 244 244 245 245 template <class T> 246 const std::vector<T> &Value<T>::getValidValues() const throw(ParameterValidatorException)246 inline const std::vector<T> &Value<T>::getValidValues() const throw(ParameterValidatorException) 247 247 { 248 248 return dynamic_cast<const DiscreteValidator<T>&>(getValidator()).getValidValues();
Note:
See TracChangeset
for help on using the changeset viewer.