|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
Node belonging to a single non-circular linked list without header node. More...
#include <htlist.H>
Public Member Functions | |
| T & | get_data () noexcept |
| Return a modifiable reference to the data. | |
| const T & | get_data () const noexcept |
| Return a constant reference to the data. | |
| Snodenc () | |
| Snodenc (const T &item) | |
Construct with copy of item | |
| Snodenc (T &&item) | |
Construct by moving item | |
| Snodenc * | remove_next () noexcept |
Remove the node following to this. | |
| Snodenc *& | get_next () noexcept |
Return the node following to this | |
| Snodenc * | remove_first () noexcept |
| Snodenc *& | get_first () const noexcept |
Return the node following to this. | |
Public Member Functions inherited from Aleph::Slinknc | |
| virtual | ~Slinknc ()=default |
| constexpr bool | is_empty () const noexcept |
Return true if this is empty. | |
| Slinknc () noexcept | |
| Init to nullptr. | |
| Slinknc (const Slinknc &) noexcept | |
| Dummy copy constructor. | |
| void | reset () noexcept |
| Reset the link to nullptr. | |
| Slinknc & | operator= (const Slinknc &) noexcept |
| Dummy asignation; link is set to nullptr. | |
| Slinknc *& | get_next () noexcept |
| getter | |
| void | insert (Slinknc *p) noexcept |
Insert p after this | |
| Slinknc * | remove_next () noexcept |
Remove for linked list the node pointed by this | |
| template<typename T > | |
| Snodenc< T > * | to_snodenc () noexcept |
Convert this to a Snodenc<T>. | |
| template<typename T > | |
| T & | to_data () noexcept |
| template<typename T > | |
| const Snodenc< T > * | to_snodenc () const noexcept |
| template<typename T > | |
| const T & | to_data () const noexcept |
Private Attributes | |
| T | data |
Node belonging to a single non-circular linked list without header node.
|
inline |
|
inline |
Return a constant reference to the data.
Definition at line 341 of file htlist.H.
References Aleph::Snodenc< T >::data.
|
inlinenoexcept |
Return a modifiable reference to the data.
Definition at line 336 of file htlist.H.
References Aleph::Snodenc< T >::data.
Referenced by Aleph::DynList< T >::get_last_ne(), TEST(), TEST(), TEST(), TEST(), TEST(), and TEST_F().
|
inlinenoexcept |
Return the node following to this.
In the case where this is a pointer to the first node, returns the first node.
Definition at line 430 of file htlist.H.
References Aleph::Snodenc< T >::get_next().
|
inlinenoexcept |
Return the node following to this
Definition at line 403 of file htlist.H.
References Aleph::Slinknc::get_next().
Referenced by Aleph::DynList< T >::empty(), and Aleph::Snodenc< T >::get_first().
|
inlinenoexcept |
Definition at line 411 of file htlist.H.
References Aleph::Snodenc< T >::remove_next().
|
inlinenoexcept |
Remove the node following to this.
remove_next()removes the node linked after this and returns its address.
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Definition at line 385 of file htlist.H.
References Aleph::Slinknc::remove_next().
Referenced by Aleph::Snodenc< T >::remove_first().
|
private |
Definition at line 329 of file htlist.H.
Referenced by Aleph::Snodenc< T >::get_data(), and Aleph::Snodenc< T >::get_data().