Classes | Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
PJ::PlotDataBase< TypeX, Value > Class Template Reference

#include <plotdatabase.h>

Classes

class  Point
 

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 Value ValueT
 

Public Member Functions

const Pointat (size_t index) const
 
Pointat (size_t index)
 
QVariant attribute (PlotAttribute id) const
 
const Attributesattributes () const
 
Attributesattributes ()
 
const Pointback () const
 
ConstIterator begin () const
 
Iterator begin ()
 
void changeGroup (PlotGroup::Ptr group)
 
virtual void clear ()
 
void clonePoints (const PlotDataBase &other)
 
ConstIterator end () const
 
Iterator end ()
 
const Pointfront () 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
 
const Pointoperator[] (size_t index) const
 
Pointoperator[] (size_t index)
 
 PlotDataBase (const std::string &name, PlotGroup::Ptr group)
 
 PlotDataBase (const PlotDataBase &other)=delete
 
 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 Member Functions

virtual void pushUpdateRangeX (const Point &p)
 
virtual void pushUpdateRangeY (const Point &p)
 

Protected Attributes

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
 

Detailed Description

template<typename TypeX, typename Value>
class PJ::PlotDataBase< TypeX, Value >

Definition at line 121 of file plotdatabase.h.

Member Typedef Documentation

◆ ConstIterator

template<typename TypeX, typename Value>
typedef std::deque<Point>::const_iterator PJ::PlotDataBase< TypeX, Value >::ConstIterator

Definition at line 142 of file plotdatabase.h.

◆ Iterator

template<typename TypeX, typename Value>
typedef std::deque<Point>::iterator PJ::PlotDataBase< TypeX, Value >::Iterator

Definition at line 141 of file plotdatabase.h.

◆ ValueT

template<typename TypeX, typename Value>
typedef Value PJ::PlotDataBase< TypeX, Value >::ValueT

Definition at line 143 of file plotdatabase.h.

Member Enumeration Documentation

◆ anonymous enum

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

Definition at line 135 of file plotdatabase.h.

Constructor & Destructor Documentation

◆ PlotDataBase() [1/3]

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

Definition at line 145 of file plotdatabase.h.

◆ PlotDataBase() [2/3]

template<typename TypeX, typename Value>
PJ::PlotDataBase< TypeX, Value >::PlotDataBase ( const PlotDataBase< TypeX, Value > &  other)
delete

◆ PlotDataBase() [3/3]

template<typename TypeX, typename Value>
PJ::PlotDataBase< TypeX, Value >::PlotDataBase ( PlotDataBase< TypeX, Value > &&  other)
default

◆ ~PlotDataBase()

template<typename TypeX, typename Value>
virtual PJ::PlotDataBase< TypeX, Value >::~PlotDataBase ( )
virtualdefault

Member Function Documentation

◆ at() [1/2]

template<typename TypeX, typename Value>
const Point& PJ::PlotDataBase< TypeX, Value >::at ( size_t  index) const
inline

Definition at line 192 of file plotdatabase.h.

◆ at() [2/2]

template<typename TypeX, typename Value>
Point& PJ::PlotDataBase< TypeX, Value >::at ( size_t  index)
inline

Definition at line 197 of file plotdatabase.h.

◆ attribute()

template<typename TypeX, typename Value>
QVariant PJ::PlotDataBase< TypeX, Value >::attribute ( PlotAttribute  id) const
inline

Definition at line 238 of file plotdatabase.h.

◆ attributes() [1/2]

template<typename TypeX, typename Value>
const Attributes& PJ::PlotDataBase< TypeX, Value >::attributes ( ) const
inline

Definition at line 219 of file plotdatabase.h.

◆ attributes() [2/2]

template<typename TypeX, typename Value>
Attributes& PJ::PlotDataBase< TypeX, Value >::attributes ( )
inline

Definition at line 224 of file plotdatabase.h.

◆ back()

template<typename TypeX, typename Value>
const Point& PJ::PlotDataBase< TypeX, Value >::back ( ) const
inline

Definition at line 249 of file plotdatabase.h.

◆ begin() [1/2]

template<typename TypeX, typename Value>
ConstIterator PJ::PlotDataBase< TypeX, Value >::begin ( ) const
inline

Definition at line 254 of file plotdatabase.h.

◆ begin() [2/2]

template<typename TypeX, typename Value>
Iterator PJ::PlotDataBase< TypeX, Value >::begin ( )
inline

Definition at line 264 of file plotdatabase.h.

◆ changeGroup()

template<typename TypeX, typename Value>
void PJ::PlotDataBase< TypeX, Value >::changeGroup ( PlotGroup::Ptr  group)
inline

Definition at line 177 of file plotdatabase.h.

◆ clear()

template<typename TypeX, typename Value>
virtual void PJ::PlotDataBase< TypeX, Value >::clear ( )
inlinevirtual

Reimplemented in PJ::StringSeries.

Definition at line 212 of file plotdatabase.h.

◆ clonePoints()

template<typename TypeX, typename Value>
void PJ::PlotDataBase< TypeX, Value >::clonePoints ( const PlotDataBase< TypeX, Value > &  other)
inline

Definition at line 156 of file plotdatabase.h.

◆ end() [1/2]

template<typename TypeX, typename Value>
ConstIterator PJ::PlotDataBase< TypeX, Value >::end ( ) const
inline

Definition at line 259 of file plotdatabase.h.

◆ end() [2/2]

template<typename TypeX, typename Value>
Iterator PJ::PlotDataBase< TypeX, Value >::end ( )
inline

Definition at line 269 of file plotdatabase.h.

◆ front()

template<typename TypeX, typename Value>
const Point& PJ::PlotDataBase< TypeX, Value >::front ( ) const
inline

Definition at line 244 of file plotdatabase.h.

◆ group()

template<typename TypeX, typename Value>
const PlotGroup::Ptr& PJ::PlotDataBase< TypeX, Value >::group ( ) const
inline

Definition at line 172 of file plotdatabase.h.

◆ insert()

template<typename TypeX, typename Value>
virtual void PJ::PlotDataBase< TypeX, Value >::insert ( Iterator  it,
Point &&  p 
)
inlinevirtual

Definition at line 352 of file plotdatabase.h.

◆ isTimeseries()

template<typename TypeX, typename Value>
virtual bool PJ::PlotDataBase< TypeX, Value >::isTimeseries ( ) const
inlinevirtual

Reimplemented in PJ::TimeseriesBase< Value >, and PJ::TimeseriesBase< StringRef >.

Definition at line 187 of file plotdatabase.h.

◆ operator=() [1/2]

template<typename TypeX, typename Value>
PlotDataBase& PJ::PlotDataBase< TypeX, Value >::operator= ( const PlotDataBase< TypeX, Value > &  other)
delete

◆ operator=() [2/2]

template<typename TypeX, typename Value>
PlotDataBase& PJ::PlotDataBase< TypeX, Value >::operator= ( PlotDataBase< TypeX, Value > &&  other)
default

◆ operator[]() [1/2]

template<typename TypeX, typename Value>
const Point& PJ::PlotDataBase< TypeX, Value >::operator[] ( size_t  index) const
inline

Definition at line 202 of file plotdatabase.h.

◆ operator[]() [2/2]

template<typename TypeX, typename Value>
Point& PJ::PlotDataBase< TypeX, Value >::operator[] ( size_t  index)
inline

Definition at line 207 of file plotdatabase.h.

◆ plotName()

template<typename TypeX, typename Value>
const std::string& PJ::PlotDataBase< TypeX, Value >::plotName ( ) const
inline

Definition at line 167 of file plotdatabase.h.

◆ popFront()

template<typename TypeX, typename Value>
virtual void PJ::PlotDataBase< TypeX, Value >::popFront ( )
inlinevirtual

Definition at line 374 of file plotdatabase.h.

◆ pushBack() [1/2]

template<typename TypeX, typename Value>
virtual void PJ::PlotDataBase< TypeX, Value >::pushBack ( const Point p)
inlinevirtual

Definition at line 324 of file plotdatabase.h.

◆ pushBack() [2/2]

template<typename TypeX, typename Value>
virtual void PJ::PlotDataBase< TypeX, Value >::pushBack ( Point &&  p)
inlinevirtual

Definition at line 330 of file plotdatabase.h.

◆ pushUpdateRangeX()

template<typename TypeX, typename Value>
virtual void PJ::PlotDataBase< TypeX, Value >::pushUpdateRangeX ( const Point p)
inlineprotectedvirtual

Definition at line 408 of file plotdatabase.h.

◆ pushUpdateRangeY()

template<typename TypeX, typename Value>
virtual void PJ::PlotDataBase< TypeX, Value >::pushUpdateRangeY ( const Point p)
inlineprotectedvirtual

Definition at line 437 of file plotdatabase.h.

◆ rangeX()

template<typename TypeX, typename Value>
virtual RangeOpt PJ::PlotDataBase< TypeX, Value >::rangeX ( ) const
inlinevirtual

Definition at line 275 of file plotdatabase.h.

◆ rangeY()

template<typename TypeX, typename Value>
virtual RangeOpt PJ::PlotDataBase< TypeX, Value >::rangeY ( ) const
inlinevirtual

Definition at line 300 of file plotdatabase.h.

◆ setAttribute()

template<typename TypeX, typename Value>
void PJ::PlotDataBase< TypeX, Value >::setAttribute ( PlotAttribute  id,
const QVariant &  value 
)
inline

Definition at line 229 of file plotdatabase.h.

◆ size()

template<typename TypeX, typename Value>
virtual size_t PJ::PlotDataBase< TypeX, Value >::size ( ) const
inlinevirtual

Definition at line 182 of file plotdatabase.h.

Member Data Documentation

◆ _attributes

template<typename TypeX, typename Value>
Attributes PJ::PlotDataBase< TypeX, Value >::_attributes
protected

Definition at line 398 of file plotdatabase.h.

◆ _group

template<typename TypeX, typename Value>
std::shared_ptr<PlotGroup> PJ::PlotDataBase< TypeX, Value >::_group
mutableprotected

Definition at line 405 of file plotdatabase.h.

◆ _name

template<typename TypeX, typename Value>
std::string PJ::PlotDataBase< TypeX, Value >::_name
protected

Definition at line 397 of file plotdatabase.h.

◆ _points

template<typename TypeX, typename Value>
std::deque<Point> PJ::PlotDataBase< TypeX, Value >::_points
protected

Definition at line 399 of file plotdatabase.h.

◆ _range_x

template<typename TypeX, typename Value>
Range PJ::PlotDataBase< TypeX, Value >::_range_x
mutableprotected

Definition at line 401 of file plotdatabase.h.

◆ _range_x_dirty

template<typename TypeX, typename Value>
bool PJ::PlotDataBase< TypeX, Value >::_range_x_dirty
mutableprotected

Definition at line 403 of file plotdatabase.h.

◆ _range_y

template<typename TypeX, typename Value>
Range PJ::PlotDataBase< TypeX, Value >::_range_y
mutableprotected

Definition at line 402 of file plotdatabase.h.

◆ _range_y_dirty

template<typename TypeX, typename Value>
bool PJ::PlotDataBase< TypeX, Value >::_range_y_dirty
mutableprotected

Definition at line 404 of file plotdatabase.h.


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


plotjuggler
Author(s): Davide Faconti
autogenerated on Mon Jun 19 2023 03:12:56