#include <cxflists.h>
Inheritance diagram for InsertLevelStack:
Public Member Functions | |
InsertLevelStack () | |
The default constructor. | |
~InsertLevelStack () | |
The default destructor - deletes all the list's items. | |
void | Add (InsertLevelStackItem *pItem) |
Adds the item to the top of the stack. | |
InsertLevelStackItem * | Get () |
Returns a ptr to the item on the top of the stack, without removing it. | |
InsertLevelStackItem * | Pop () |
Removes the item from the top of the stack, and returns a ptr to it. | |
Private Attributes | |
UINT32 | InsertLevel |
The list is actually treated as a stack, where the tail item is the item on the top of the stack, and items are only added and removed from the tail of the list
Definition at line 374 of file cxflists.h.
|
The default constructor.
Definition at line 270 of file cxflists.cpp. 00271 { 00272 InsertLevel = 0; 00273 }
|
|
The default destructor - deletes all the list's items.
Definition at line 287 of file cxflists.cpp. 00288 { 00289 DeleteAll(); 00290 }
|
|
Adds the item to the top of the stack.
Definition at line 304 of file cxflists.cpp. 00305 { 00306 InsertLevel++; 00307 AddTail(pItem); 00308 }
|
|
Returns a ptr to the item on the top of the stack, without removing it.
Definition at line 322 of file cxflists.cpp. 00323 { 00324 return (InsertLevelStackItem*)List::GetTail(); 00325 }
|
|
Removes the item from the top of the stack, and returns a ptr to it.
Definition at line 339 of file cxflists.cpp. 00340 { 00341 if (InsertLevel == 0) 00342 { 00343 ERROR3("InsertLevel == 0"); 00344 return NULL; 00345 } 00346 00347 InsertLevel--; 00348 00349 return (InsertLevelStackItem*)List::RemoveTail(); 00350 }
|
|
Definition at line 387 of file cxflists.h. |