FDO API Reference | Feature Data Objects |
#include <Stack.h>
Inherits FdoCollection< OBJ, EXC >< OBJ, EXC >.
Inheritance diagram for FdoStack< OBJ, EXC >:
Definition at line 33 of file Stack.h.
Public Member Functions | |
FDO_API_COMMON FdoInt32 | AddRef () |
Increase the reference count. | |
virtual void | Clear () |
Removes all items from the stack. | |
virtual FdoBoolean | IsEmpty () const |
Checks if the stack is empty. | |
virtual OBJ * | Peek (void) const |
Gets the top item on the stack without popping it. | |
virtual OBJ * | Pop (void) |
Pops the top item off the stack. The previous top item becomes the top item. An exception is thrown if the stack is empty. | |
virtual void | Push (OBJ *value) |
Pushes the given item onto the stack. | |
FDO_API_COMMON FdoInt32 | Release () |
Decrease the reference count. | |
Protected Member Functions | |
virtual FDO_API_COMMON OBJ * | Peek (int level) const |
Gets an item at a given position in the stack. This function is protected so that FdoStack implementors can decide whether to expose it or restrict access to the top element only. |
|
Increase the reference count.
Reimplemented from FdoIDisposable. |
|
Removes all items from the stack.
Reimplemented from FdoCollection< OBJ, EXC >. |
|
Checks if the stack is empty.
Definition at line 43 of file Stack.h. Referenced by FdoStack< StackElement, FdoXmlException >::Peek(), and FdoStack< StackElement, FdoXmlException >::Pop(). |
|
Gets an item at a given position in the stack. This function is protected so that FdoStack implementors can decide whether to expose it or restrict access to the top element only.
|
|
Gets the top item on the stack without popping it.
Definition at line 54 of file Stack.h. Referenced by FdoStack< StackElement, FdoXmlException >::Pop(). |
|
Pops the top item off the stack. The previous top item becomes the top item. An exception is thrown if the stack is empty.
|
|
Pushes the given item onto the stack.
|
|
Decrease the reference count.
Reimplemented from FdoIDisposable. |
Comments or suggestions? Send us feedback. |