class CMarkedStack : public CStack< T, Owner > |
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.
Public Member Functions | |
---|---|
~CMarkedStack () | |
void | DeleteToMark ( TInt ) |
void | MarkL ( TInt ) |
TInt | RemoveMark ( TInt ) |
void | ResetToMark ( TInt ) |
Protected Member Type Definitions | |
---|---|
typedef | CStack < TMarkPoint , ETrue > CMarks |
Protected Attributes | |
---|---|
CMarks | iMarks |
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.
TInt aMarkType | Mark type |
void | MarkL | ( | TInt | aMarkType | ) | [inline] |
Marks the stack's head item.
TInt aMarkType | Mark type |
TInt | RemoveMark | ( | TInt | aMarkType | ) | [inline] |
Removes all marks until a mark of the specified type is found.
TInt 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.
TInt aMarkType | Mark type |
CMarks | iMarks | [protected] |
A stack of marks.
Items are added and removed from this stack by MarkL() , RemoveMark() etc.
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.