|
SASC
DVBSoftCAM
|
#include <tools.h>
Inheritance diagram for cListObject:Public Member Functions | |
| cListObject (void) | |
| virtual | ~cListObject () |
| virtual int | Compare (const cListObject &ListObject) const |
| void | Append (cListObject *Object) |
| void | Insert (cListObject *Object) |
| void | Unlink (void) |
| int | Index (void) const |
| cListObject * | Prev (void) const |
| cListObject * | Next (void) const |
| cListObject::cListObject | ( | void | ) |
| void cListObject::Append | ( | cListObject * | Object | ) |
Definition at line 920 of file tools.cpp.
Referenced by cListBase::Add(), cListBase::Ins(), and cListBase::Move().
{
next = Object;
Object->prev = this;
}
| virtual int cListObject::Compare | ( | const cListObject & | ListObject | ) | const [inline, virtual] |
Must return 0 if this object is equal to ListObject, a positive value if it is "greater", and a negative value if it is "smaller".
Reimplemented in cSetupLine, cSetupLine, cEvent, cRecording, and cTimer.
Definition at line 364 of file tools.h.
Referenced by CompareListObjects().
| int cListObject::Index | ( | void | ) | const |
Definition at line 941 of file tools.cpp.
References i.
Referenced by cChannel::Ca(), and cListBase::Move().
{
cListObject *p = prev;
int i = 0;
while (p) {
i++;
p = p->prev;
}
return i;
}
| void cListObject::Insert | ( | cListObject * | Object | ) |
Definition at line 926 of file tools.cpp.
Referenced by cListBase::Add(), and cListBase::Ins().
{
prev = Object;
Object->next = this;
}
| cListObject* cListObject::Next | ( | void | ) | const [inline] |
Definition at line 372 of file tools.h.
Referenced by cListBase::Add(), cListBase::Clear(), cListBase::Del(), cListBase::Get(), cListBase::Move(), and cListBase::Sort().
{ return next; }
| cListObject* cListObject::Prev | ( | void | ) | const [inline] |
Definition at line 371 of file tools.h.
Referenced by cListBase::Del(), cListBase::Ins(), and cListBase::Move().
{ return prev; }
| void cListObject::Unlink | ( | void | ) |
Definition at line 932 of file tools.cpp.
References NULL.
Referenced by cListBase::Del(), cListBase::Move(), and cListBase::Sort().
{
if (next)
next->prev = prev;
if (prev)
prev->next = next;
next = prev = NULL;
}