QVarLengthArray

#include <QtCore/QVarLengthArray>

More information will be added here shortly. For now, you'll find more extensive information about this class in the Qt reference for QVarLengthArray


Overview

Public Types Index

const T *const_iterator
const value_type *const_pointer
const value_type &const_reference
qptrdiffdifference_type
T *iterator
value_type *pointer
value_type &reference
intsize_type
Tvalue_type

Public Attributes Index

Public Functions Index

QVarLengthArray (int size=0)
QVarLengthArray (const QVarLengthArray< T, Prealloc > &other)
~QVarLengthArray ()
voidappend (const T &t)
voidappend (const T *buf, int size)
const T &at (int idx) const
iteratorbegin ()
const_iteratorbegin () const
intcapacity () const
voidclear ()
const_iteratorconstBegin () const
const T *constData () const
const_iteratorconstEnd () const
intcount () const
T *data ()
const T *data () const
iteratorend ()
const_iteratorend () const
iteratorerase (iterator begin, iterator end)
iteratorerase (iterator pos)
voidinsert (int i, const T &t)
voidinsert (int i, int n, const T &t)
iteratorinsert (iterator before, int n, const T &x)
iteratorinsert (iterator before, const T &x)
boolisEmpty () const
QVarLengthArray< T, Prealloc > &operator+= (const T &t)
QVarLengthArray< T, Prealloc > &operator<< (const T &t)
QVarLengthArray< T, Prealloc > &operator= (const QVarLengthArray< T, Prealloc > &other)
T &operator[] (int idx)
const T &operator[] (int idx) const
voidprepend (const T &t)
voidremove (int i)
voidremove (int i, int n)
voidremoveLast ()
voidreplace (int i, const T &t)
voidreserve (int size)
voidresize (int size)
intsize () const
Tvalue (int i) const
Tvalue (int i, const T &defaultValue) const

Public Types

typedef const T * const_iterator

typedef const value_type * const_pointer

typedef const value_type & const_reference

typedef qptrdiff difference_type

typedef T * iterator

typedef value_type * pointer

typedef value_type & reference

typedef int size_type

typedef T value_type

Public Attributes

char array ()

qint64 q_for_alignment_1 ()

double q_for_alignment_2 ()

Public Functions

QVarLengthArray (
  • intsize)

QVarLengthArray (

~QVarLengthArray ()

Destructor.

void append (
  • const T &t)

void append (
  • const T *buf,
  • intsize )

const T & at (
  • intidx)

iterator begin ()

const_iterator begin ()

int capacity ()

void clear ()

const_iterator constBegin ()

const T * constData ()

const_iterator constEnd ()

int count ()

T * data ()

const T * data ()

iterator end ()

const_iterator end ()

iterator erase (
  • iteratorbegin,
  • iteratorend )

iterator erase (
  • iteratorpos)

void insert (
  • inti,
  • const T &t )

void insert (
  • inti,
  • intn,
  • const T &t )

iterator insert (
  • iteratorbefore,
  • intn,
  • const T &x )

iterator insert (
  • iteratorbefore,
  • const T &x )

bool isEmpty ()

QVarLengthArray< T, Prealloc > & operator+= (
  • const T &t)

QVarLengthArray< T, Prealloc > & operator<< (
  • const T &t)

QVarLengthArray< T, Prealloc > & operator= (

T & operator[] (
  • intidx)

const T & operator[] (
  • intidx)

void prepend (
  • const T &t)

void remove (
  • inti)

void remove (
  • inti,
  • intn )

void removeLast ()

void replace (
  • inti,
  • const T &t )

void reserve (
  • intsize)

void resize (
  • intsize)

int size ()

T value (
  • inti)

T value (
  • inti,
  • const T &defaultValue )

Last modified: 2015-07-24



Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus