Changeset 9e6722 for src/Parameters


Ignore:
Timestamp:
Feb 13, 2013, 3:47:46 PM (12 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:
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)
Message:

FIX: Made Parameter functions inline.

Location:
src/Parameters
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified src/Parameters/Parameter_impl.hpp

    r2665d3 r9e6722  
    144144 */
    145145template<typename T>
    146 const std::string Parameter<T>::getAsString() const throw(ParameterValueException)
     146inline const std::string Parameter<T>::getAsString() const throw(ParameterValueException)
    147147{
    148148  try {
     
    159159 */
    160160template<typename T>
    161 const T & Parameter<T>::get() const throw(ParameterValueException)
     161inline const T & Parameter<T>::get() const throw(ParameterValueException)
    162162{
    163163  try {
     
    174174 */
    175175template<typename T>
    176 void Parameter<T>::set(const T & _value) throw(ParameterValueException)
     176inline void Parameter<T>::set(const T & _value) throw(ParameterValueException)
    177177{
    178178  try {
     
    189189 */
    190190template<typename T>
    191 void Parameter<T>::setAsString(const std::string _value) throw(ParameterValueException)
     191inline void Parameter<T>::setAsString(const std::string _value) throw(ParameterValueException)
    192192{
    193193  try {
     
    224224 */
    225225template<typename T>
    226 ParameterAsString* Parameter<T>::clone() const
     226inline ParameterAsString* Parameter<T>::clone() const
    227227{
    228228  Parameter<T> *instance = new Parameter<T>(ParameterInterface<T>::getName(), Value<T>::getValidator());
  • TabularUnified src/Parameters/Value_impl.hpp

    r2665d3 r9e6722  
    8787 */
    8888template <class T>
    89 bool Value<T>::isValid(const T & _value) const throw(ParameterValidatorException)
     89inline bool Value<T>::isValid(const T & _value) const throw(ParameterValidatorException)
    9090{
    9191  if (validator == NULL) throw ParameterValidatorException();
     
    117117 */
    118118template <class T>
    119 const T & Value<T>::get() const throw(ParameterValueException)
     119inline const T & Value<T>::get() const throw(ParameterValueException)
    120120{
    121121  if (!ValueSet) throw ParameterValueException();
     
    128128 */
    129129template <class T>
    130 void Value<T>::set(const T & _value) throw(ParameterException)
     130inline void Value<T>::set(const T & _value) throw(ParameterException)
    131131{
    132132  if (!isValid(_value)) throw ParameterValueException();
     
    142142 */
    143143template <class T>
    144 bool Value<T>::isSet() const
     144inline bool Value<T>::isSet() const
    145145{
    146146  return ValueSet;
     
    154154 */
    155155template <class T>
    156 bool Value<T>::isValidAsString(const std::string _value) const throw(ParameterValidatorException)
     156inline bool Value<T>::isValidAsString(const std::string _value) const throw(ParameterValidatorException)
    157157{
    158158  const T castvalue = Converter(_value);
     
    166166 */
    167167template <class T>
    168 const std::string Value<T>::getAsString() const throw(ParameterValueException)
     168inline const std::string Value<T>::getAsString() const throw(ParameterValueException)
    169169{
    170170  if (!ValueSet) throw ParameterValueException();
     
    177177 */
    178178template <class T>
    179 void Value<T>::setAsString(const std::string _value) throw(ParameterException)
     179inline void Value<T>::setAsString(const std::string _value) throw(ParameterException)
    180180{
    181181  const T castvalue = Converter(_value);
     
    190190 */
    191191template <class T>
    192 const Validator<T> &Value<T>::getValidator() const
     192inline const Validator<T> &Value<T>::getValidator() const
    193193{
    194194  if (validator == NULL) throw ParameterValidatorException();
     
    201201 */
    202202template <class T>
    203 Validator<T> &Value<T>::getValidator()
     203inline Validator<T> &Value<T>::getValidator()
    204204{
    205205  if (validator == NULL) throw ParameterValidatorException();
     
    210210
    211211template <class T>
    212 const range<T> & Value<T>::getValidRange() const throw(ParameterValidatorException)
     212inline const range<T> & Value<T>::getValidRange() const throw(ParameterValidatorException)
    213213{
    214214  return dynamic_cast<const RangeValidator<T>&>(getValidator()).getValidRange();
     
    222222 */
    223223template <class T>
    224 void Value<T>::setValidRange(const range<T> &_range) throw(ParameterValueException)
     224inline void Value<T>::setValidRange(const range<T> &_range) throw(ParameterValueException)
    225225{
    226226  dynamic_cast<RangeValidator<T>&>(getValidator()).setValidRange(_range);
     
    238238
    239239template <class T>
    240 void Value<T>::appendValidValue(const T &_value) throw(ParameterValidatorException)
     240inline void Value<T>::appendValidValue(const T &_value) throw(ParameterValidatorException)
    241241{
    242242  dynamic_cast<DiscreteValidator<T>&>(getValidator()).appendValidValue(_value);
     
    244244
    245245template <class T>
    246 const std::vector<T> &Value<T>::getValidValues() const throw(ParameterValidatorException)
     246inline const std::vector<T> &Value<T>::getValidValues() const throw(ParameterValidatorException)
    247247{
    248248  return dynamic_cast<const DiscreteValidator<T>&>(getValidator()).getValidValues();
Note: See TracChangeset for help on using the changeset viewer.