![]() |
TheAlgorithms/C++ 1.0.0
All the algorithms implemented in C++
|
Public Member Functions | |
| int | val () |
| std::shared_ptr< link > & | succ () |
| link (int value=0) | |
Private Attributes | |
| int | pvalue |
| value of the current link | |
| std::shared_ptr< link > | psucc |
| pointer to the next value on the list | |
A link class containing a value and pointer to another link
Definition at line 53 of file linked_list.cpp.
|
inlineexplicit |
Creates link with provided value and pointer to next link
| value | is the integer stored in the link |
Definition at line 75 of file linked_list.cpp.
|
inline |
function returns the pointer to next link
Definition at line 69 of file linked_list.cpp.
|
inline |
function returns the integer value stored in the link.
Definition at line 63 of file linked_list.cpp.
|
private |
pointer to the next value on the list
Definition at line 56 of file linked_list.cpp.
|
private |
value of the current link
Definition at line 55 of file linked_list.cpp.