vdr 2.7.4
|
#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!
Definition at line 633 of file tools.h.
References cListBase::cListBase().
Referenced by cConfig< T >::cConfig(), First(), Get(), Last(), Next(), and Prev().
|
inline |
|
inline |
Returns the first element in this list, or NULL if the list is empty.
Definition at line 643 of file tools.h.
References cListBase::objects.
Referenced by AddRecordingFolders(), cScanList::AddTransponders(), cHashBase::Clear(), cMenuWhatsOn::cMenuWhatsOn(), cSkinDisplayReplay::cProgressBar::cProgressBar(), cSortedTimers::cSortedTimers(), cHashBase::Del(), cChannels::DeleteDuplicateChannels(), cTimer::Expired(), cHashBase::Get(), cChannels::GetByChannelID(), cChannels::GetByServiceID(), cFreetypeFont::Glyph(), main(), cPictureControl::NextDirectory(), cCaDescriptors::operator==(), cNitFilter::Process(), cConfig< T >::Save(), cMenuRecordings::Set(), cPictureMenu::Set(), cTimer::SetEventFromSchedule(), and cTimer::SpawnPatternTimers().
|
inline |
|
inline |
Returns the list element at the given Index, or NULL if no such element exists.
Definition at line 640 of file tools.h.
References cListBase::Get().
Referenced by cMenuChannels::Delete(), and cPictureMenu::SelectItem().
|
inline |
|
inline |
Returns the last element in this list, or NULL if the list is empty.
Definition at line 645 of file tools.h.
References cListBase::lastObject.
|
inline |
|
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 650 of file tools.h.
Referenced by AddRecordingFolders(), cScanList::AddTransponders(), cHashBase::Clear(), cMenuWhatsOn::cMenuWhatsOn(), cSkinDisplayReplay::cProgressBar::cProgressBar(), cSortedTimers::cSortedTimers(), cHashBase::Del(), cChannels::DeleteDuplicateChannels(), cTimer::Expired(), cHashBase::Get(), cChannels::GetByChannelID(), cChannels::GetByServiceID(), cFreetypeFont::Glyph(), main(), cCaDescriptors::operator==(), cNitFilter::Process(), cMenuRecordings::Set(), cPictureMenu::Set(), cTimer::SetEventFromSchedule(), and cTimer::SpawnPatternTimers().
|
inline |
|
inline |