vdr  1.7.31
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)
 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
 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 480 of file include/vdr/tools.h.

Constructor & Destructor Documentation

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

Definition at line 486 of file include/vdr/tools.h.

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

Definition at line 502 of file include/vdr/tools.h.

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

Definition at line 509 of file include/vdr/tools.h.

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

Definition at line 486 of file tools.h.

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

Definition at line 502 of file tools.h.

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

Definition at line 509 of file tools.h.

Member Function Documentation

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

Definition at line 537 of file tools.h.

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

Definition at line 510 of file include/vdr/tools.h.

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

Definition at line 510 of file tools.h.

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

Reimplemented in cStringList, and cStringList.

Definition at line 549 of file include/vdr/tools.h.

Referenced by cSkinLCARSDisplayMenu::DrawTimers().

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

Reimplemented in cStringList, and cStringList.

Definition at line 549 of file tools.h.

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

Definition at line 526 of file tools.h.

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

Definition at line 526 of file include/vdr/tools.h.

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

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

Definition at line 487 of file tools.h.

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

Definition at line 487 of file include/vdr/tools.h.

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

Definition at line 517 of file include/vdr/tools.h.

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

Definition at line 517 of file tools.h.

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

Definition at line 521 of file tools.h.

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

Definition at line 521 of file include/vdr/tools.h.

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

Definition at line 488 of file include/vdr/tools.h.

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

Definition at line 488 of file tools.h.

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

Definition at line 543 of file include/vdr/tools.h.

Referenced by cOsd::~cOsd().

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

Definition at line 543 of file tools.h.

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

Definition at line 525 of file tools.h.

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

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

Definition at line 555 of file include/vdr/tools.h.

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 483 of file include/vdr/tools.h.

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

Definition at line 485 of file include/vdr/tools.h.

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

Definition at line 484 of file include/vdr/tools.h.


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