Template class for data, that is organized as QVector. More...
#include <qwt_series_data.h>
Public Member Functions | |
QwtArraySeriesData () | |
Constructor. | |
QwtArraySeriesData (const QVector< T > &samples) | |
virtual T | sample (size_t index) const |
const QVector< T > | samples () const |
void | setSamples (const QVector< T > &samples) |
virtual size_t | size () const |
Protected Attributes | |
QVector< T > | d_samples |
Vector of samples. |
Template class for data, that is organized as QVector.
QVector uses implicit data sharing and can be passed around as argument efficiently.
Definition at line 124 of file qwt_series_data.h.
QwtArraySeriesData< T >::QwtArraySeriesData | ( | ) |
Constructor.
Definition at line 162 of file qwt_series_data.h.
QwtArraySeriesData< T >::QwtArraySeriesData | ( | const QVector< T > & | samples | ) | [explicit] |
T QwtArraySeriesData< T >::sample | ( | size_t | index | ) | const [virtual] |
index | Index |
Implements QwtSeriesData< T >.
Definition at line 192 of file qwt_series_data.h.
const QVector< T > QwtArraySeriesData< T >::samples | ( | ) | const |
Definition at line 180 of file qwt_series_data.h.
void QwtArraySeriesData< T >::setSamples | ( | const QVector< T > & | samples | ) |
Assign an array of samples
samples | Array of samples |
Definition at line 173 of file qwt_series_data.h.
size_t QwtArraySeriesData< T >::size | ( | ) | const [virtual] |
Implements QwtSeriesData< T >.
Definition at line 186 of file qwt_series_data.h.
QVector<T> QwtArraySeriesData< T >::d_samples [protected] |
Vector of samples.
Definition at line 158 of file qwt_series_data.h.