|
Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
|
#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 |
| Snodenc *& | get_next () noexcept |
Return the node following to this | |
| Snodenc * | remove_first () noexcept |
See remove_next(). | |
| Snodenc *& | get_first () noexcept |
Return the first node of the list whose header is 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 |
| void | insert (Slinknc *p) noexcept |
insert(p) inserts the node pointed by p after this. | |
| Slinknc * | remove_next () noexcept |
| template<typename T > | |
| Snodenc< T > * | to_snodenc () noexcept |
Convert this to a Snodenc<T>. | |
| template<typename T > | |
| T & | to_data () noexcept |
Return the item of the Snodenc<T> that this is. | |
| template<typename T > | |
| const Snodenc< T > * | to_snodenc () const noexcept |
Convert this to a constant Snodenc<T>, as the other overload. | |
| template<typename T > | |
| const T & | to_data () const noexcept |
Return the constant item of the Snodenc<T> that this is. | |
Private Attributes | |
| T | data |
Node belonging to a single non-circular linked list without header
node.
|
inline |
|
inline |
|
inline |
|
inlinenoexcept |
Return a constant reference to the data.
Definition at line 302 of file htlist.H.
References Aleph::Snodenc< T >::data.
|
inlinenoexcept |
Return a modifiable reference to the data.
Definition at line 295 of file htlist.H.
References Aleph::Snodenc< T >::data.
Referenced by Aleph::DynList< T >::get_last_ne(), Aleph::DynList< T >::get_last_ne(), print(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST_F(), TEST_F(), and Aleph::Slinknc::to_data().
|
inlinenoexcept |
Return the first node of the list whose header is this.
It is the node following to this, as in get_next().
this, so that assigning to it changes the list. The link is null if the list is empty. Definition at line 363 of file htlist.H.
References Aleph::Snodenc< T >::get_next().
|
inlinenoexcept |
Return the node following to this
Definition at line 342 of file htlist.H.
References Aleph::Slinknc::get_next().
Referenced by Aleph::DynList< T >::empty(), Aleph::Snodenc< T >::get_first(), and TEST().
|
inlinenoexcept |
See remove_next().
Definition at line 350 of file htlist.H.
References Aleph::Snodenc< T >::remove_next().
Referenced by TEST().
|
inlinenoexcept |
Remove the node following to `this`.
remove_next()removes the node linked after this and returns its address.
Definition at line 335 of file htlist.H.
References Aleph::Slinknc::remove_next().
Referenced by Aleph::Snodenc< T >::remove_first().
|
private |
Definition at line 290 of file htlist.H.
Referenced by Aleph::Snodenc< T >::get_data(), and Aleph::Snodenc< T >::get_data().