vdr 2.6.1
Public Member Functions | List of all members
cList< T > Class Template Reference

#include <tools.h>

Public Member Functions

 cList (const char *NeedsLocking=NULL)
 
const T * Get (int Index) const
 
const T * First (void) const
 
const T * Last (void) const
 
const T * Prev (const T *Object) const
 
const T * Next (const T *Object) const
 
T * Get (int Index)
 
T * First (void)
 
T * Last (void)
 
T * Prev (const T *Object)
 
T * Next (const T *Object)
 
 cList (const char *NeedsLocking=NULL)
 
const T * Get (int Index) const
 
const T * First (void) const
 
const T * Last (void) const
 
const T * Prev (const T *Object) const
 
const T * Next (const T *Object) const
 
T * Get (int Index)
 
T * First (void)
 
T * Last (void)
 
T * Prev (const T *Object)
 
T * Next (const T *Object)
 
- Public Member Functions inherited from cListBase
virtual ~cListBase ()
 
bool Lock (cStateKey &StateKey, bool Write=false, int TimeoutMs=0) const
 
void SetSyncStateKey (cStateKey &StateKey)
 
void SetUseGarbageCollector (void)
 
void SetExplicitModify (void)
 
void SetModified (void)
 
void Add (cListObject *Object, cListObject *After=NULL)
 
void Ins (cListObject *Object, cListObject *Before=NULL)
 
void Del (cListObject *Object, bool DeleteObject=true)
 
virtual void Move (int From, int To)
 
void Move (cListObject *From, cListObject *To)
 
virtual void Clear (void)
 
bool Contains (const cListObject *Object) const
 
const cListObjectGet (int Index) const
 
cListObjectGet (int Index)
 
int Count (void) const
 
void Sort (void)
 
virtual ~cListBase ()
 
bool Lock (cStateKey &StateKey, bool Write=false, int TimeoutMs=0) const
 
void SetSyncStateKey (cStateKey &StateKey)
 
void SetUseGarbageCollector (void)
 
void SetExplicitModify (void)
 
void SetModified (void)
 
void Add (cListObject *Object, cListObject *After=NULL)
 
void Ins (cListObject *Object, cListObject *Before=NULL)
 
void Del (cListObject *Object, bool DeleteObject=true)
 
virtual void Move (int From, int To)
 
void Move (cListObject *From, cListObject *To)
 
virtual void Clear (void)
 
bool Contains (const cListObject *Object) const
 
const cListObjectGet (int Index) const
 
cListObjectGet (int Index)
 
int Count (void) const
 
void Sort (void)
 

Additional Inherited Members

- Protected Member Functions inherited from cListBase
 cListBase (const char *NeedsLocking=NULL)
 
 cListBase (const char *NeedsLocking=NULL)
 
- Protected Attributes inherited from cListBase
cListObjectobjects
 
cListObjectlastObject
 
int count
 
cStateLock stateLock
 
const char * needsLocking
 
bool useGarbageCollector
 

Detailed Description

template<class T>
class cList< T >

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

Constructor & Destructor Documentation

◆ cList() [1/2]

template<class T >
cList< T >::cList ( const char *  NeedsLocking = NULL)
inline

Sets up a new cList of the given type T.

If NeedsLocking is given, the list and any of its elements may only be accessed if the caller holds a lock obtained by a call to Lock() (see cListBase::Lock() for details). NeedsLocking is used as both a boolean flag to enable locking, and as a name to identify this list in debug output. It must be a static string and should be no longer than 10 characters. The string will not be copied!

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

◆ cList() [2/2]

template<class T >
cList< T >::cList ( const char *  NeedsLocking = NULL)
inline

Sets up a new cList of the given type T.

If NeedsLocking is given, the list and any of its elements may only be accessed if the caller holds a lock obtained by a call to Lock() (see cListBase::Lock() for details). NeedsLocking is used as both a boolean flag to enable locking, and as a name to identify this list in debug output. It must be a static string and should be no longer than 10 characters. The string will not be copied!

Definition at line 643 of file tools.h.

Member Function Documentation

◆ First() [1/4]

template<class T >
T * cList< T >::First ( void  )
inline

Non-const version of First().

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

References cList< T >::First().

Referenced by cList< T >::First().

◆ First() [2/4]

template<class T >
T * cList< T >::First ( void  )
inline

Non-const version of First().

Definition at line 665 of file tools.h.

References cList< T >::First().

Referenced by cList< T >::First().

◆ First() [3/4]

template<class T >
const T * cList< T >::First ( void  ) const
inline

Returns the first element in this list, or NULL if the list is empty.

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

Referenced by cDvbPlayer::Action(), cDvbSubtitleConverter::Action(), cRecordingsHandler::Action(), cSectionHandler::Action(), cPluginManager::Active(), cCiCaProgramData::Active(), cSectionHandler::Add(), cCaDescriptors::AddCaDescriptor(), cCamSlot::AddPid(), AddRecordingFolders(), cScanList::AddTransponders(), cCamSlot::BuildCaPmts(), cPluginManager::CallAllServices(), cPluginManager::CallFirstService(), CamControl(), cMenuSetupCAMItem::Changed(), cSchedule::Cleanup(), cHashBase::Clear(), cReplayControl::ClearEditingMarks(), cSchedule::ClrRunningStatus(), cMenuCommands::cMenuCommands(), cMenuSetupCAM::cMenuSetupCAM(), cMenuWhatsOn::cMenuWhatsOn(), cMenuEditFolder::Confirm(), cSkinDisplayReplay::cProgressBar::cProgressBar(), cSortedTimers::cSortedTimers(), cHashBase::Del(), cSectionHandler::Del(), cFilter::Del(), cRecordingsHandler::DelAll(), cChannels::DeleteDuplicateChannels(), cChannel::DelLinkChannel(), cDevice::DeviceHooksProvidesEIT(), cDevice::DeviceHooksProvidesTransponder(), cSchedule::DropOutdated(), cSchedule::Dump(), cPictureEntry::FirstPicture(), cRecordingsHandler::Get(), cHashBase::Get(), cDvbSubtitlePage::GetAreas(), cChannels::GetByChannelID(), cChannels::GetByServiceID(), cCaDescriptors::GetCaDescriptors(), cCaDescriptors::GetCaPids(), cDvbSubtitlePage::GetClutById(), cDevice::GetDevice(), cSchedule::GetEventAround(), cSchedule::GetFollowingEvent(), cPluginManager::GetNextWakeupPlugin(), cDvbSubtitleConverter::GetPageById(), cPluginManager::GetPlugin(), cSchedule::GetPresentEvent(), cDvbSubtitlePage::GetRegionById(), cFreetypeFont::Glyph(), cPluginManager::InitializePlugins(), cCamSlot::IsDecrypting(), cCamSlot::KeepSharedCaPids(), cInterface::LearnKeys(), cTimers::Load(), cPluginManager::LoadPlugins(), main(), cPluginManager::MainThreadHook(), cFilter::Matches(), cStatus::MsgChannelChange(), cStatus::MsgChannelSwitch(), cStatus::MsgMarksModified(), cStatus::MsgOsdChannel(), cStatus::MsgOsdClear(), cStatus::MsgOsdCurrentItem(), cStatus::MsgOsdHelpKeys(), cStatus::MsgOsdItem(), cStatus::MsgOsdProgramme(), cStatus::MsgOsdStatusMessage(), cStatus::MsgOsdTextItem(), cStatus::MsgOsdTitle(), cStatus::MsgRecording(), cStatus::MsgReplaying(), cStatus::MsgSetAudioChannel(), cStatus::MsgSetAudioTrack(), cStatus::MsgSetSubtitleTrack(), cStatus::MsgSetVolume(), cStatus::MsgTimerChange(), cPictureControl::NextDirectory(), cCamSlots::NumReadyMasterSlots(), cPatFilter::NumSidRequests(), cCaDescriptors::operator==(), cPatFilter::PmtPidComplete(), cPatFilter::PmtPidReset(), cPatFilter::PmtVersionChanged(), cNitFilter::Process(), cPatFilter::Process(), cEITScanner::Process(), cMenuEditSrcItem::ProcessKey(), cPatFilter::Release(), cSubtitleRegion::Render(), cPatFilter::Request(), cSchedule::ResetVersions(), cDvbPlayer::Save(), cConfig< T >::Save(), cVideoDirectoryScannerThread::ScanVideoDir(), cMenuRecordings::Set(), cMenuFolder::Set(), cPictureMenu::Set(), cMenuSetupOSD::Set(), cTimer::SetEventFromSchedule(), cChannel::SetLinkChannels(), cCamSlot::SetPid(), cSchedule::SetRunningStatus(), cFilter::SetStatus(), cPatFilter::SetStatus(), cSectionHandler::SetStatus(), cSchedule::Sort(), cTimer::SpawnPatternTimers(), cPluginManager::StartPlugins(), cCamSlots::WaitForAllCamSlotsReady(), and cSectionHandler::~cSectionHandler().

◆ First() [4/4]

template<class T >
const T * cList< T >::First ( void  ) const
inline

Returns the first element in this list, or NULL if the list is empty.

Definition at line 653 of file tools.h.

◆ Get() [1/4]

template<class T >
T * cList< T >::Get ( int  Index)
inline

< Returns the element immediately following Object in this list, or NULL if Object is the last element in the list.

Object must not be NULL! Non-const version of Get().

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

References cList< T >::Get().

Referenced by cList< T >::Get().

◆ Get() [2/4]

template<class T >
T * cList< T >::Get ( int  Index)
inline

< Returns the element immediately following Object in this list, or NULL if Object is the last element in the list.

Object must not be NULL! Non-const version of Get().

Definition at line 663 of file tools.h.

References cList< T >::Get().

Referenced by cList< T >::Get().

◆ Get() [3/4]

template<class T >
const T * cList< T >::Get ( int  Index) const
inline

◆ Get() [4/4]

template<class T >
const T * cList< T >::Get ( int  Index) const
inline

Returns the list element at the given Index, or NULL if no such element exists.

Definition at line 650 of file tools.h.

References cListBase::Get().

◆ Last() [1/4]

template<class T >
T * cList< T >::Last ( void  )
inline

Non-const version of Last().

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

References cList< T >::Last().

Referenced by cList< T >::Last().

◆ Last() [2/4]

template<class T >
T * cList< T >::Last ( void  )
inline

Non-const version of Last().

Definition at line 667 of file tools.h.

References cList< T >::Last().

Referenced by cList< T >::Last().

◆ Last() [3/4]

template<class T >
const T * cList< T >::Last ( void  ) const
inline

Returns the last element in this list, or NULL if the list is empty.

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

Referenced by cPictureEntry::LastPicture(), cPictureControl::NextDirectory(), cMenuEditSrcItem::ProcessKey(), cInterface::QueryKeys(), cPluginManager::Shutdown(), and cPluginManager::StopPlugins().

◆ Last() [4/4]

template<class T >
const T * cList< T >::Last ( void  ) const
inline

Returns the last element in this list, or NULL if the list is empty.

Definition at line 655 of file tools.h.

◆ Next() [1/4]

template<class T >
T * cList< T >::Next ( const T *  Object)
inline

Non-const version of Next().

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

References cList< T >::Next().

Referenced by cList< T >::Next().

◆ Next() [2/4]

template<class T >
T * cList< T >::Next ( const T *  Object)
inline

Non-const version of Next().

Definition at line 671 of file tools.h.

References cList< T >::Next().

Referenced by cList< T >::Next().

◆ Next() [3/4]

template<class T >
const T * cList< T >::Next ( const T *  Object) const
inline

< Returns the element immediately before Object in this list, or NULL if Object is the first element in the list.

Object must not be NULL!

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

Referenced by cDvbSubtitleConverter::Action(), cSectionHandler::Action(), cPluginManager::Active(), cCiCaProgramData::Active(), cSectionHandler::Add(), cCaDescriptors::AddCaDescriptor(), cCamSlot::AddPid(), AddRecordingFolders(), cScanList::AddTransponders(), cCamSlot::BuildCaPmts(), cPluginManager::CallAllServices(), cPluginManager::CallFirstService(), CamControl(), cMenuSetupCAMItem::Changed(), cHashBase::Clear(), cSchedule::ClrRunningStatus(), cMenuCommands::cMenuCommands(), cMenuSetupCAM::cMenuSetupCAM(), cMenuWhatsOn::cMenuWhatsOn(), cMenuEditFolder::Confirm(), cSkinDisplayReplay::cProgressBar::cProgressBar(), cSortedTimers::cSortedTimers(), cHashBase::Del(), cSectionHandler::Del(), cFilter::Del(), cRecordingsHandler::DelAll(), cChannels::DeleteDuplicateChannels(), cChannel::DelLinkChannel(), cDevice::DeviceHooksProvidesEIT(), cDevice::DeviceHooksProvidesTransponder(), cSchedule::DropOutdated(), cSchedule::Dump(), cReplayControl::EditTest(), cPictureEntry::FirstPicture(), cRecordingsHandler::Get(), cHashBase::Get(), cDvbSubtitlePage::GetAreas(), cChannels::GetByChannelID(), cChannels::GetByServiceID(), cCaDescriptors::GetCaDescriptors(), cCaDescriptors::GetCaPids(), cDvbSubtitlePage::GetClutById(), cDevice::GetDevice(), cSchedule::GetEventAround(), cSchedule::GetFollowingEvent(), cPluginManager::GetNextWakeupPlugin(), cDvbSubtitleConverter::GetPageById(), cPluginManager::GetPlugin(), cSchedule::GetPresentEvent(), cDvbSubtitlePage::GetRegionById(), cFreetypeFont::Glyph(), cPluginManager::InitializePlugins(), cCamSlot::IsDecrypting(), cCamSlot::KeepSharedCaPids(), cInterface::LearnKeys(), cTimers::Load(), cPluginManager::LoadPlugins(), main(), cPluginManager::MainThreadHook(), cReplayControl::MarkMove(), cFilter::Matches(), cStatus::MsgChannelChange(), cStatus::MsgChannelSwitch(), cStatus::MsgMarksModified(), cStatus::MsgOsdChannel(), cStatus::MsgOsdClear(), cStatus::MsgOsdCurrentItem(), cStatus::MsgOsdHelpKeys(), cStatus::MsgOsdItem(), cStatus::MsgOsdProgramme(), cStatus::MsgOsdStatusMessage(), cStatus::MsgOsdTextItem(), cStatus::MsgOsdTitle(), cStatus::MsgRecording(), cStatus::MsgReplaying(), cStatus::MsgSetAudioChannel(), cStatus::MsgSetAudioTrack(), cStatus::MsgSetSubtitleTrack(), cStatus::MsgSetVolume(), cStatus::MsgTimerChange(), cPictureEntry::NextPicture(), cCamSlots::NumReadyMasterSlots(), cPatFilter::NumSidRequests(), cCaDescriptors::operator==(), cPatFilter::PmtPidComplete(), cPatFilter::PmtPidReset(), cPatFilter::PmtVersionChanged(), cNitFilter::Process(), cPatFilter::Process(), cEITScanner::Process(), cPatFilter::Release(), cSubtitleRegion::Render(), cPatFilter::Request(), cSchedule::ResetVersions(), cVideoDirectoryScannerThread::ScanVideoDir(), cMenuRecordings::Set(), cMenuFolder::Set(), cPictureMenu::Set(), cMenuSetupOSD::Set(), cTimer::SetEventFromSchedule(), cChannel::SetLinkChannels(), cCamSlot::SetPid(), cSchedule::SetRunningStatus(), cFilter::SetStatus(), cPatFilter::SetStatus(), cSectionHandler::SetStatus(), cSchedule::Sort(), cTimer::SpawnPatternTimers(), cPluginManager::StartPlugins(), cPatFilter::SwitchToNextPmtPid(), and cCamSlots::WaitForAllCamSlotsReady().

◆ Next() [4/4]

template<class T >
const T * cList< T >::Next ( const T *  Object) const
inline

< Returns the element immediately before Object in this list, or NULL if Object is the first element in the list.

Object must not be NULL!

Definition at line 660 of file tools.h.

◆ Prev() [1/4]

template<class T >
T * cList< T >::Prev ( const T *  Object)
inline

Non-const version of Prev().

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

References cList< T >::Prev().

Referenced by cList< T >::Prev().

◆ Prev() [2/4]

template<class T >
T * cList< T >::Prev ( const T *  Object)
inline

Non-const version of Prev().

Definition at line 669 of file tools.h.

References cList< T >::Prev().

Referenced by cList< T >::Prev().

◆ Prev() [3/4]

template<class T >
const T * cList< T >::Prev ( const T *  Object) const
inline

◆ Prev() [4/4]

template<class T >
const T * cList< T >::Prev ( const T *  Object) const
inline

Definition at line 657 of file tools.h.


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