|
DSA - Data Structures and Algorithms
|
Implements Node class with user data. More...
#include <forward_list.h>
Public Member Functions | |
| Node (const T &value) | |
| Construct a new Node object with initial value. | |
| Node (T &&value) | |
| Construct a new Node object with initial value using move semantics. | |
| auto | value () -> T & |
| Function returns value stored in Node object. | |
| auto | value () const -> T |
| Function returns value stored in Node object. | |
| Public Member Functions inherited from dsa::ForwardList< T >::NodeBase | |
| NodeBase ()=default | |
| Construct a new NodeBase object. | |
| NodeBase (const NodeBase &other)=default | |
| Construct a new NodeBase object using copy constructor. | |
| auto | operator= (const NodeBase &other) -> NodeBase &=default |
| Construct a new NodeBase object using copy assignment. | |
| NodeBase (NodeBase &&other)=default | |
| Construct NodeBase object using move constructor. | |
| auto | operator= (NodeBase &&other) -> NodeBase &=default |
| Construct NodeBase object using move assignment. | |
| virtual | ~NodeBase ()=default |
| Destroy the Node Base object. | |
Friends | |
| class | ForwardList |
| Forward friend declaration of ForwardList. | |
Implements Node class with user data.
Definition at line 104 of file forward_list.h.
|
inline |
Construct a new Node object with initial value.
| [in] | value | to store in Node object |
Definition at line 113 of file forward_list.h.
|
inline |
Construct a new Node object with initial value using move semantics.
value will be taken by constructed object
| [in] | value | to store in Node object |
Definition at line 123 of file forward_list.h.
|
inlinenodiscard |
Function returns value stored in Node object.
Definition at line 132 of file forward_list.h.
|
inlinenodiscard |
Function returns value stored in Node object.
Definition at line 142 of file forward_list.h.
|
friend |
Forward friend declaration of ForwardList.
Definition at line 152 of file forward_list.h.