NumeRe v1.1.4
NumeRe: Framework für Numerische Rechnungen
|
This class represents a set of intervals used together for calculations and simulations. More...
#include <interval.hpp>
Public Member Functions | |
IntervalSet (const std::string &sIntervalString) | |
Construct an interval set from the corresponding interval definition string. Supports explicit ("x=a:b") as well as implicit assignments ("[a:b,...]"). More... | |
IntervalSet (const IntervalSet &ivSet) | |
Create a copy of an interval set. More... | |
IntervalSet ()=default | |
IntervalSet & | operator= (const IntervalSet &ivSet) |
Assignment operator overload. More... | |
Interval & | operator[] (size_t n) |
Access operator overload. More... | |
const Interval & | operator[] (size_t n) const |
Access operator const overload. More... | |
bool | hasDependentIntervals () const |
Detect, whether there are intervals, which depend on each other. More... | |
size_t | size () const |
Return the number of intervals. More... | |
std::vector< mu::value_type > | convert () |
Convert the new interval data types to the old plain mu::value_type values. More... | |
void | setNames (const std::vector< std::string > &vNames) |
Set the interval names. More... | |
Public Attributes | |
std::vector< Interval > | intervals |
This class represents a set of intervals used together for calculations and simulations.
Definition at line 83 of file interval.hpp.
IntervalSet::IntervalSet | ( | const std::string & | sIntervalString | ) |
Construct an interval set from the corresponding interval definition string. Supports explicit ("x=a:b") as well as implicit assignments ("[a:b,...]").
sIntervalString | const std::string& |
Definition at line 489 of file interval.cpp.
References findParameter(), getAllArguments(), getArgAtPos(), getMatchingParenthesis(), intervals, and isInQuotes().
IntervalSet::IntervalSet | ( | const IntervalSet & | ivSet | ) |
Create a copy of an interval set.
ivSet | const IntervalSet& |
Definition at line 563 of file interval.cpp.
References intervals.
|
default |
std::vector< mu::value_type > IntervalSet::convert | ( | ) |
Convert the new interval data types to the old plain mu::value_type values.
Definition at line 656 of file interval.cpp.
References intervals.
bool IntervalSet::hasDependentIntervals | ( | ) | const |
Detect, whether there are intervals, which depend on each other.
Definition at line 622 of file interval.cpp.
IntervalSet & IntervalSet::operator= | ( | const IntervalSet & | ivSet | ) |
Assignment operator overload.
ivSet | const IntervalSet& |
Definition at line 576 of file interval.cpp.
References intervals.
Interval & IntervalSet::operator[] | ( | size_t | n | ) |
Access operator overload.
n | size_t |
Definition at line 590 of file interval.cpp.
References intervals.
const Interval & IntervalSet::operator[] | ( | size_t | n | ) | const |
Access operator const overload.
n | size_t |
Definition at line 606 of file interval.cpp.
References intervals.
void IntervalSet::setNames | ( | const std::vector< std::string > & | vNames | ) |
Set the interval names.
vNames | const std::vector<std::string>& |
Definition at line 677 of file interval.cpp.
References intervals.
Referenced by Plot::createSubPlotSet(), PlotAsset::getDataIntervals(), and PlotData::reset().
size_t IntervalSet::size | ( | ) | const |
Return the number of intervals.
Definition at line 643 of file interval.cpp.
References intervals.
Referenced by cmd_integrate(), createDatagrid(), evalPoints(), integrate(), and particleSwarmOptimizer().
std::vector<Interval> IntervalSet::intervals |
Definition at line 85 of file interval.hpp.
Referenced by convert(), createDatagrid(), Plot::createSubPlotSet(), evalPoints(), fitDataSet(), PlotAssetManager::getAxisIntervalsOfType(), PlotAsset::getDataIntervals(), PlotAssetManager::getIntervalsOfType(), PlotAssetManager::getWeightedFunctionIntervals(), PlotAsset::getWeightedRanges(), hasDependentIntervals(), integrate2d(), integrateSingleDimensionData(), IntervalSet(), operator=(), operator[](), particleSwarmOptimizer(), Plot::Plot(), PlotData::reset(), setNames(), and size().