
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Stack template. More...
#include <gelStack.h>
Public Member Functions | |
| GelStack () | |
| Default constructor. | |
| ~GelStack () | |
| Destructor. | |
| void | push (const dType &item) |
| Adds an item to the top of the stack. | |
| dType | pop () |
| Removes the item at the top of the stack and returns it. | |
| dType | peek () |
| Gets the item at the top of the stack. | |
| const dType | peek () const |
| Gets the item at the top of the stack. | |
Stack template.
| gel::GelStack< dType >::GelStack | ( | ) | [inline] |
Default constructor.
Constructs an empty stack.
| gel::GelStack< dType >::~GelStack | ( | ) | [inline] |
Destructor.
| void gel::GelStack< dType >::push | ( | const dType & | item | ) | [inline] |
Adds an item to the top of the stack.
| item | : The item to add. |
| dType gel::GelStack< dType >::pop | ( | ) | [inline] |
Removes the item at the top of the stack and returns it.
| dType gel::GelStack< dType >::peek | ( | ) | [inline] |
Gets the item at the top of the stack.
| const dType gel::GelStack< dType >::peek | ( | ) | const [inline] |
Gets the item at the top of the stack.
This is an overloaded function.
API Documentation by Mark D. Procarione |
Generated by
![]() |