Classes | Public Types | Public Member Functions | Protected Attributes | Private Attributes | List of all members
PlotDataGeneric< Time, Value > Class Template Reference

#include <plotdata.h>

Classes

class  Point
 
struct  RangeTime
 
struct  RangeValue
 

Public Types

enum  { MAX_CAPACITY = 1024*1024, ASYNC_BUFFER_CAPACITY = 1024 }
 
typedef std::deque< Point >::const_iterator ConstIterator
 
typedef std::deque< Point >::iterator Iterator
 
typedef nonstd::optional< RangeTimeRangeTimeOpt
 
typedef nonstd::optional< RangeValueRangeValueOpt
 
typedef Time TimeType
 
typedef Value ValueType
 

Public Member Functions

const Pointat (size_t index) const
 
Pointat (size_t index)
 
const Pointback () const
 
ConstIterator begin () const
 
Iterator begin ()
 
void clear ()
 
ConstIterator end () const
 
Iterator end ()
 
const Pointfront () const
 
QColor getColorHint () const
 
int getIndexFromX (Time x) const
 
nonstd::optional< Value > getYfromX (Time x) const
 
Time maximumRangeX () const
 
const std::string & name () const
 
PlotDataGenericoperator= (const PlotDataGeneric< Time, Value > &other)=delete
 
const Pointoperator[] (size_t index) const
 
Pointoperator[] (size_t index)
 
 PlotDataGeneric (const std::string &name)
 
 PlotDataGeneric (const PlotDataGeneric< Time, Value > &other)=delete
 
 PlotDataGeneric (PlotDataGeneric &&other)
 
void popFront ()
 
void pushBack (Point p)
 
void resize (size_t new_size)
 
void setColorHint (QColor color)
 
void setMaximumRangeX (Time max_range)
 
virtual size_t size () const
 
void swapData (PlotDataGeneric< Time, Value > &other)
 
virtual ~PlotDataGeneric ()
 

Protected Attributes

QColor _color_hint
 
std::string _name
 
std::deque< Point_points
 

Private Attributes

Time _max_range_X
 

Detailed Description

template<typename Time, typename Value>
class PlotDataGeneric< Time, Value >

Definition at line 24 of file plotdata.h.

Member Typedef Documentation

template<typename Time, typename Value>
typedef std::deque<Point>::const_iterator PlotDataGeneric< Time, Value >::ConstIterator

Definition at line 61 of file plotdata.h.

template<typename Time, typename Value>
typedef std::deque<Point>::iterator PlotDataGeneric< Time, Value >::Iterator

Definition at line 59 of file plotdata.h.

template<typename Time, typename Value>
typedef nonstd::optional<RangeTime> PlotDataGeneric< Time, Value >::RangeTimeOpt

Definition at line 38 of file plotdata.h.

template<typename Time, typename Value>
typedef nonstd::optional<RangeValue> PlotDataGeneric< Time, Value >::RangeValueOpt

Definition at line 39 of file plotdata.h.

template<typename Time, typename Value>
typedef Time PlotDataGeneric< Time, Value >::TimeType

Definition at line 55 of file plotdata.h.

template<typename Time, typename Value>
typedef Value PlotDataGeneric< Time, Value >::ValueType

Definition at line 57 of file plotdata.h.

Member Enumeration Documentation

template<typename Time, typename Value>
anonymous enum
Enumerator
MAX_CAPACITY 
ASYNC_BUFFER_CAPACITY 

Definition at line 50 of file plotdata.h.

Constructor & Destructor Documentation

template<typename Time , typename Value >
PlotDataGeneric< Time, Value >::PlotDataGeneric ( const std::string &  name)
inline

Definition at line 205 of file plotdata.h.

template<typename Time, typename Value>
PlotDataGeneric< Time, Value >::PlotDataGeneric ( const PlotDataGeneric< Time, Value > &  other)
delete
template<typename Time, typename Value>
PlotDataGeneric< Time, Value >::PlotDataGeneric ( PlotDataGeneric< Time, Value > &&  other)
inline

Definition at line 67 of file plotdata.h.

template<typename Time, typename Value>
virtual PlotDataGeneric< Time, Value >::~PlotDataGeneric ( )
inlinevirtual

Definition at line 82 of file plotdata.h.

Member Function Documentation

template<typename Time , typename Value >
const PlotDataGeneric< Time, Value >::Point & PlotDataGeneric< Time, Value >::at ( size_t  index) const
inline

Definition at line 288 of file plotdata.h.

template<typename Time , typename Value >
PlotDataGeneric< Time, Value >::Point & PlotDataGeneric< Time, Value >::at ( size_t  index)
inline

Definition at line 295 of file plotdata.h.

template<typename Time, typename Value>
const Point& PlotDataGeneric< Time, Value >::back ( ) const
inline

Definition at line 114 of file plotdata.h.

template<typename Time, typename Value>
ConstIterator PlotDataGeneric< Time, Value >::begin ( ) const
inline

Definition at line 116 of file plotdata.h.

template<typename Time, typename Value>
Iterator PlotDataGeneric< Time, Value >::begin ( )
inline

Definition at line 120 of file plotdata.h.

template<typename Time , typename Value >
void PlotDataGeneric< Time, Value >::clear ( )

Definition at line 301 of file plotdata.h.

template<typename Time, typename Value>
ConstIterator PlotDataGeneric< Time, Value >::end ( ) const
inline

Definition at line 118 of file plotdata.h.

template<typename Time, typename Value>
Iterator PlotDataGeneric< Time, Value >::end ( )
inline

Definition at line 122 of file plotdata.h.

template<typename Time, typename Value>
const Point& PlotDataGeneric< Time, Value >::front ( ) const
inline

Definition at line 112 of file plotdata.h.

template<typename Time , typename Value >
QColor PlotDataGeneric< Time, Value >::getColorHint ( ) const
inline

Definition at line 314 of file plotdata.h.

template<typename Time, typename Value >
int PlotDataGeneric< Time, Value >::getIndexFromX ( Time  x) const
inline

Definition at line 242 of file plotdata.h.

template<typename Time, typename Value >
nonstd::optional< Value > PlotDataGeneric< Time, Value >::getYfromX ( Time  x) const
inline

Definition at line 276 of file plotdata.h.

template<typename Time, typename Value>
Time PlotDataGeneric< Time, Value >::maximumRangeX ( ) const
inline

Definition at line 110 of file plotdata.h.

template<typename Time, typename Value>
const std::string& PlotDataGeneric< Time, Value >::name ( ) const
inline

Definition at line 84 of file plotdata.h.

template<typename Time, typename Value>
PlotDataGeneric& PlotDataGeneric< Time, Value >::operator= ( const PlotDataGeneric< Time, Value > &  other)
delete
template<typename Time, typename Value>
const Point& PlotDataGeneric< Time, Value >::operator[] ( size_t  index) const
inline

Definition at line 96 of file plotdata.h.

template<typename Time, typename Value>
Point& PlotDataGeneric< Time, Value >::operator[] ( size_t  index)
inline

Definition at line 98 of file plotdata.h.

template<typename Time, typename Value>
void PlotDataGeneric< Time, Value >::popFront ( )
inline

Definition at line 126 of file plotdata.h.

template<typename Time , typename Value >
void PlotDataGeneric< Time, Value >::pushBack ( Point  p)
inline

Definition at line 214 of file plotdata.h.

template<typename Time, typename Value>
void PlotDataGeneric< Time, Value >::resize ( size_t  new_size)
inline

Definition at line 124 of file plotdata.h.

template<typename Time , typename Value >
void PlotDataGeneric< Time, Value >::setColorHint ( QColor  color)
inline

Definition at line 320 of file plotdata.h.

template<typename Time, typename Value >
void PlotDataGeneric< Time, Value >::setMaximumRangeX ( Time  max_range)
inline

Definition at line 327 of file plotdata.h.

template<typename Time , typename Value >
size_t PlotDataGeneric< Time, Value >::size ( ) const
inlinevirtual

Definition at line 308 of file plotdata.h.

template<typename Time, typename Value>
void PlotDataGeneric< Time, Value >::swapData ( PlotDataGeneric< Time, Value > &  other)
inline

Definition at line 75 of file plotdata.h.

Member Data Documentation

template<typename Time, typename Value>
QColor PlotDataGeneric< Time, Value >::_color_hint
protected

Definition at line 132 of file plotdata.h.

template<typename Time, typename Value>
Time PlotDataGeneric< Time, Value >::_max_range_X
private

Definition at line 135 of file plotdata.h.

template<typename Time, typename Value>
std::string PlotDataGeneric< Time, Value >::_name
protected

Definition at line 130 of file plotdata.h.

template<typename Time, typename Value>
std::deque<Point> PlotDataGeneric< Time, Value >::_points
protected

Definition at line 131 of file plotdata.h.


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


plotjuggler
Author(s): Davide Faconti
autogenerated on Sat Jul 6 2019 03:44:18