NumeRe v1.1.4
NumeRe: Framework für Numerische Rechnungen
IntervalSet Struct Reference

This class represents a set of intervals used together for calculations and simulations. More...

#include <interval.hpp>

Collaboration diagram for IntervalSet:

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
 
IntervalSetoperator= (const IntervalSet &ivSet)
 Assignment operator overload. More...
 
Intervaloperator[] (size_t n)
 Access operator overload. More...
 
const Intervaloperator[] (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_typeconvert ()
 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< Intervalintervals
 

Detailed Description

This class represents a set of intervals used together for calculations and simulations.

Definition at line 83 of file interval.hpp.

Constructor & Destructor Documentation

◆ IntervalSet() [1/3]

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,...]").

Parameters
sIntervalStringconst std::string&

Definition at line 489 of file interval.cpp.

References findParameter(), getAllArguments(), getArgAtPos(), getMatchingParenthesis(), intervals, and isInQuotes().

Here is the call graph for this function:

◆ IntervalSet() [2/3]

IntervalSet::IntervalSet ( const IntervalSet ivSet)

Create a copy of an interval set.

Parameters
ivSetconst IntervalSet&

Definition at line 563 of file interval.cpp.

References intervals.

◆ IntervalSet() [3/3]

IntervalSet::IntervalSet ( )
default

Member Function Documentation

◆ convert()

std::vector< mu::value_type > IntervalSet::convert ( )

Convert the new interval data types to the old plain mu::value_type values.

Returns
std::vector<mu::value_type>

Definition at line 656 of file interval.cpp.

References intervals.

◆ hasDependentIntervals()

bool IntervalSet::hasDependentIntervals ( ) const

Detect, whether there are intervals, which depend on each other.

Returns
bool

Definition at line 622 of file interval.cpp.

References intervals, and name.

◆ operator=()

IntervalSet & IntervalSet::operator= ( const IntervalSet ivSet)

Assignment operator overload.

Parameters
ivSetconst IntervalSet&
Returns
IntervalSet&

Definition at line 576 of file interval.cpp.

References intervals.

◆ operator[]() [1/2]

Interval & IntervalSet::operator[] ( size_t  n)

Access operator overload.

Parameters
nsize_t
Returns
Interval&

Definition at line 590 of file interval.cpp.

References intervals.

◆ operator[]() [2/2]

const Interval & IntervalSet::operator[] ( size_t  n) const

Access operator const overload.

Parameters
nsize_t
Returns
const Interval&

Definition at line 606 of file interval.cpp.

References intervals.

◆ setNames()

void IntervalSet::setNames ( const std::vector< std::string > &  vNames)

Set the interval names.

Parameters
vNamesconst std::vector<std::string>&
Returns
void

Definition at line 677 of file interval.cpp.

References intervals.

Referenced by Plot::createSubPlotSet(), PlotAsset::getDataIntervals(), and PlotData::reset().

◆ size()

size_t IntervalSet::size ( ) const

Return the number of intervals.

Returns
size_t

Definition at line 643 of file interval.cpp.

References intervals.

Referenced by cmd_integrate(), createDatagrid(), evalPoints(), integrate(), and particleSwarmOptimizer().

Member Data Documentation

◆ intervals


The documentation for this struct was generated from the following files: