• Skip to content
  • Skip to link menu
KDE 4.0 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.


Detailed Description

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

Definition at line 313 of file Vector.h.


Public Types

typedef T * iterator
typedef const T * const_iterator

Public Member Functions

 Vector ()
 Vector (size_t size)
 ~Vector ()
 Vector (const Vector &)
template<size_t otherCapacity>
 Vector (const Vector< T, otherCapacity > &)
Vector & operator= (const Vector &)
template<size_t otherCapacity>
Vector & operator= (const Vector< T, otherCapacity > &)
size_t size () const
size_t capacity () const
bool isEmpty () const
T & at (size_t i)
const T & at (size_t i) const
T & operator[] (long i)
const T & operator[] (long i) const
T & operator[] (unsigned long i)
const T & operator[] (unsigned long i) const
T & operator[] (int i)
const T & operator[] (int i) const
T & operator[] (unsigned i)
const T & operator[] (unsigned i) const
T & operator[] (short i)
const T & operator[] (short i) const
T & operator[] (unsigned short i)
const T & operator[] (unsigned short i) const
T * data ()
const T * data () const
 operator T * ()
 operator const T * () const
iterator begin ()
iterator end ()
const_iterator begin () const
const_iterator end () const
T & first ()
const T & first () const
T & last ()
const T & last () const
void resize (size_t size)
void reserveCapacity (size_t newCapacity)
void clear ()
template<typename U>
void append (const U &)
template<typename U>
void append (const Vector< U > &)
template<typename U>
void insert (size_t position, const U &)
void remove (size_t position)
void removeLast ()
 Vector (size_t size, const T &val)
void fill (const T &val, size_t size)
void fill (const T &val)
void swap (Vector< T, inlineCapacity > &other)

Member Typedef Documentation

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

Definition at line 319 of file Vector.h.

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

Definition at line 320 of file Vector.h.


Constructor & Destructor Documentation

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

Definition at line 322 of file Vector.h.

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

Definition at line 327 of file Vector.h.

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

Definition at line 333 of file Vector.h.

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

Definition at line 431 of file Vector.h.

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

Definition at line 440 of file Vector.h.

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

Definition at line 405 of file Vector.h.


Member Function Documentation

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

Definition at line 448 of file Vector.h.

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

Definition at line 469 of file Vector.h.

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

Definition at line 346 of file Vector.h.

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

Definition at line 347 of file Vector.h.

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

Definition at line 348 of file Vector.h.

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

Definition at line 350 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 355 of file Vector.h.

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

Definition at line 361 of file Vector.h.

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

Definition at line 362 of file Vector.h.

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

Definition at line 363 of file Vector.h.

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

Definition at line 364 of file Vector.h.

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

Definition at line 365 of file Vector.h.

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

Definition at line 366 of file Vector.h.

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

Definition at line 367 of file Vector.h.

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

Definition at line 368 of file Vector.h.

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

Definition at line 369 of file Vector.h.

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

Definition at line 370 of file Vector.h.

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

Definition at line 371 of file Vector.h.

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

Definition at line 372 of file Vector.h.

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

Definition at line 374 of file Vector.h.

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

Definition at line 375 of file Vector.h.

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

Definition at line 376 of file Vector.h.

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

Definition at line 377 of file Vector.h.

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

Definition at line 379 of file Vector.h.

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

Definition at line 380 of file Vector.h.

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

Definition at line 381 of file Vector.h.

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

Definition at line 382 of file Vector.h.

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

Definition at line 384 of file Vector.h.

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

Definition at line 385 of file Vector.h.

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

Definition at line 386 of file Vector.h.

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

Definition at line 387 of file Vector.h.

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

Definition at line 529 of file Vector.h.

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

Definition at line 543 of file Vector.h.

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

Definition at line 392 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 559 of file Vector.h.

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

Definition at line 573 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 582 of file Vector.h.

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

Definition at line 595 of file Vector.h.

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

Definition at line 399 of file Vector.h.

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

Definition at line 489 of file Vector.h.

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

Definition at line 413 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 415 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
  •   WTF
  • KJSEmbed
  • KNewStuff
  • KParts
  • Kross
  • KUtils
  • Nepomuk
  •   core
  • Phonon
  •   Backend
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.5.4
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