SYNOPSIS

#include <qwt_series_data.h>

Inherits QwtSeriesData< T >.

Public Member Functions

QwtArraySeriesData ()

QwtArraySeriesData (const QVector< T > &)

void setSamples (const QVector< T > &)

const QVector< T > samples () const

virtual size_t size () const

virtual T sample (size_t) const

Protected Attributes

QVector< T > d_samples

Detailed Description

template<typename T> class QwtArraySeriesData< T >

Template class for data, that is organized as QVector.

QVector uses implicit data sharing and can be passed around as argument efficiently.

Constructor & Destructor Documentation

template<typename T > \fBQwtArraySeriesData\fP< T >::\fBQwtArraySeriesData\fP ()

Constructor.

template<typename T> \fBQwtArraySeriesData\fP< T >::\fBQwtArraySeriesData\fP (const QVector< T > &samples) Constructor

Parameters:

samples Array of samples

Member Function Documentation

template<typename T > T \fBQwtArraySeriesData\fP< T >::sample (size_ti) const\fC [virtual]\fP Return a sample

Parameters:

i Index

Returns:

Sample at position i

Implements QwtSeriesData< T >.

template<typename T > const QVector< T > \fBQwtArraySeriesData\fP< T >::samples () const \fBReturns:\fP

Array of samples

template<typename T> void \fBQwtArraySeriesData\fP< T >::setSamples (const QVector< T > &samples) Assign an array of samples

Parameters:

samples Array of samples

template<typename T > size_t \fBQwtArraySeriesData\fP< T >::size () const\fC [virtual]\fP \fBReturns:\fP

Number of samples

Implements QwtSeriesData< T >.

Member Data Documentation

template<typename T> QVector<T> \fBQwtArraySeriesData\fP< T >::\fBd_samples\fP\fC [protected]\fP

Vector of samples.

Author

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