FDO API Reference | Feature Data Objects |
#include <Stack.h>
Inherits FdoCollection< OBJ, EXC >< OBJ, EXC >.
Inheritance diagram for FdoStack< OBJ, EXC >:
DOXYGEN-IGNORE
Definition at line 32 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. |
Comments or suggestions? Send us feedback. |