|
Aleph-w 3.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 |
| Snodenc *& | get_first () const noexcept |
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 |
| 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 291 of file htlist.H.
References Aleph::Snodenc< T >::data.
|
inlinenoexcept |
Return a modifiable reference to the data.
Definition at line 287 of file htlist.H.
References Aleph::Snodenc< T >::data.
Referenced by Aleph::DynList< T >::get_last_ne(), print(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST_F(), and Aleph::Slinknc::to_data().
|
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 351 of file htlist.H.
References Aleph::Snodenc< T >::get_next().
|
inlinenoexcept |
Return the node following to this
Definition at line 332 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 340 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 325 of file htlist.H.
References Aleph::Slinknc::remove_next().
Referenced by Aleph::Snodenc< T >::remove_first().
|
private |
Definition at line 281 of file htlist.H.
Referenced by Aleph::Snodenc< T >::get_data(), and Aleph::Snodenc< T >::get_data().