QVector

#include <QtCore/QVector>

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


Overview

Inheritance

QVector
QStack

Public Types Index

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

Public Attributes Index

Public Functions Index

QVector ()
QVector (int size)
QVector (int size, const T &t)
QVector (const QVector< T > &v)
~QVector ()
voidappend (const T &t)
const T &at (int i) const
referenceback ()
const_referenceback () const
iteratorbegin ()
const_iteratorbegin () const
intcapacity () const
voidclear ()
const_iteratorconstBegin () const
const T *constData () const
const_iteratorconstEnd () const
boolcontains (const T &t) const
intcount (const T &t) const
intcount () const
T *data ()
const T *data () const
voiddetach ()
boolempty () const
iteratorend ()
const_iteratorend () const
boolendsWith (const T &t) const
iteratorerase (iterator begin, iterator end)
iteratorerase (iterator pos)
QVector< T > &fill (const T &t, int size=-1)
T &first ()
const T &first () const
T &front ()
const_referencefront () const
intindexOf (const T &t, int from=0) const
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)
boolisDetached () const
boolisEmpty () const
boolisSharedWith (const QVector< T > &other) const
T &last ()
const T &last () const
intlastIndexOf (const T &t, int from=-1) const
QVector< T >mid (int pos, int length=-1) const
booloperator!= (const QVector< T > &v) const
QVector< T >operator+ (const QVector< T > &l) const
QVector< T > &operator+= (const QVector< T > &l)
QVector< T > &operator+= (const T &t)
QVector< T > &operator<< (const T &t)
QVector< T > &operator<< (const QVector< T > &l)
QVector< T > &operator= (const QVector< T > &v)
booloperator== (const QVector< T > &v) const
T &operator[] (int i)
const T &operator[] (int i) const
voidpop_back ()
voidpop_front ()
voidprepend (const T &t)
voidpush_back (const T &t)
voidpush_front (const T &t)
voidremove (int i)
voidremove (int i, int n)
voidreplace (int i, const T &t)
voidreserve (int size)
voidresize (int size)
voidsetSharable (bool sharable)
intsize () const
voidsqueeze ()
boolstartsWith (const T &t) const
voidswap (QVector< T > &other)
QList< T >toList () const
std::vector< T >toStdVector () const
Tvalue (int i) const
Tvalue (int i, const T &defaultValue) const

Static Public Functions Index

QVector< T >fromList (const QList< T > &list)
QVector< T >fromStdVector (const std::vector< T > &vector)

Public Types

typedef const T * const_iterator

typedef const value_type * const_pointer

typedef const value_type & const_reference

typedef const_iterator ConstIterator

typedef qptrdiff difference_type

typedef T * iterator

typedef iterator Iterator

typedef value_type * pointer

typedef value_type & reference

typedef int size_type

typedef T value_type

Public Attributes

Data * p ()

Public Functions

QVector ()

QVector (
  • intsize)

QVector (
  • intsize,
  • const T &t )

QVector (

~QVector ()

Destructor.

void append (
  • const T &t)

const T & at (
  • inti)

reference back ()

const_reference back ()

iterator begin ()

const_iterator begin ()

int capacity ()

void clear ()

const_iterator constBegin ()

const T * constData ()

const_iterator constEnd ()

bool contains (
  • const T &t)

int count (
  • const T &t)

int count ()

T * data ()

const T * data ()

void detach ()

bool empty ()

iterator end ()

const_iterator end ()

bool endsWith (
  • const T &t)

iterator erase (
  • iteratorbegin,
  • iteratorend )

iterator erase (
  • iteratorpos)

QVector< T > & fill (
  • const T &t,
  • intsize )

T & first ()

const T & first ()

T & front ()

const_reference front ()

int indexOf (
  • const T &t,
  • intfrom )

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 isDetached ()

bool isEmpty ()

bool isSharedWith (

T & last ()

const T & last ()

int lastIndexOf (
  • const T &t,
  • intfrom )

QVector< T > mid (
  • intpos,
  • intlength )

bool operator!= (

QVector< T > operator+ (

QVector< T > & operator+= (

QVector< T > & operator+= (
  • const T &t)

QVector< T > & operator<< (
  • const T &t)

QVector< T > & operator<< (

QVector< T > & operator= (

bool operator== (

T & operator[] (
  • inti)

const T & operator[] (
  • inti)

void pop_back ()

void pop_front ()

void prepend (
  • const T &t)

void push_back (
  • const T &t)

void push_front (
  • const T &t)

void remove (
  • inti)

void remove (
  • inti,
  • intn )

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

void reserve (
  • intsize)

void resize (
  • intsize)

void setSharable (
  • boolsharable)

int size ()

void squeeze ()

bool startsWith (
  • const T &t)

void swap (

QList< T > toList ()

std::vector< T > toStdVector ()

T value (
  • inti)

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

Static Public Functions

QVector< T > fromList (

QVector< T > fromStdVector (
  • const std::vector< T > &vector)

Last modified: 2015-07-24



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

comments powered by Disqus