Node Properties and Methods for the Linked List. More...
#include <node.hpp>
Public Member Functions | |
| Node (int const new_val) | |
| Constructor Creates a new node with an assigned value. | |
| Node (int const new_val, Node *const p_new_head) | |
| Constructor Creates a new node with an assigned value and an address pointing to the next head. | |
| int | getValue () const |
| Method that will return the current value being stored in the node. | |
| Node * | get_nextNode () const |
| Method that will return the address of the next node that the current node is pointing to. | |
| void | value (int const new_val) |
| Method that will modify the value of the current node with the requested value. | |
| void | p_next (Node *const p_new_head) |
| Method that will modify the address of the next node in the current node. | |
Node Properties and Methods for the Linked List.
| Node::Node | ( | int const | new_val | ) |
Constructor Creates a new node with an assigned value.
| Node::Node | ( | int const | new_val, |
| Node *const | p_new_head ) |
Constructor Creates a new node with an assigned value and an address pointing to the next head.
| Node * Node::get_nextNode | ( | ) | const |
Method that will return the address of the next node that the current node is pointing to.
| int Node::getValue | ( | ) | const |
Method that will return the current value being stored in the node.
| void Node::p_next | ( | Node *const | p_new_head | ) |
Method that will modify the address of the next node in the current node.
| p_new_head | A constant new address of the next node that we want to set to the node. |
| void Node::value | ( | int const | new_val | ) |
Method that will modify the value of the current node with the requested value.
| new_val | A constant integer value that we want to set to the node. |