vdr
2.4.0
|
#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) |
![]() | |
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 cListObject * | Get (int Index) const |
cListObject * | Get (int Index) |
int | Count (void) const |
void | Sort (void) |
Additional Inherited Members | |
![]() | |
cListBase (const char *NeedsLocking=NULL) | |
![]() | |
cListObject * | objects |
cListObject * | lastObject |
int | count |
cStateLock | stateLock |
const char * | needsLocking |
bool | useGarbageCollector |
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!
|
inline |
Returns the first element in this list, or NULL if the list is empty.
Definition at line 606 of file tools.h.
Referenced by cSectionHandler::Action(), cDvbSubtitleConverter::Action(), cDvbPlayer::Action(), cRecordingsHandler::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(), cSectionHandler::Del(), cFilter::Del(), cHashBase::Del(), cRecordingsHandler::DelAll(), cChannels::DeleteDuplicateChannels(), cChannel::DelLinkChannel(), 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(), 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(), cCaDescriptors::operator==(), cNitFilter::Process(), cEITScanner::Process(), cMenuEditSrcItem::ProcessKey(), cSubtitleRegion::Render(), cSchedule::ResetVersions(), cConfig< cDiseqc >::Save(), cDvbPlayer::Save(), cVideoDirectoryScannerThread::ScanVideoDir(), cPictureMenu::Set(), cMenuFolder::Set(), cMenuRecordings::Set(), cMenuSetupOSD::Set(), cTimer::SetEventFromSchedule(), cChannel::SetLinkChannels(), cCamSlot::SetPid(), cSchedule::SetRunningStatus(), cSectionHandler::SetStatus(), cFilter::SetStatus(), cSchedule::Sort(), cPluginManager::StartPlugins(), cCamSlots::WaitForAllCamSlotsReady(), cNestedItemList::Write(), and cSectionHandler::~cSectionHandler().
|
inline |
Non-const version of First().
Definition at line 618 of file tools.h.
Referenced by cList< cSchedule >::First().
|
inline |
Returns the list element at the given Index, or NULL if no such element exists.
Definition at line 603 of file tools.h.
Referenced by cMenuChannels::Delete(), cMenuCommands::Execute(), cDevice::GetDevice(), cPluginManager::GetPlugin(), cDvbSubtitlePage::GetRegionRefByIndex(), cPluginManager::Housekeeping(), cMenuSetupOSD::ProcessKey(), and cPictureMenu::SelectItem().
|
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 616 of file tools.h.
Referenced by cList< cSchedule >::Get().
|
inline |
Returns the last element in this list, or NULL if the list is empty.
Definition at line 608 of file tools.h.
Referenced by cPictureEntry::LastPicture(), cPictureControl::NextDirectory(), cMenuEditSrcItem::ProcessKey(), cInterface::QueryKeys(), cPluginManager::Shutdown(), and cPluginManager::StopPlugins().
|
inline |
Non-const version of Last().
Definition at line 620 of file tools.h.
Referenced by cList< cSchedule >::Last().
|
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 613 of file tools.h.
Referenced by cSectionHandler::Action(), cDvbSubtitleConverter::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(), cSectionHandler::Del(), cFilter::Del(), cHashBase::Del(), cRecordingsHandler::DelAll(), cChannels::DeleteDuplicateChannels(), cChannel::DelLinkChannel(), 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(), 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(), cCaDescriptors::operator==(), cNitFilter::Process(), cEITScanner::Process(), cSubtitleRegion::Render(), cSchedule::ResetVersions(), cVideoDirectoryScannerThread::ScanVideoDir(), cPictureMenu::Set(), cMenuFolder::Set(), cMenuRecordings::Set(), cMenuSetupOSD::Set(), cTimer::SetEventFromSchedule(), cChannel::SetLinkChannels(), cCamSlot::SetPid(), cSchedule::SetRunningStatus(), cSectionHandler::SetStatus(), cFilter::SetStatus(), cSchedule::Sort(), cPluginManager::StartPlugins(), cCamSlots::WaitForAllCamSlotsReady(), and cNestedItemList::Write().
|
inline |
Non-const version of Next().
Definition at line 624 of file tools.h.
Referenced by cList< cSchedule >::Next().
|
inline |
Definition at line 610 of file tools.h.
Referenced by cPictureEntry::LastPicture(), cReplayControl::MarkMove(), cPictureEntry::PrevPicture(), and cPluginManager::StopPlugins().
|
inline |
Non-const version of Prev().
Definition at line 622 of file tools.h.
Referenced by cList< cSchedule >::Prev().