vdr  2.0.4
Public Member Functions | Private Member Functions | Private Attributes | List of all members
cVector< T > Class Template Reference

#include <tools.h>

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 488 of file tools.h.

Constructor & Destructor Documentation

template<class T>
cVector< T >::cVector ( const cVector< T > &  Vector)
inlineprivate

Definition at line 494 of file tools.h.

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

Definition at line 510 of file tools.h.

template<class T>
virtual cVector< T >::~cVector ( )
inlinevirtual

Definition at line 517 of file tools.h.

Member Function Documentation

template<class T>
virtual void cVector< T >::Append ( Data)
inlinevirtual
template<class T>
T& cVector< T >::At ( int  Index) const
inline

Definition at line 518 of file tools.h.

template<class T>
virtual void cVector< T >::Clear ( void  )
inlinevirtual

Reimplemented in cStringList.

Definition at line 557 of file tools.h.

Referenced by cStringList::Clear(), and cSkinLCARSDisplayMenu::DrawTimers().

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

Definition at line 534 of file tools.h.

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

template<class T>
cVector& cVector< T >::operator= ( const cVector< T > &  Vector)
inlineprivate

Definition at line 495 of file tools.h.

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

Definition at line 525 of file tools.h.

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

Definition at line 529 of file tools.h.

template<class T>
void cVector< T >::Realloc ( int  Index) const
inlineprivate

Definition at line 496 of file tools.h.

template<class T>
virtual void cVector< T >::Remove ( int  Index)
inlinevirtual

Definition at line 551 of file tools.h.

Referenced by cOsd::~cOsd().

template<class T>
int cVector< T >::Size ( void  ) const
inline
template<class T>
void cVector< T >::Sort ( __compar_fn_t  Compare)
inline

Definition at line 563 of file tools.h.

Referenced by cStringList::Sort().

Member Data Documentation

template<class T>
int cVector< T >::allocated
mutableprivate

< cVector may only be used for simple types, like int or pointers - not for class objects that allocate additional memory!

Definition at line 491 of file tools.h.

template<class T>
T* cVector< T >::data
mutableprivate

Definition at line 493 of file tools.h.

template<class T>
int cVector< T >::size
mutableprivate

Definition at line 492 of file tools.h.


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