#include <mw/cmarkedstack.h>
class CMarkedStack : public CStack< T, Owner > |
Protected Member Type Definitions | |
---|---|
typedef | CStack< TMarkPoint, ETrue > CMarks |
Protected Attributes | |
---|---|
CMarks | iMarks |
Public Member Functions | |
---|---|
virtual | ~CMarkedStack() |
void | DeleteToMark(TInt) |
void | MarkL(TInt) |
TInt | RemoveMark(TInt) |
void | ResetToMark(TInt) |
Provides a templated stack that allows items in the stack to be marked.
The class allows each mark to have an associated TInt value, which allows different types of mark to be used on the same stack.
Template parameter T specifies the type of object on the stack. Owner should be set to ETrue if the object's destructor should delete the objects on the stack. Deprecated
CMarks | iMarks | [protected] |
A stack of marks.
Items are added and removed from this stack by MarkL(), RemoveMark() etc.
void | DeleteToMark | ( | TInt | aMarkType | ) | [inline] |
Pops and deletes items from the stack until the item marked with the specified mark type is at the head.
Parameters | |
---|---|
aMarkType | Mark type |
void | ResetToMark | ( | TInt | aMarkType | ) | [inline] |
Pops items from the stack until the item marked with the specified mark type is at the head.
Parameters | |
---|---|
aMarkType | Mark type |