QWTCPOINTERDATA(3)

πŸ’… QwtCPointerData< T > πŸ’…

okay bestie, welcome to QwtCPointerData< T >(3) from the Library Functions Manual β€” this is the data class that contains two pointers to memory blocks of T, and it is lowkey carrying the whole data-class vibe. πŸŽ€

🌸 NAME 🌸

QwtCPointerData< T > β€” data class containing two pointers to memory blocks of T.

✨ SYNOPSIS ✨

#include <qwt_point_data.h>

Inherits QwtSeriesData< QPointF >.

🌟 Public Member Functions 🌟

  • QwtCPointerData (const T *x, const T *y, size_t size)
  • virtual size_t size () const override
  • virtual QPointF sample (size_t index) const override
  • const T * xData () const
  • const T * yData () const

πŸ’– Public Member Functions inherited from QwtSeriesData< QPointF > πŸ’–

  • QwtSeriesData () β€” Constructor.
  • virtual ~QwtSeriesData () β€” Destructor.
  • QPointF firstSample () const
  • QPointF lastSample () const
  • virtual QRectF boundingRect () const
  • virtual void setRectOfInterest (const QRectF &rect)

🫢 Additional Inherited Members 🫢

Protected Attributes inherited from QwtSeriesData< QPointF >

  • QRectF cachedBoundingRect β€” Can be used to cache a calculated bounding rectangle.

πŸ¦‹ DETAILED DESCRIPTION πŸ¦‹

template<typename T>
class QwtCPointerData< T >"Data class containing two pointers to memory blocks of T.

Definition at line 43 of file qwt_point_data.h.

Yes bestie, that stray quote mark after > is literally in the source β€” leave it alone πŸ’€βœ¨

πŸŽ€ CONSTRUCTOR & DESTRUCTOR DOCUMENTATION πŸŽ€

template<typename T>
QwtCPointerData< T >::QwtCPointerData (const T * x, const T * y, size_t size)

Constructor

Parameters

  • x β€” Array of x values
  • y β€” Array of y values
  • size β€” Size of the x and y arrays
⚠️ Warning: The programmer must assure that the memory blocks referenced by the pointers remain valid during the lifetime of the QwtPlotCPointer object. This is the important part, bestie β€” keep those blocks alive for the whole lifetime, no cap. 🫢

See also: QwtPlotCurve::setData(), QwtPlotCurve::setRawSamples()

Definition at line 326 of file qwt_point_data.h.

πŸ’œ MEMBER FUNCTION DOCUMENTATION πŸ’œ

πŸ¦‹ sample

template<typename T>
QPointF QwtCPointerData< T >::sample (size_t index) const [override],  [virtual]

Return the sample at position i

Parameters

  • index β€” Index

Returns

Sample at position i

Implements QwtSeriesData< QPointF >.

Definition at line 347 of file qwt_point_data.h.


🌸 size

template<typename T>
size_t QwtCPointerData< T >::size () const [override], [virtual]

Returns

Size of the data set

Implements QwtSeriesData< QPointF >.

Definition at line 335 of file qwt_point_data.h.


✨ xData

template<typename T>
const T * QwtCPointerData< T >::xData () const

Returns

Array of the x-values

Definition at line 354 of file qwt_point_data.h.


πŸŽ€ yData

template<typename T>
const T * QwtCPointerData< T >::yData () const

Returns

Array of the y-values

Definition at line 361 of file qwt_point_data.h.

πŸ‘‘ AUTHOR πŸ‘‘

Generated automatically by Doxygen for Qwt User's Guide from the source code.


mwah πŸ’‹ that's the whole page. Footer sign-off: Qwt User's Guide source/version + QwtCPointerData< T >(3) title; date? not printed in the source, so no invented date tea πŸŽ€βœ¨

πŸ“¦ where this page comes from