WTF
WTF::Vector< T, inlineCapacity > Class Template Reference
#include <Vector.h>
Public Types | |
typedef T | ValueType |
Public Member Functions | |
Vector () | |
Vector (const Vector &) | |
template<size_t otherCapacity> | |
Vector (const Vector< T, otherCapacity > &) | |
Vector (size_t size) | |
Vector (size_t size, const T &val) | |
~Vector () | |
template<typename U > | |
void | append (const U &) |
template<typename U > | |
void | append (const U *, size_t) |
template<typename U , size_t c> | |
void | append (const Vector< U, c > &) |
template<typename Iterator > | |
void | appendRange (Iterator start, Iterator end) |
T & | at (size_t i) |
const T & | at (size_t i) const |
iterator | begin () |
const_iterator | begin () const |
size_t | capacity () const |
void | clear () |
T * | data () |
const T * | data () const |
iterator | end () |
const_iterator | end () const |
void | fill (const T &, size_t) |
void | fill (const T &val) |
T & | first () |
const T & | first () const |
void | grow (size_t size) |
template<typename U > | |
void | insert (size_t position, const U &) |
template<typename U > | |
void | insert (size_t position, const U *, size_t) |
template<typename U , size_t c> | |
void | insert (size_t position, const Vector< U, c > &) |
bool | isEmpty () const |
T & | last () |
const T & | last () const |
Vector & | operator= (const Vector &) |
template<size_t otherCapacity> | |
Vector & | operator= (const Vector< T, otherCapacity > &) |
template<size_t otherCapacity> | |
Vector< T, inlineCapacity > & | operator= (const Vector< T, otherCapacity > &other) |
T & | operator[] (size_t i) |
const T & | operator[] (size_t i) const |
template<typename U > | |
void | prepend (const U &) |
template<typename U > | |
void | prepend (const U *, size_t) |
template<typename U , size_t c> | |
void | prepend (const Vector< U, c > &) |
T * | releaseBuffer () |
void | remove (size_t position) |
void | remove (size_t position, size_t length) |
void | removeLast () |
void | reserveCapacity (size_t newCapacity) |
void | resize (size_t size) |
void | shrink (size_t size) |
void | shrinkCapacity (size_t newCapacity) |
size_t | size () const |
void | swap (Vector< T, inlineCapacity > &other) |
template<typename U > | |
void | uncheckedAppend (const U &val) |
Detailed Description
template<typename T, size_t inlineCapacity = 0>
class WTF::Vector< T, inlineCapacity >
class WTF::Vector< T, inlineCapacity >
Member Typedef Documentation
◆ ValueType
template<typename T , size_t inlineCapacity = 0>
typedef T WTF::Vector< T, inlineCapacity >::ValueType |
Constructor & Destructor Documentation
◆ Vector() [1/5]
template<typename T , size_t inlineCapacity = 0>
|
inline |
◆ Vector() [2/5]
template<typename T , size_t inlineCapacity = 0>
|
inlineexplicit |
◆ ~Vector()
template<typename T , size_t inlineCapacity = 0>
|
inline |
◆ Vector() [3/5]
template<typename T , size_t inlineCapacity>
WTF::Vector< T, inlineCapacity >::Vector | ( | const Vector< T, inlineCapacity > & | other | ) |
◆ Vector() [4/5]
template<typename T , size_t inlineCapacity>
template<size_t otherCapacity>
WTF::Vector< T, inlineCapacity >::Vector | ( | const Vector< T, otherCapacity > & | other | ) |
◆ Vector() [5/5]
template<typename T , size_t inlineCapacity = 0>
|
inline |
Member Function Documentation
◆ append() [1/3]
template<typename T , size_t inlineCapacity>
template<typename U >
|
inline |
◆ append() [2/3]
template<typename T , size_t inlineCapacity>
template<typename U >
void WTF::Vector< T, inlineCapacity >::append | ( | const U * | data, |
size_t | dataSize | ||
) |
◆ append() [3/3]
template<typename T , size_t inlineCapacity>
template<typename U , size_t c>
|
inline |
◆ appendRange()
template<typename T , size_t inlineCapacity>
template<typename Iterator >
void WTF::Vector< T, inlineCapacity >::appendRange | ( | Iterator | start, |
Iterator | end | ||
) |
◆ at() [1/2]
template<typename T , size_t inlineCapacity = 0>
|
inline |
◆ at() [2/2]
template<typename T , size_t inlineCapacity = 0>
|
inline |
◆ begin() [1/2]
template<typename T , size_t inlineCapacity = 0>
|
inline |
◆ begin() [2/2]
template<typename T , size_t inlineCapacity = 0>
|
inline |
◆ capacity()
template<typename T , size_t inlineCapacity = 0>
|
inline |
◆ clear()
template<typename T , size_t inlineCapacity = 0>
|
inline |
◆ data() [1/2]
template<typename T , size_t inlineCapacity = 0>
|
inline |
◆ data() [2/2]
template<typename T , size_t inlineCapacity = 0>
|
inline |
◆ end() [1/2]
template<typename T , size_t inlineCapacity = 0>
|
inline |
◆ end() [2/2]
template<typename T , size_t inlineCapacity = 0>
|
inline |
◆ fill() [1/2]
template<typename T , size_t inlineCapacity>
void WTF::Vector< T, inlineCapacity >::fill | ( | const T & | val, |
size_t | newSize | ||
) |
◆ fill() [2/2]
template<typename T , size_t inlineCapacity = 0>
|
inline |
◆ first() [1/2]
template<typename T , size_t inlineCapacity = 0>
|
inline |
◆ first() [2/2]
template<typename T , size_t inlineCapacity = 0>
|
inline |
◆ grow()
template<typename T , size_t inlineCapacity>
void WTF::Vector< T, inlineCapacity >::grow | ( | size_t | size | ) |
◆ insert() [1/3]
template<typename T , size_t inlineCapacity>
template<typename U >
|
inline |
◆ insert() [2/3]
template<typename T , size_t inlineCapacity>
template<typename U >
void WTF::Vector< T, inlineCapacity >::insert | ( | size_t | position, |
const U * | data, | ||
size_t | dataSize | ||
) |
◆ insert() [3/3]
template<typename T , size_t inlineCapacity>
template<typename U , size_t c>
|
inline |
◆ isEmpty()
template<typename T , size_t inlineCapacity = 0>
|
inline |
◆ last() [1/2]
template<typename T , size_t inlineCapacity = 0>
|
inline |
◆ last() [2/2]
template<typename T , size_t inlineCapacity = 0>
|
inline |
◆ operator=() [1/3]
template<typename T , size_t inlineCapacity>
Vector< T, inlineCapacity > & WTF::Vector< T, inlineCapacity >::operator= | ( | const Vector< T, inlineCapacity > & | other | ) |
◆ operator=() [2/3]
template<typename T , size_t inlineCapacity = 0>
template<size_t otherCapacity>
Vector & WTF::Vector< T, inlineCapacity >::operator= | ( | const Vector< T, otherCapacity > & | ) |
◆ operator=() [3/3]
template<typename T , size_t inlineCapacity = 0>
template<size_t otherCapacity>
Vector< T, inlineCapacity > & WTF::Vector< T, inlineCapacity >::operator= | ( | const Vector< T, otherCapacity > & | other | ) |
◆ operator[]() [1/2]
template<typename T , size_t inlineCapacity = 0>
|
inline |
◆ operator[]() [2/2]
template<typename T , size_t inlineCapacity = 0>
|
inline |
◆ prepend() [1/3]
template<typename T , size_t inlineCapacity>
template<typename U >
|
inline |
◆ prepend() [2/3]
template<typename T , size_t inlineCapacity>
template<typename U >
void WTF::Vector< T, inlineCapacity >::prepend | ( | const U * | data, |
size_t | dataSize | ||
) |
◆ prepend() [3/3]
template<typename T , size_t inlineCapacity>
template<typename U , size_t c>
|
inline |
◆ releaseBuffer()
template<typename T , size_t inlineCapacity>
|
inline |
◆ remove() [1/2]
template<typename T , size_t inlineCapacity>
|
inline |
◆ remove() [2/2]
template<typename T , size_t inlineCapacity>
|
inline |
◆ removeLast()
template<typename T , size_t inlineCapacity = 0>
|
inline |
◆ reserveCapacity()
template<typename T , size_t inlineCapacity>
void WTF::Vector< T, inlineCapacity >::reserveCapacity | ( | size_t | newCapacity | ) |
◆ resize()
template<typename T , size_t inlineCapacity>
void WTF::Vector< T, inlineCapacity >::resize | ( | size_t | size | ) |
◆ shrink()
template<typename T , size_t inlineCapacity>
void WTF::Vector< T, inlineCapacity >::shrink | ( | size_t | size | ) |
◆ shrinkCapacity()
template<typename T , size_t inlineCapacity>
void WTF::Vector< T, inlineCapacity >::shrinkCapacity | ( | size_t | newCapacity | ) |
◆ size()
template<typename T , size_t inlineCapacity = 0>
|
inline |
◆ swap()
template<typename T , size_t inlineCapacity = 0>
|
inline |
◆ uncheckedAppend()
template<typename T , size_t inlineCapacity>
template<typename U >
|
inline |
The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.