树
0.1
数据结构_第6章
|
#include <linkStack.hpp>
Classes | |
struct | node |
Public Member Functions | |
linkStack () | |
linkStack (std::initializer_list< T > &&il) | |
virtual bool | isEmpty () const |
virtual void | push (const T &elem) |
virtual void | push (T &&elem) |
virtual T | pop () |
virtual T | top () const |
virtual | ~linkStack () |
Public Member Functions inherited from Stack::Stack< T > | |
virtual | ~Stack ()=default |
Private Attributes | |
node * | top_p |
Definition at line 36 of file linkStack.hpp.
Stack::linkStack< T >::linkStack |
Definition at line 66 of file linkStack.hpp.
Stack::linkStack< T >::linkStack | ( | std::initializer_list< T > && | il | ) |
Definition at line 72 of file linkStack.hpp.
|
virtual |
Definition at line 80 of file linkStack.hpp.
References Stack::linkStack< T >::top_p.
|
virtual |
Implements Stack::Stack< T >.
Definition at line 121 of file linkStack.hpp.
|
virtual |
Implements Stack::Stack< T >.
Definition at line 103 of file linkStack.hpp.
References Stack::linkStack< T >::node::data, and Stack::linkStack< T >::top_p.
|
virtual |
Implements Stack::Stack< T >.
Definition at line 91 of file linkStack.hpp.
References Stack::linkStack< T >::node::data, Stack::linkStack< T >::node::next, and Stack::linkStack< T >::top_p.
|
virtual |
Definition at line 97 of file linkStack.hpp.
|
virtual |
Implements Stack::Stack< T >.
Definition at line 115 of file linkStack.hpp.
|
private |
Definition at line 64 of file linkStack.hpp.
Referenced by Stack::linkStack< T >::pop(), Stack::linkStack< T >::push(), and Stack::linkStack< T >::~linkStack().