![]() |
AlgoPlus v0.1.0
|
#include <stack_list.h>
Public Member Functions | |
Iterator (const std::shared_ptr< node > &s) noexcept | |
Construct a new Iterator object. | |
Iterator & | operator= (std::shared_ptr< node > current) |
= operator for Iterator type | |
Iterator & | operator++ () |
operator ++ for type Iterator | |
Iterator | operator++ (int) |
operator ++ for type Iterator | |
bool | operator!= (const Iterator &it) |
operator != for type Iterator | |
T | operator* () |
operator * for type Iterator | |
stack_list (std::vector< T > v={}) noexcept | |
Construct a new stack list object. | |
stack_list (const stack_list &s) | |
Copy constructor for stack list class. | |
stack_list & | operator= (const stack_list &s) |
operator = for stack list class | |
void | clear () |
clear function | |
size_t | size () |
size functon | |
void | push (T key) |
push function | |
T | top () |
top function | |
void | pop () |
pop function removes the top of the stack | |
Iterator | begin () |
pointer to the top of the stack | |
Iterator | end () |
pointer to the end of the stack | |
Iterator class.
|
inlineexplicitnoexcept |
Construct a new Iterator object.
s | stack_list pointer |
|
inline |
pointer to the top of the stack
|
inline |
pointer to the end of the stack
|
inline |
|
inline |
operator * for type Iterator
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
push function
key | the key to be pushed |
|
inline |
size functon
|
inlineexplicit |
Copy constructor for stack list class.
s | the stack we want to copy |
|
inlineexplicitnoexcept |
Construct a new stack list object.
v | initializer vector |
|
inline |
top function