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

Pointat (size_t index)
 
const Pointat (size_t index) const
 
QVariant attribute (PlotAttribute id) const
 
Attributesattributes ()
 
const Attributesattributes () const
 
const Pointback () 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 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
 
Pointoperator[] (size_t index)
 
const Pointoperator[] (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 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 122 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 143 of file plotdatabase.h.

◆ Iterator

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

Definition at line 142 of file plotdatabase.h.

◆ ValueT

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

Definition at line 144 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 136 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 146 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 >
Point& PJ::PlotDataBase< TypeX, Value >::at ( size_t  index)
inline

Definition at line 198 of file plotdatabase.h.

◆ at() [2/2]

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

Definition at line 193 of file plotdatabase.h.

◆ attribute()

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

Definition at line 239 of file plotdatabase.h.

◆ attributes() [1/2]

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

Definition at line 225 of file plotdatabase.h.

◆ attributes() [2/2]

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

Definition at line 220 of file plotdatabase.h.

◆ back()

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

Definition at line 250 of file plotdatabase.h.

◆ begin() [1/2]

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

Definition at line 265 of file plotdatabase.h.

◆ begin() [2/2]

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

Definition at line 255 of file plotdatabase.h.

◆ changeGroup()

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

Definition at line 178 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 213 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 157 of file plotdatabase.h.

◆ end() [1/2]

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

Definition at line 270 of file plotdatabase.h.

◆ end() [2/2]

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

Definition at line 260 of file plotdatabase.h.

◆ front()

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

Definition at line 245 of file plotdatabase.h.

◆ group()

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

Definition at line 173 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 353 of file plotdatabase.h.

◆ isTimeseries()

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

Reimplemented in PJ::TimeseriesBase< StringRef >.

Definition at line 188 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 >
Point& PJ::PlotDataBase< TypeX, Value >::operator[] ( size_t  index)
inline

Definition at line 208 of file plotdatabase.h.

◆ operator[]() [2/2]

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

Definition at line 203 of file plotdatabase.h.

◆ plotName()

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

Definition at line 168 of file plotdatabase.h.

◆ popFront()

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

Definition at line 375 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 325 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 331 of file plotdatabase.h.

◆ pushUpdateRangeX()

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

Definition at line 409 of file plotdatabase.h.

◆ pushUpdateRangeY()

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

Definition at line 438 of file plotdatabase.h.

◆ rangeX()

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

Definition at line 276 of file plotdatabase.h.

◆ rangeY()

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

Definition at line 301 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 230 of file plotdatabase.h.

◆ size()

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

Definition at line 183 of file plotdatabase.h.

Member Data Documentation

◆ _attributes

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

Definition at line 399 of file plotdatabase.h.

◆ _group

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

Definition at line 406 of file plotdatabase.h.

◆ _name

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

Definition at line 398 of file plotdatabase.h.

◆ _points

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

Definition at line 400 of file plotdatabase.h.

◆ _range_x

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

Definition at line 402 of file plotdatabase.h.

◆ _range_x_dirty

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

Definition at line 404 of file plotdatabase.h.

◆ _range_y

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

Definition at line 403 of file plotdatabase.h.

◆ _range_y_dirty

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

Definition at line 405 of file plotdatabase.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