Gobelijn API documentation
- generated for commit a0cbea7
|
Specialisation for string as element type. More...
#include <stack2.hpp>
Public Member Functions | |
Stack () | |
Default constructor. More... | |
bool | empty () const |
Check whether stack is empty. More... | |
void | pop () |
Pop element off the stack. More... | |
void | push (const std::string &s) |
Pushes element onto stack. More... | |
std::string | top () const |
Return top element of the stack (but not pop-ing it). More... | |
Private Attributes | |
std::deque< std::string > | elems |
Container for the stack elements. More... | |
Specialisation for string as element type.
Definition at line 16 of file stack2.hpp.
Default constructor.
Definition at line 20 of file stack2.hpp.
|
inline |
Check whether stack is empty.
Definition at line 24 of file stack2.hpp.
References Stack< T >::elems.
void Stack< std::string >::pop | ( | ) |
Pop element off the stack.
Definition at line 43 of file stack2.hpp.
References Stack< T >::elems.
Referenced by main().
void Stack< std::string >::push | ( | const std::string & | s | ) |
Pushes element onto stack.
s | String pushed on stack. |
Definition at line 51 of file stack2.hpp.
References Stack< T >::elems.
Referenced by main().
std::string Stack< std::string >::top | ( | ) | const |
Return top element of the stack (but not pop-ing it).
Definition at line 53 of file stack2.hpp.
References Stack< T >::elems.
Referenced by main().
|
private |
Container for the stack elements.
Definition at line 38 of file stack2.hpp.