#include <Node.h>

Public Member Functions | |
| Node (int value=0) | |
| Node (Node const &other) | |
| ~Node () | |
| void | insert (Node *newNode) |
| void | remove_next () |
| bool | remove (Node *other) |
| int | distance (Node const *other) const |
| size_t | size () const |
Public Attributes | |
| Node * | pnext |
| int | data |
Friends | |
| void | print_list (Node const &head) |
Definition at line 6 of file Node.h.
| int Node::distance | ( | Node const * | other | ) | const |
| void Node::insert | ( | Node * | newNode | ) |
Definition at line 27 of file Node.cpp.
References pnext.
Referenced by Stack::push().

| void Node::remove_next | ( | ) |
Definition at line 34 of file Node.cpp.
References pnext.
Referenced by Stack::pop().

| size_t Node::size | ( | ) | const |
Definition at line 76 of file Node.cpp.
References distance().
Referenced by Stack::empty(), print_list(), and Stack::size().


| int Node::data |
Definition at line 10 of file Node.h.
Referenced by distance(), insert(), Stack::pop(), print_list(), print_stack(), remove(), remove_next(), Stack::top(), and Stack::~Stack().