cVector< T > Class Template Reference

#include <tools.h>

Collaboration diagram for cVector< T >:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 cVector (int Allocated=10)
virtual ~cVector ()
T & At (int Index) const
const T & operator[] (int Index) const
T & operator[] (int Index)
int Size (void) const
virtual void Insert (T Data, int Before=0)
virtual void Append (T Data)
virtual void Remove (int Index)
virtual void Clear (void)
void Sort (__compar_fn_t Compare)

Private Member Functions

 cVector (const cVector &Vector)
cVectoroperator= (const cVector &Vector)
void Realloc (int Index) const

Private Attributes

int allocated
int size
T * data


Detailed Description

template<class T>
class cVector< T >

Definition at line 413 of file tools.h.


Constructor & Destructor Documentation

template<class T>
cVector< T >::cVector ( const cVector< T > &  Vector  )  [inline, private]

Definition at line 418 of file tools.h.

template<class T>
cVector< T >::cVector ( int  Allocated = 10  )  [inline]

Definition at line 430 of file tools.h.

template<class T>
virtual cVector< T >::~cVector (  )  [inline, virtual]

Definition at line 437 of file tools.h.


Member Function Documentation

template<class T>
cVector& cVector< T >::operator= ( const cVector< T > &  Vector  )  [inline, private]

Definition at line 419 of file tools.h.

template<class T>
void cVector< T >::Realloc ( int  Index  )  const [inline, private]

Definition at line 420 of file tools.h.

template<class T>
T& cVector< T >::At ( int  Index  )  const [inline]

Definition at line 438 of file tools.h.

template<class T>
const T& cVector< T >::operator[] ( int  Index  )  const [inline]

Definition at line 445 of file tools.h.

template<class T>
T& cVector< T >::operator[] ( int  Index  )  [inline]

Definition at line 449 of file tools.h.

template<class T>
int cVector< T >::Size ( void   )  const [inline]

template<class T>
virtual void cVector< T >::Insert ( Data,
int  Before = 0 
) [inline, virtual]

Definition at line 454 of file tools.h.

Referenced by cMenuSetupOSD::cMenuSetupOSD(), and cOsd::cOsd().

template<class T>
virtual void cVector< T >::Append ( Data  )  [inline, virtual]

template<class T>
virtual void cVector< T >::Remove ( int  Index  )  [inline, virtual]

Definition at line 471 of file tools.h.

Referenced by cOsd::~cOsd().

template<class T>
virtual void cVector< T >::Clear ( void   )  [inline, virtual]

Reimplemented in cStringList.

Definition at line 477 of file tools.h.

Referenced by cStringList::Clear().

template<class T>
void cVector< T >::Sort ( __compar_fn_t  Compare  )  [inline]

Definition at line 481 of file tools.h.

Referenced by cStringList::Sort().


Member Data Documentation

template<class T>
int cVector< T >::allocated [mutable, private]

Definition at line 415 of file tools.h.

template<class T>
int cVector< T >::size [mutable, private]

Definition at line 416 of file tools.h.

template<class T>
T* cVector< T >::data [mutable, private]

Definition at line 417 of file tools.h.


The documentation for this class was generated from the following file:

Generated on Tue Jan 13 14:33:19 2009 for VDR by  doxygen 1.5.6