1 #ifndef SIMPT_PAREX_RANGE_SWEEP_H_
2 #define SIMPT_PAREX_RANGE_SWEEP_H_
38 RangeSweep(
double from,
double to,
double step);
47 RangeSweep(
const boost::property_tree::ptree& pt);
67 double GetTo()
const {
return m_to; }
81 virtual std::string
GetValue(
unsigned int index)
const;
93 virtual boost::property_tree::ptree
ToPtree()
const;
101 void ReadPtree(
const boost::property_tree::ptree& pt);
111 #endif // end-of-include-guard
double GetTo() const
Gets the to value of the range.
virtual RangeSweep * Clone() const
Polymorphic copy constructor.
An interface class for a parameter sweep.
double GetStep() const
Gets the step value of the range.
double GetFrom() const
Gets the from value of the range.
A sweep over a range of numerical parameters.
RangeSweep(double from, double to, double step)
Constructor.
Namespace for SimPT parameter explorer package.
virtual std::string GetValue(unsigned int index) const
Returns the value on the given index.
virtual boost::property_tree::ptree ToPtree() const
Convert the range sweep to a ptree.
virtual unsigned int GetNumberOfValues() const
Returns the number of values in the sweep.