vdr 2.8.3
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
const T * Data (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, int Count=1)
bool RemoveElement (const T &Data)
virtual void Clear (void)
void Sort (__compar_fn_t Compare)

Private Member Functions

 cVector (const cVector &Vector)
cVector & operator= (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 720 of file tools.h.

Constructor & Destructor Documentation

◆ cVector() [1/2]

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

Definition at line 726 of file tools.h.

References cVector().

Referenced by cVector(), and operator=().

◆ cVector() [2/2]

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

Definition at line 742 of file tools.h.

References allocated, data, Realloc(), and size.

◆ ~cVector()

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

Definition at line 749 of file tools.h.

References data.

Member Function Documentation

◆ Append()

◆ AppendUnique()

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

Definition at line 800 of file tools.h.

References Append(), Data(), and IndexOf().

◆ At()

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

◆ Clear()

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

◆ Data()

template<class T>
const T * cVector< T >::Data ( void ) const
inline

Definition at line 774 of file tools.h.

References data.

Referenced by Append(), AppendUnique(), IndexOf(), Insert(), InsertUnique(), cPatPmtMaker::MakePatPmt(), and RemoveElement().

◆ IndexOf()

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

Definition at line 765 of file tools.h.

References Data(), data, and size.

Referenced by AppendUnique(), InsertUnique(), cMtdMapper::RealToUniqSid(), RemoveElement(), 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 786 of file tools.h.

References Data(), IndexOf(), and Insert().

◆ operator=()

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

Definition at line 727 of file tools.h.

References cVector().

◆ operator[]() [1/2]

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

Definition at line 761 of file tools.h.

References At().

◆ operator[]() [2/2]

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

Definition at line 757 of file tools.h.

References At().

◆ Realloc()

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

Definition at line 728 of file tools.h.

References allocated, data, and esyslog.

Referenced by Append(), At(), cVector(), and Insert().

◆ Remove()

template<class T>
virtual void cVector< T >::Remove ( int Index,
int Count = 1 )
inlinevirtual

◆ RemoveElement()

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

Definition at line 819 of file tools.h.

References Data(), IndexOf(), and Remove().

Referenced by cCiCaPmtList::Del().

◆ Size()

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

Definition at line 773 of file tools.h.

References size.

Referenced by cSVDRPClientHandler::AddClient(), cTheme::AddColor(), cCaPidReceiver::AddEmmPid(), cOsd::AddPixmap(), cPluginManager::AddPlugin(), cPtsChecker::AddPts(), AddRecordingFolders(), AppendZeroTerminated(), cBackTrace::BackTrace(), BroadcastSVDRPCommand(), cMtdHandler::CancelActivation(), cCuttingThread::cCuttingThread(), cMenuSetupCAMItem::Changed(), cStateLockLog::Check(), cSVDRPClientHandler::CloseClient(), cMenuSetupDVB::cMenuSetupDVB(), cMenuSetupEPG::cMenuSetupEPG(), cTheme::Color(), cDoneRecordings::Contains(), cOsd::cOsd(), cSkinDisplayReplay::cProgressBar::cProgressBar(), cDvbSubtitleBitmaps::DbgDump(), cCaPidReceiver::DelEmmPids(), cOsd::Deregister(), cOsd::DestroyPixmap(), cCamSlot::Devices(), cMtdHandler::Devices(), cDvbSubtitleBitmaps::Draw(), cSkinLCARSDisplayMenu::DrawTimers(), cReplayControl::ErrorJump(), 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(), cTheme::Load(), cThemes::Load(), cOsdProvider::NewOsd(), cDvbFrontend::NumDeliverySystems(), cCiResourceHandlers::NumIds(), cMtdHandler::Priority(), cPtsChecker::Process(), cSVDRPClientHandler::ProcessConnections(), cSVDRPServerHandler::ProcessConnections(), cMenuSetupDVB::ProcessKey(), cMenuSetupEPG::ProcessKey(), cDvbFrontend::ProvidesDeliverySystem(), cDvbTuner::ProvidesDeliverySystem(), cDvbTuner::ProvidesFrontend(), cDvbTuner::ProvidesModulation(), cMtdHandler::Put(), cDvbFrontend::QueryDeliverySystems(), cArgs::ReadDirectory(), cMtdMapper::RealToUniqSid(), cOsd::RenderPixmaps(), cDoneRecordings::Save(), cTheme::Save(), cCamSlot::SendCaPmts(), cMenuSetupOSD::Set(), cOsd::SetAreas(), cCursesOsd::SetColor(), cReplayControl::ShowProgress(), cMtdHandler::StartDecrypting(), cMtdHandler::StopDecrypting(), cSetup::StoreLanguages(), cTimers::StoreRemoteTimers(), cMtdHandler::UnAssignAll(), cPesInfo::Write(), 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 723 of file tools.h.

Referenced by Append(), cVector(), and Realloc().

◆ data

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

Definition at line 725 of file tools.h.

Referenced by Append(), At(), Clear(), cVector(), Data(), IndexOf(), Insert(), Realloc(), Remove(), Sort(), and ~cVector().

◆ size

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

Definition at line 724 of file tools.h.

Referenced by Append(), At(), Clear(), cVector(), IndexOf(), Insert(), Remove(), Size(), and Sort().


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