All the QVector methods of the member QVector are available except Resize, Append and in general all the methods changing the size. Once a QVectorView is created the member QVector keep the original size and operate on the same memory of the input QVector.
Public Member Functions | |
QVectorView (QVector &in, size_t start, size_t size) | |
constructor | |
virtual | ~QVectorView () |
destructor: do not destroy the input QVector | |
QVector & | GetVector () const |
Get subview QVector. | |
Private Member Functions | |
const QVectorView & | operator= (const QVectorView &other) |
operator= | |
Private Attributes | |
QVector * | fVector |
Q_BEGIN_NAMESPACE QVectorView::QVectorView | ( | QVector & | in, | |
size_t | start, | |||
size_t | size | |||
) |
constructor
in | QVector this view refers to | |
start | start index of the view | |
size | number of the view elements |