• Skip to content
  • Skip to link menu
KDE 4.3 API Reference
  • KDE API Reference
  • kdelibs
  • Sitemap
  • Contact Us
 

WTF

WTF::Vector

WTF::Vector< T, inlineCapacity > Class Template Reference

#include <Vector.h>

List of all members.

Public Types

typedef const T * const_iterator
typedef T * iterator
typedef T ValueType

Public Member Functions

template<typename U , size_t c>
void append (const Vector< U, c > &)
template<typename U >
void append (const U &)
template<typename U >
void append (const U *, size_t)
template<typename Iterator >
void appendRange (Iterator start, Iterator end)
const T & at (size_t i) const
T & at (size_t i)
const_iterator begin () const
iterator begin ()
size_t capacity () const
void clear ()
const T * data () const
T * data ()
const_iterator end () const
iterator end ()
void fill (const T &val)
void fill (const T &, size_t)
const T & first () const
T & first ()
void grow (size_t size)
template<typename U , size_t c>
void insert (size_t position, const Vector< U, c > &)
template<typename U >
void insert (size_t position, const U &)
template<typename U >
void insert (size_t position, const U *, size_t)
bool isEmpty () const
const T & last () const
T & last ()
template<size_t otherCapacity>
Vector & operator= (const Vector< T, otherCapacity > &)
Vector & operator= (const Vector &)
const T & operator[] (size_t i) const
T & operator[] (size_t i)
template<typename U , size_t c>
void prepend (const Vector< U, c > &)
template<typename U >
void prepend (const U &)
template<typename U >
void prepend (const U *, size_t)
T * releaseBuffer ()
void remove (size_t position, size_t length)
void remove (size_t position)
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)
 Vector (size_t size, const T &val)
template<size_t otherCapacity>
 Vector (const Vector< T, otherCapacity > &)
 Vector (const Vector &)
 Vector (size_t size)
 Vector ()
 ~Vector ()

Detailed Description

template<typename T, size_t inlineCapacity = 0>
class WTF::Vector< T, inlineCapacity >

Definition at line 396 of file Vector.h.


Member Typedef Documentation

template<typename T, size_t inlineCapacity = 0>
typedef const T* WTF::Vector< T, inlineCapacity >::const_iterator

Definition at line 405 of file Vector.h.

template<typename T, size_t inlineCapacity = 0>
typedef T* WTF::Vector< T, inlineCapacity >::iterator

Definition at line 404 of file Vector.h.

template<typename T, size_t inlineCapacity = 0>
typedef T WTF::Vector< T, inlineCapacity >::ValueType

Definition at line 402 of file Vector.h.


Constructor & Destructor Documentation

template<typename T, size_t inlineCapacity = 0>
WTF::Vector< T, inlineCapacity >::Vector (  )  [inline]

Definition at line 407 of file Vector.h.

template<typename T, size_t inlineCapacity = 0>
WTF::Vector< T, inlineCapacity >::Vector ( size_t  size  )  [inline, explicit]

Definition at line 412 of file Vector.h.

template<typename T, size_t inlineCapacity = 0>
WTF::Vector< T, inlineCapacity >::~Vector (  )  [inline]

Definition at line 419 of file Vector.h.

template<typename T , size_t inlineCapacity>
WTF::Vector< T, inlineCapacity >::Vector ( const Vector< T, inlineCapacity > &  other  )  [inline]

Definition at line 523 of file Vector.h.

template<typename T, size_t inlineCapacity = 0>
template<size_t otherCapacity>
WTF::Vector< T, inlineCapacity >::Vector ( const Vector< T, otherCapacity > &   )  [inline]
template<typename T, size_t inlineCapacity = 0>
WTF::Vector< T, inlineCapacity >::Vector ( size_t  size,
const T &  val 
) [inline]

Definition at line 493 of file Vector.h.


Member Function Documentation

template<typename T , size_t inlineCapacity>
template<typename U , size_t c>
void WTF::Vector< T, inlineCapacity >::append ( const Vector< U, c > &  val  )  [inline]

Definition at line 750 of file Vector.h.

template<typename T , size_t inlineCapacity>
template<typename U >
void WTF::Vector< T, inlineCapacity >::append ( const U &  val  )  [inline]

Definition at line 714 of file Vector.h.

template<typename T , size_t inlineCapacity>
template<typename U >
void WTF::Vector< T, inlineCapacity >::append ( const U *  data,
size_t  dataSize 
) [inline]

Definition at line 699 of file Vector.h.

template<typename T , size_t inlineCapacity>
template<typename Iterator >
void WTF::Vector< T, inlineCapacity >::appendRange ( Iterator  start,
Iterator  end 
) [inline]

Definition at line 597 of file Vector.h.

template<typename T, size_t inlineCapacity = 0>
const T& WTF::Vector< T, inlineCapacity >::at ( size_t  i  )  const [inline]

Definition at line 441 of file Vector.h.

template<typename T, size_t inlineCapacity = 0>
T& WTF::Vector< T, inlineCapacity >::at ( size_t  i  )  [inline]

Definition at line 436 of file Vector.h.

template<typename T, size_t inlineCapacity = 0>
const_iterator WTF::Vector< T, inlineCapacity >::begin (  )  const [inline]

Definition at line 455 of file Vector.h.

template<typename T, size_t inlineCapacity = 0>
iterator WTF::Vector< T, inlineCapacity >::begin (  )  [inline]

Definition at line 453 of file Vector.h.

template<typename T, size_t inlineCapacity = 0>
size_t WTF::Vector< T, inlineCapacity >::capacity (  )  const [inline]

Definition at line 433 of file Vector.h.

template<typename T, size_t inlineCapacity = 0>
void WTF::Vector< T, inlineCapacity >::clear (  )  [inline]

Definition at line 469 of file Vector.h.

template<typename T, size_t inlineCapacity = 0>
const T* WTF::Vector< T, inlineCapacity >::data (  )  const [inline]

Definition at line 451 of file Vector.h.

template<typename T, size_t inlineCapacity = 0>
T* WTF::Vector< T, inlineCapacity >::data (  )  [inline]

Definition at line 450 of file Vector.h.

template<typename T, size_t inlineCapacity = 0>
const_iterator WTF::Vector< T, inlineCapacity >::end (  )  const [inline]

Definition at line 456 of file Vector.h.

template<typename T, size_t inlineCapacity = 0>
iterator WTF::Vector< T, inlineCapacity >::end (  )  [inline]

Definition at line 454 of file Vector.h.

template<typename T, size_t inlineCapacity = 0>
void WTF::Vector< T, inlineCapacity >::fill ( const T &  val  )  [inline]

Definition at line 501 of file Vector.h.

template<typename T , size_t inlineCapacity>
void WTF::Vector< T, inlineCapacity >::fill ( const T &  val,
size_t  newSize 
) [inline]

Definition at line 581 of file Vector.h.

template<typename T, size_t inlineCapacity = 0>
const T& WTF::Vector< T, inlineCapacity >::first (  )  const [inline]

Definition at line 459 of file Vector.h.

template<typename T, size_t inlineCapacity = 0>
T& WTF::Vector< T, inlineCapacity >::first (  )  [inline]

Definition at line 458 of file Vector.h.

template<typename T , size_t inlineCapacity>
void WTF::Vector< T, inlineCapacity >::grow ( size_t  size  )  [inline]

Definition at line 652 of file Vector.h.

template<typename T , size_t inlineCapacity>
template<typename U , size_t c>
void WTF::Vector< T, inlineCapacity >::insert ( size_t  position,
const Vector< U, c > &  val 
) [inline]

Definition at line 789 of file Vector.h.

template<typename T , size_t inlineCapacity>
template<typename U >
void WTF::Vector< T, inlineCapacity >::insert ( size_t  position,
const U &  val 
) [inline]

Definition at line 773 of file Vector.h.

template<typename T , size_t inlineCapacity>
template<typename U >
void WTF::Vector< T, inlineCapacity >::insert ( size_t  position,
const U *  data,
size_t  dataSize 
) [inline]

Definition at line 756 of file Vector.h.

template<typename T, size_t inlineCapacity = 0>
bool WTF::Vector< T, inlineCapacity >::isEmpty (  )  const [inline]

Definition at line 434 of file Vector.h.

template<typename T, size_t inlineCapacity = 0>
const T& WTF::Vector< T, inlineCapacity >::last (  )  const [inline]

Definition at line 461 of file Vector.h.

template<typename T, size_t inlineCapacity = 0>
T& WTF::Vector< T, inlineCapacity >::last (  )  [inline]

Definition at line 460 of file Vector.h.

template<typename T, size_t inlineCapacity = 0>
template<size_t otherCapacity>
Vector& WTF::Vector< T, inlineCapacity >::operator= ( const Vector< T, otherCapacity > &   )  [inline]
template<typename T , size_t inlineCapacity>
Vector< T, inlineCapacity > & WTF::Vector< T, inlineCapacity >::operator= ( const Vector< T, inlineCapacity > &  other  )  [inline]

Definition at line 540 of file Vector.h.

template<typename T, size_t inlineCapacity = 0>
const T& WTF::Vector< T, inlineCapacity >::operator[] ( size_t  i  )  const [inline]

Definition at line 448 of file Vector.h.

template<typename T, size_t inlineCapacity = 0>
T& WTF::Vector< T, inlineCapacity >::operator[] ( size_t  i  )  [inline]

Definition at line 447 of file Vector.h.

template<typename T , size_t inlineCapacity>
template<typename U , size_t c>
void WTF::Vector< T, inlineCapacity >::prepend ( const Vector< U, c > &  val  )  [inline]

Definition at line 807 of file Vector.h.

template<typename T , size_t inlineCapacity>
template<typename U >
void WTF::Vector< T, inlineCapacity >::prepend ( const U &  val  )  [inline]

Definition at line 801 of file Vector.h.

template<typename T , size_t inlineCapacity>
template<typename U >
void WTF::Vector< T, inlineCapacity >::prepend ( const U *  data,
size_t  dataSize 
) [inline]

Definition at line 795 of file Vector.h.

template<typename T , size_t inlineCapacity>
T * WTF::Vector< T, inlineCapacity >::releaseBuffer (  )  [inline]

Definition at line 835 of file Vector.h.

template<typename T , size_t inlineCapacity>
void WTF::Vector< T, inlineCapacity >::remove ( size_t  position,
size_t  length 
) [inline]

Definition at line 823 of file Vector.h.

template<typename T , size_t inlineCapacity>
void WTF::Vector< T, inlineCapacity >::remove ( size_t  position  )  [inline]

Definition at line 813 of file Vector.h.

template<typename T, size_t inlineCapacity = 0>
void WTF::Vector< T, inlineCapacity >::removeLast (  )  [inline]

Definition at line 487 of file Vector.h.

template<typename T , size_t inlineCapacity>
void WTF::Vector< T, inlineCapacity >::reserveCapacity ( size_t  newCapacity  )  [inline]

Definition at line 663 of file Vector.h.

template<typename T , size_t inlineCapacity>
void WTF::Vector< T, inlineCapacity >::resize ( size_t  size  )  [inline]

Definition at line 629 of file Vector.h.

template<typename T , size_t inlineCapacity>
void WTF::Vector< T, inlineCapacity >::shrink ( size_t  size  )  [inline]

Definition at line 644 of file Vector.h.

template<typename T , size_t inlineCapacity>
void WTF::Vector< T, inlineCapacity >::shrinkCapacity ( size_t  newCapacity  )  [inline]

Definition at line 676 of file Vector.h.

template<typename T, size_t inlineCapacity = 0>
size_t WTF::Vector< T, inlineCapacity >::size (  )  const [inline]

Definition at line 432 of file Vector.h.

template<typename T, size_t inlineCapacity = 0>
void WTF::Vector< T, inlineCapacity >::swap ( Vector< T, inlineCapacity > &  other  )  [inline]

Definition at line 507 of file Vector.h.

template<typename T , size_t inlineCapacity>
template<typename U >
void WTF::Vector< T, inlineCapacity >::uncheckedAppend ( const U &  val  )  [inline]

Definition at line 741 of file Vector.h.


The documentation for this class was generated from the following file:
  • Vector.h

WTF

Skip menu "WTF"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.6.1
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal