19 #ifndef RQT_MULTIPLOT_CURVE_DATA_CIRCULAR_BUFFER_H 20 #define RQT_MULTIPLOT_CURVE_DATA_CIRCULAR_BUFFER_H 22 #include <boost/circular_buffer.hpp> 23 #include <boost/heap/d_ary_heap.hpp> 36 QPointF
getPoint(
size_t index)
const;
60 return (
x_ == reference.
x_);
64 return (
x_ > reference.
x_);
68 return (
x_ < reference.
x_);
75 typedef boost::circular_buffer<Point>
Points;
77 heap::arity<2>, boost::heap::mutable_<true>, boost::
78 heap::compare<std::greater<XCoordinateRef> > >
80 typedef boost::heap::d_ary_heap<double, boost::heap::arity<2>,
81 boost::heap::mutable_<true>, boost::heap::compare<std::
83 typedef boost::heap::d_ary_heap<double, boost::heap::arity<2>,
84 boost::heap::mutable_<true>, boost::heap::compare<std::
89 inline Point(
const QPointF& point = QPointF(0.0, 0.0)) :
void appendPoint(const QPointF &point)
boost::circular_buffer< Point > Points
boost::heap::d_ary_heap< double, boost::heap::arity< 2 >, boost::heap::mutable_< true >, boost::heap::compare< std::greater< double > > > CoordinateMinHeap
CoordinateMinHeap::handle_type yMinHandle_
size_t getNumPoints() const
bool operator>(const XCoordinateRef &reference) const
QPointF getPoint(size_t index) const
CoordinateMaxHeap::handle_type xMaxHandle_
QVector< size_t > getPointsInDistance(double x, double maxDistance) const
XCoordinateRef(double x=0.0, size_t index=0)
boost::heap::d_ary_heap< double, boost::heap::arity< 2 >, boost::heap::mutable_< true >, boost::heap::compare< std::less< double > > > CoordinateMaxHeap
~CurveDataCircularBuffer()
BoundingRectangle getBounds() const
bool operator<(const XCoordinateRef &reference) const
boost::heap::d_ary_heap< XCoordinateRef, boost::heap::arity< 2 >, boost::heap::mutable_< true >, boost::heap::compare< std::greater< XCoordinateRef > > > XCoordinateRefMinHeap
CurveDataCircularBuffer(size_t capacity=0)
CoordinateMaxHeap::handle_type yMaxHandle_
bool operator==(const XCoordinateRef &reference) const
XCoordinateRef(const XCoordinateRef &src)
size_t getCapacity() const
XCoordinateRefMinHeap::handle_type xMinHandle_
XCoordinateRefMinHeap xMin_
Point(const QPointF &point=QPointF(0.0, 0.0))