QwtCPointerData(3)
β¨ NAME β¨
QwtCPointerData β that's it bestie, that's the whole name, she's giving minimalism, she's giving mystery π
πΈ SYNOPSIS πΈ
#include <qwt_data.h>
Inherits QwtData. No cap. π
π«Ά Public Member Functions π«Ά
QwtCPointerData (const double *x, const double *y, size_t size)virtual QwtDoubleRect boundingRect () constvirtual QwtData * copy () constQwtCPointerData & operator= (const QwtCPointerData &)virtual size_t size () constvirtual double x (size_t i) constconst double * xData () constvirtual double y (size_t i) constconst double * yData () const
π¦ Additional Inherited Members π¦
There's more stuff that comes along for the ride from QwtData β this page literally just says Additional Inherited Members and then dips π so that's all the tea we're getting here.
π Detailed Description π
OK so picture this: it's a data class that holds two pointers to memory blocks of doubles. That's the whole vibe. Two pointers, one job, main character energy π₯
π οΈ Constructor & Destructor Documentation π οΈ
QwtCPointerData::QwtCPointerData (const double *x, const double *y, size_t size)
Constructor β¨ β she's the one who makes the object exist, iconic behaviour honestly.
Parameters:
xβ array of x values πΈyβ array of y values πΈsizeβ size of thexandyarrays π
β οΈ Warning, and I need you to actually hear me on this one bestie: the programmer must assure that the memory blocks referenced by the pointers remain valid during the lifetime of the QwtPlotCPointer object. Like, the pointers do NOT own that memory. If it goes away while your object is still alive, that's a you problem and it will be a bad time π
See also: QwtPlotCurve::setData(), QwtPlotCurve::setRawData() π
π§ Member Function Documentation π§
QwtDoubleRect QwtCPointerData::boundingRect () const [virtual]
Returns the bounding rectangle of the data. And if there's no bounding rect β like, say, for empty data β then the rectangle is invalid: QwtDoubleRect::isValid() == false. So check that before you go trusting it, fr fr π
Reimplemented from QwtData.
QwtData * QwtCPointerData::copy () const [virtual]
Returns: a pointer to a copy β it's a virtual copy constructor, which is lowkey the coolest kind of constructor π
Implements QwtData.
size_t QwtCPointerData::size () const [virtual]
Returns: the size of the data set π
Implements QwtData.
double QwtCPointerData::x (size_t i) const [virtual]
Return the x value of data point i π
Parameters:
iβ index π’
Returns: x β the x value of data point i β
Implements QwtData.
const double * QwtCPointerData::xData () const
Returns: array of the x-values π
double QwtCPointerData::y (size_t i) const [virtual]
Return the y value of data point i π
Parameters:
iβ index π’
Returns: y β the y value of data point i β
Implements QwtData.
const double * QwtCPointerData::yData () const
Returns: array of the y-values π
π Author π
Generated automatically by Doxygen for Qwt User's Guide from the source code. Not a human author, just a robot doing its little thing π€β¨
And that's the whole page, bestie β no crumbs left behind π«Ά This was Version 5.2.3, dated Tue Nov 20 2012, straight out of the Qwt User's Guide. Stay hydrated, keep your pointers valid, and slay πππ¦
π¦ where this page comes from
- epel 9: qwt5-qt5-devel 5.2.3a-12.20210522gita2b11e3.el9 Β· LGPLv2+ with exceptions
- fedora 43: qwt5-qt5-devel 5.2.3a-22.20210522gita2b11e3.fc43 Β· LGPL-2.1-or-later WITH Qwt-exception-1.0
- fedora 43: qwt5-qt5-devel 5.2.3a-22.20210522gita2b11e3.fc43 Β· LGPL-2.1-or-later WITH Qwt-exception-1.0
- fedora 44: qwt5-qt5-devel 5.2.3a-23.20210522gita2b11e3.fc44 Β· LGPL-2.1-or-later WITH Qwt-exception-1.0
- fedora 44: qwt5-qt5-devel 5.2.3a-23.20210522gita2b11e3.fc44 Β· LGPL-2.1-or-later WITH Qwt-exception-1.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms