#include <scrnobj.h>
Public Methods | |
ScrnObjList () | |
~ScrnObjList () | |
void | Insert (ScrnObj *a) |
void | Append (ScrnObj *a) |
void | Remove (ScrnObj *a) |
ScrnObj * | GetCurrent (void) |
bool | Reset (void) |
bool | Next (void) |
void | Nuke (void) |
Private Attributes | |
ScrnObj * | First |
ScrnObj * | Last |
ScrnObj * | Current |
|
Definition at line 47 of file scrnobj.h.
|
|
Definition at line 48 of file scrnobj.h. References Nuke().
00048 { Nuke (); } |
|
Definition at line 25 of file scrnobj.c. References Insert(), Last, and ScrnObj::Next. Referenced by Display::Add().
|
|
Definition at line 52 of file scrnobj.h. Referenced by Display::Dispatch(), Display::Draw(), and Display::Erase().
00052 { return Current; } |
|
Definition at line 14 of file scrnobj.c. References Current, First, Last, and ScrnObj::Next. Referenced by Append().
|
|
Definition at line 77 of file scrnobj.c. References Current, and ScrnObj::Next. Referenced by Display::Dispatch(), Display::Draw(), and Display::Erase().
|
|
Definition at line 85 of file scrnobj.c. References Current, First, and Last. Referenced by ~ScrnObjList().
|
|
Definition at line 37 of file scrnobj.c. References Current, First, Last, and ScrnObj::Next.
00038 { 00039 if (First == a) 00040 { 00041 ScrnObj* tmp = First; 00042 First = First->Next; 00043 delete tmp; 00044 } 00045 else 00046 { 00047 ScrnObj* prev = First; 00048 ScrnObj* curr = First->Next; 00049 while (curr) 00050 { 00051 if (curr == a) 00052 { 00053 prev->Next = curr->Next; 00054 if (curr == Last) 00055 Last = prev; 00056 delete curr; 00057 curr = NULL; 00058 } 00059 else 00060 { 00061 prev = curr; 00062 curr = curr->Next; 00063 } 00064 } 00065 } 00066 Current = First; 00067 } |
|
Definition at line 70 of file scrnobj.c. References Current, and First. Referenced by Display::Dispatch(), Display::Draw(), and Display::Erase().
|
|
Definition at line 45 of file scrnobj.h. Referenced by Insert(), Next(), Nuke(), Remove(), and Reset(). |
|
|
|
|