vdr  2.4.0
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 664 of file tools.h.

Constructor & Destructor Documentation

◆ cVector() [1/2]

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

Definition at line 670 of file tools.h.

◆ cVector() [2/2]

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

Definition at line 686 of file tools.h.

◆ ~cVector()

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

Definition at line 693 of file tools.h.

Member Function Documentation

◆ Append()

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

◆ AppendUnique()

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

Definition at line 743 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 709 of file tools.h.

Referenced by cMtdMapper::RealToUniqSid().

◆ Insert()

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

◆ InsertUnique()

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

Definition at line 729 of file tools.h.

◆ operator=()

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

Definition at line 671 of file tools.h.

◆ operator[]() [1/2]

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

Definition at line 701 of file tools.h.

◆ operator[]() [2/2]

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

Definition at line 705 of file tools.h.

◆ Realloc()

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

Definition at line 672 of file tools.h.

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

Referenced by cCiCaPmtList::Del().

◆ Size()

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

Definition at line 717 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(), cOsd::cOsd(), cDvbSubtitleBitmaps::DbgDump(), cCaPidReceiver::DelEmmPids(), cOsd::DestroyPixmap(), cMtdHandler::Devices(), cCamSlot::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(), I18nSetLanguage(), cDvbDevice::Initialize(), cMtdHandler::IsActivating(), cMtdHandler::IsDecrypting(), cOsd::IsOpen(), cOsdProvider::NewOsd(), cCiResourceHandlers::NumIds(), cMtdHandler::Priority(), cSVDRPClientHandler::ProcessConnections(), cSVDRPServerHandler::ProcessConnections(), cMenuSetupEPG::ProcessKey(), cMenuSetupDVB::ProcessKey(), cMtdHandler::Put(), cArgs::ReadDirectory(), cMtdMapper::RealToUniqSid(), cOsd::RenderPixmaps(), cChannels::ReNumber(), cTheme::Save(), cCamSlot::SendCaPmts(), cMenuSetupOSD::Set(), cOsd::SetAreas(), cMtdHandler::StartDecrypting(), cSetup::StoreLanguages(), cTimers::StoreRemoteTimers(), cMtdHandler::UnAssignAll(), cCiCaPmtList::~cCiCaPmtList(), cDvbSubtitleBitmaps::~cDvbSubtitleBitmaps(), 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 667 of file tools.h.

◆ data

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

Definition at line 669 of file tools.h.

◆ size

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

Definition at line 668 of file tools.h.


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