Classes | Public Types | Public Member Functions | Static Public Member Functions | Protected Attributes | Private Attributes | Static Private Attributes
PlotDataGeneric< Time, Value > Class Template Reference

#include <plotdata.h>

List of all members.

Classes

class  Point
struct  RangeTime
struct  RangeValue

Public Types

enum  { MAX_CAPACITY = 1024*1024, ASYNC_BUFFER_CAPACITY = 1024 }
typedef nonstd::optional
< RangeTime
RangeTimeOpt
typedef nonstd::optional
< RangeValue
RangeValueOpt
typedef Time TimeType
typedef Value ValueType

Public Member Functions

const Pointat (size_t index) const
void clear ()
bool flushAsyncBuffer ()
QColor getColorHint () const
int getIndexFromX (Time x) const
nonstd::optional< Value > getYfromX (Time x) const
std::string name () const
 PlotDataGeneric (const char *name)
void pushBack (Point p)
void pushBackAsynchronously (Point p)
void setColorHint (QColor color)
void setMaximumRangeX (Time max_range)
virtual size_t size () const
virtual ~PlotDataGeneric ()

Static Public Member Functions

static std::mutex & asyncPushMutex ()

Protected Attributes

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

Private Attributes

Time _max_range_X

Static Private Attributes

static std::mutex _mutex

Detailed Description

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

Definition at line 16 of file plotdata.h.


Member Typedef Documentation

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

Definition at line 30 of file plotdata.h.

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

Definition at line 31 of file plotdata.h.

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

Definition at line 47 of file plotdata.h.

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

Definition at line 49 of file plotdata.h.


Member Enumeration Documentation

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

Definition at line 42 of file plotdata.h.


Constructor & Destructor Documentation

template<typename Time , typename Value >
PlotDataGeneric< Time, Value >::PlotDataGeneric ( const char *  name) [inline]

Definition at line 124 of file plotdata.h.

template<typename Time , typename Value >
virtual PlotDataGeneric< Time, Value >::~PlotDataGeneric ( ) [inline, virtual]

Definition at line 53 of file plotdata.h.


Member Function Documentation

template<typename Time , typename Value >
static std::mutex& PlotDataGeneric< Time, Value >::asyncPushMutex ( ) [inline, static]

Definition at line 79 of file plotdata.h.

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

Definition at line 204 of file plotdata.h.

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

Definition at line 210 of file plotdata.h.

template<typename Time , typename Value >
bool PlotDataGeneric< Time, Value >::flushAsyncBuffer ( ) [inline]

Definition at line 146 of file plotdata.h.

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

Definition at line 223 of file plotdata.h.

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

Definition at line 168 of file plotdata.h.

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

Definition at line 192 of file plotdata.h.

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

Definition at line 55 of file plotdata.h.

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

Definition at line 133 of file plotdata.h.

template<typename Time , typename Value >
void PlotDataGeneric< Time, Value >::pushBackAsynchronously ( Point  p) [inline]

Definition at line 139 of file plotdata.h.

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

Definition at line 229 of file plotdata.h.

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

Definition at line 236 of file plotdata.h.

template<typename Time , typename Value >
size_t PlotDataGeneric< Time, Value >::size ( ) const [inline, virtual]

Definition at line 217 of file plotdata.h.


Member Data Documentation

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

Definition at line 87 of file plotdata.h.

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

Definition at line 91 of file plotdata.h.

template<typename Time , typename Value >
std::mutex PlotDataGeneric< Time, Value >::_mutex [static, private]

Definition at line 92 of file plotdata.h.

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

Definition at line 83 of file plotdata.h.

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

Definition at line 84 of file plotdata.h.

template<typename Time , typename Value >
std::deque<Point> PlotDataGeneric< Time, Value >::_pushed_points [protected]

Definition at line 85 of file plotdata.h.


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


plotjuggler
Author(s): Davide Faconti
autogenerated on Fri Sep 1 2017 02:41:57