QWTCPOINTERVALUEDATA(3)

πŸ“¦
version 6.3.0 Β· 2 versions
, in alpine 3.24

hey bestie, welcome to the QwtCPointe...ueData< T >(3) page from the Library Functions Manual πŸ’– this is all about QwtCPointerValueData< T >, aka the "pointer to y data" data class. it's giving template realness, no cap ✨

πŸ’– NAME πŸ’–

  • QwtCPointerValueData< T > β€” a data class containing a pointer to memory of y coordinates πŸŽ€

🌈 SYNOPSIS 🌈

#include <qwt_point_data.h>

Inherits QwtSeriesData< QPointF >.

✨ Public Member Functions ✨

  • QwtCPointerValueData (const T *y, size_t size)
  • virtual size_t size () const override
  • virtual QPointF sample (size_t index) const override
  • 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 QwtCPointerValueData< T >

Data class containing a pointer to memory of y coordinates. πŸ’…

The memory contains the y coordinates, while the index is interpreted as x coordinate. lowkey iconic, honestly πŸŽ€

Definition at line 89 of file qwt_point_data.h.


πŸŽ€ Constructor & Destructor Documentation πŸŽ€

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

Constructor ✨

Parameters

  • 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 QwtCPointerValueData object. this is the "keep your pointers alive" rule, bestie, no cap 😭

See also

QwtPlotCurve::setData(), QwtPlotCurve::setRawSamples()

Definition at line 380 of file qwt_point_data.h.


✨ Member Function Documentation ✨

template<typename T> QPointF QwtCPointerValueData< 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 400 of file qwt_point_data.h.

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

Returns

Size of the data set

Implements QwtSeriesData< QPointF >.

Definition at line 388 of file qwt_point_data.h.

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

Returns

Array of the y-values

Definition at line 407 of file qwt_point_data.h.


🌸 Author 🌸

Generated automatically by Doxygen for Qwt User's Guide from the source code. that's the meta lore 🫢


you made it to the end, bestie πŸŽ€ this page is from the Qwt User's Guide, auto-generated by Doxygen from the source code, and it's the QwtCPointe...ueData< T >(3) page β€” no date printed on it, but it still ate πŸ’…βœ¨

πŸ“¦ where this page comes from