Public Types | Public Member Functions | Protected Attributes | Private Member Functions | Static Private Member Functions | List of all members
PJ::TimeseriesBase< Value > Class Template Reference

#include <timeseries.h>

Inheritance diagram for PJ::TimeseriesBase< Value >:
Inheritance graph
[legend]

Public Types

using Point = typename PlotDataBase< double, Value >::Point
 
- Public Types inherited from PJ::PlotDataBase< double, Value >
enum  
 
typedef std::deque< Point >::const_iterator ConstIterator
 
typedef std::deque< Point >::iterator Iterator
 
typedef Value ValueT
 

Public Member Functions

int getIndexFromX (double x) const
 
std::optional< ValuegetYfromX (double x) const
 
virtual bool isTimeseries () const override
 
double maximumRangeX () const
 
TimeseriesBaseoperator= (const TimeseriesBase &other)=delete
 
TimeseriesBaseoperator= (TimeseriesBase &&other)=default
 
void pushBack (const Point &p) override
 
void pushBack (Point &&p) override
 
void setMaximumRangeX (double max_range)
 
 TimeseriesBase (const std::string &name, PlotGroup::Ptr group)
 
 TimeseriesBase (const TimeseriesBase &other)=delete
 
 TimeseriesBase (TimeseriesBase &&other)=default
 
- Public Member Functions inherited from PJ::PlotDataBase< double, Value >
Point & at (size_t index)
 
const Point & at (size_t index) const
 
QVariant attribute (PlotAttribute id) const
 
Attributesattributes ()
 
const Attributesattributes () const
 
const Point & back () const
 
Iterator begin ()
 
ConstIterator begin () const
 
void changeGroup (PlotGroup::Ptr group)
 
virtual void clear ()
 
void clonePoints (const PlotDataBase &other)
 
Iterator end ()
 
ConstIterator end () const
 
const Point & front () const
 
const PlotGroup::Ptrgroup () const
 
virtual void insert (Iterator it, Point &&p)
 
virtual bool isTimeseries () const
 
PlotDataBaseoperator= (const PlotDataBase &other)=delete
 
PlotDataBaseoperator= (PlotDataBase &&other)=default
 
Point & operator[] (size_t index)
 
const Point & operator[] (size_t index) const
 
 PlotDataBase (const PlotDataBase &other)=delete
 
 PlotDataBase (const std::string &name, PlotGroup::Ptr group)
 
 PlotDataBase (PlotDataBase &&other)=default
 
const std::string & plotName () const
 
virtual void popFront ()
 
virtual void pushBack (const Point &p)
 
virtual void pushBack (Point &&p)
 
virtual RangeOpt rangeX () const
 
virtual RangeOpt rangeY () const
 
void setAttribute (PlotAttribute id, const QVariant &value)
 
virtual size_t size () const
 
virtual ~PlotDataBase ()=default
 

Protected Attributes

double _max_range_x
 
- Protected Attributes inherited from PJ::PlotDataBase< double, Value >
Attributes _attributes
 
std::shared_ptr< PlotGroup_group
 
std::string _name
 
std::deque< Point > _points
 
Range _range_x
 
bool _range_x_dirty
 
Range _range_y
 
bool _range_y_dirty
 

Private Member Functions

void trimRange ()
 

Static Private Member Functions

static bool TimeCompare (const Point &a, const Point &b)
 

Additional Inherited Members

- Protected Member Functions inherited from PJ::PlotDataBase< double, Value >
virtual void pushUpdateRangeX (const Point &p)
 
virtual void pushUpdateRangeY (const Point &p)
 

Detailed Description

template<typename Value>
class PJ::TimeseriesBase< Value >

Definition at line 16 of file timeseries.h.

Member Typedef Documentation

◆ Point

template<typename Value >
using PJ::TimeseriesBase< Value >::Point = typename PlotDataBase<double, Value>::Point

Definition at line 23 of file timeseries.h.

Constructor & Destructor Documentation

◆ TimeseriesBase() [1/3]

template<typename Value >
PJ::TimeseriesBase< Value >::TimeseriesBase ( const std::string &  name,
PlotGroup::Ptr  group 
)
inline

Definition at line 25 of file timeseries.h.

◆ TimeseriesBase() [2/3]

template<typename Value >
PJ::TimeseriesBase< Value >::TimeseriesBase ( const TimeseriesBase< Value > &  other)
delete

◆ TimeseriesBase() [3/3]

template<typename Value >
PJ::TimeseriesBase< Value >::TimeseriesBase ( TimeseriesBase< Value > &&  other)
default

Member Function Documentation

◆ getIndexFromX()

template<typename Value >
int PJ::TimeseriesBase< Value >::getIndexFromX ( double  x) const
inline

Definition at line 106 of file timeseries.h.

◆ getYfromX()

template<typename Value >
std::optional<Value> PJ::TimeseriesBase< Value >::getYfromX ( double  x) const
inline

Definition at line 55 of file timeseries.h.

◆ isTimeseries()

template<typename Value >
virtual bool PJ::TimeseriesBase< Value >::isTimeseries ( ) const
inlineoverridevirtual

Definition at line 37 of file timeseries.h.

◆ maximumRangeX()

template<typename Value >
double PJ::TimeseriesBase< Value >::maximumRangeX ( ) const
inline

Definition at line 48 of file timeseries.h.

◆ operator=() [1/2]

template<typename Value >
TimeseriesBase& PJ::TimeseriesBase< Value >::operator= ( const TimeseriesBase< Value > &  other)
delete

◆ operator=() [2/2]

template<typename Value >
TimeseriesBase& PJ::TimeseriesBase< Value >::operator= ( TimeseriesBase< Value > &&  other)
default

◆ pushBack() [1/2]

template<typename Value >
void PJ::TimeseriesBase< Value >::pushBack ( const Point p)
inlineoverride

Definition at line 61 of file timeseries.h.

◆ pushBack() [2/2]

template<typename Value >
void PJ::TimeseriesBase< Value >::pushBack ( Point &&  p)
inlineoverride

Definition at line 67 of file timeseries.h.

◆ setMaximumRangeX()

template<typename Value >
void PJ::TimeseriesBase< Value >::setMaximumRangeX ( double  max_range)
inline

Definition at line 42 of file timeseries.h.

◆ TimeCompare()

template<typename Value >
static bool PJ::TimeseriesBase< Value >::TimeCompare ( const Point a,
const Point b 
)
inlinestaticprivate

Definition at line 97 of file timeseries.h.

◆ trimRange()

template<typename Value >
void PJ::TimeseriesBase< Value >::trimRange ( )
inlineprivate

Definition at line 85 of file timeseries.h.

Member Data Documentation

◆ _max_range_x

template<typename Value >
double PJ::TimeseriesBase< Value >::_max_range_x
protected

Definition at line 19 of file timeseries.h.


The documentation for this class was generated from the following file:


plotjuggler
Author(s): Davide Faconti
autogenerated on Sun Aug 11 2024 02:24:31