vdr 2.6.8
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 IndexOf (const T &Data)
 
int Size (void) const
 
virtual void Insert (T Data, int Before=0)
 
bool InsertUnique (T Data, int Before=0)
 
virtual void Append (T Data)
 
bool AppendUnique (T Data)
 
virtual void Remove (int Index)
 
bool RemoveElement (const T &Data)
 
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 714 of file tools.h.

Constructor & Destructor Documentation

◆ cVector() [1/2]

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

Definition at line 720 of file tools.h.

◆ cVector() [2/2]

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

Definition at line 736 of file tools.h.

◆ ~cVector()

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

Definition at line 743 of file tools.h.

Member Function Documentation

◆ Append()

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

◆ AppendUnique()

template<class T >
bool cVector< T >::AppendUnique ( T Data)
inline

Definition at line 793 of file tools.h.

◆ At()

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

◆ Clear()

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

◆ IndexOf()

template<class T >
int cVector< T >::IndexOf ( const T & Data)
inline

Definition at line 759 of file tools.h.

Referenced by cMtdMapper::RealToUniqSid(), and cCursesOsd::SetColor().

◆ Insert()

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

◆ InsertUnique()

template<class T >
bool cVector< T >::InsertUnique ( T Data,
int Before = 0 )
inline

Definition at line 779 of file tools.h.

◆ operator=()

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

Definition at line 721 of file tools.h.

◆ operator[]() [1/2]

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

Definition at line 755 of file tools.h.

◆ operator[]() [2/2]

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

Definition at line 751 of file tools.h.

◆ Realloc()

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

Definition at line 722 of file tools.h.

References esyslog.

◆ Remove()

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

◆ RemoveElement()

template<class T >
bool cVector< T >::RemoveElement ( const T & Data)
inline

Definition at line 809 of file tools.h.

Referenced by cCiCaPmtList::Del().

◆ Size()

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

Definition at line 767 of file tools.h.

Referenced by cSVDRPClientHandler::AddClient(), cCaPidReceiver::AddEmmPid(), cOsd::AddPixmap(), cPluginManager::AddPlugin(), AddRecordingFolders(), cBackTrace::BackTrace(), BroadcastSVDRPCommand(), cMtdHandler::CancelActivation(), cMenuSetupCAMItem::Changed(), cStateLockLog::Check(), cMenuSetupDVB::cMenuSetupDVB(), cMenuSetupEPG::cMenuSetupEPG(), cDoneRecordings::Contains(), cOsd::cOsd(), cDvbSubtitleBitmaps::DbgDump(), cCaPidReceiver::DelEmmPids(), cOsd::DestroyPixmap(), cCamSlot::Devices(), cMtdHandler::Devices(), cDvbSubtitleBitmaps::Draw(), cSkinLCARSDisplayMenu::DrawTimers(), cFont::GetAvailableFontNames(), cSVDRPClientHandler::GetClientForServer(), cGlyph::GetKerningCache(), cMtdHandler::GetMtdCamSlot(), cSVDRPClient::GetRemoteTimers(), cSVDRPClientHandler::GetServerNames(), cDvbSubtitleBitmaps::HasBitmaps(), cCaPidReceiver::HasCaPids(), I18nInitialize(), I18nIsPreferredLanguage(), I18nLanguageCode(), I18nLanguageIndex(), I18nLocale(), cDvbDevice::Initialize(), cMtdHandler::IsActivating(), cMtdHandler::IsDecrypting(), cOsd::IsOpen(), cOsdProvider::NewOsd(), cDvbFrontend::NumDeliverySystems(), cCiResourceHandlers::NumIds(), cMtdHandler::Priority(), cSVDRPClientHandler::ProcessConnections(), cSVDRPServerHandler::ProcessConnections(), cMenuSetupEPG::ProcessKey(), cMenuSetupDVB::ProcessKey(), cDvbFrontend::ProvidesDeliverySystem(), cDvbTuner::ProvidesDeliverySystem(), cDvbTuner::ProvidesFrontend(), cDvbTuner::ProvidesModulation(), cMtdHandler::Put(), cDvbFrontend::QueryDeliverySystems(), cArgs::ReadDirectory(), cMtdMapper::RealToUniqSid(), cOsd::RenderPixmaps(), cTheme::Save(), cDoneRecordings::Save(), cCamSlot::SendCaPmts(), cMenuSetupOSD::Set(), cOsd::SetAreas(), cCursesOsd::SetColor(), cMtdHandler::StartDecrypting(), cMtdHandler::StopDecrypting(), cSetup::StoreLanguages(), cTimers::StoreRemoteTimers(), cMtdHandler::UnAssignAll(), cCiCaPmtList::~cCiCaPmtList(), cDvbSubtitleBitmaps::~cDvbSubtitleBitmaps(), cDvbTuner::~cDvbTuner(), cMtdHandler::~cMtdHandler(), cOsd::~cOsd(), cSVDRPClientHandler::~cSVDRPClientHandler(), and cSVDRPServerHandler::~cSVDRPServerHandler().

◆ Sort()

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

Member Data Documentation

◆ allocated

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

◆ data

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

Definition at line 719 of file tools.h.

◆ size

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

Definition at line 718 of file tools.h.


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