Aleph-w  1.9
General library for algorithms and data structures
Aleph::Slinknc Class Reference

#include <htlist.H>

+ Inheritance diagram for Aleph::Slinknc:

Classes

class  Iterator
 

Public Member Functions

bool is_empty () const noexcept
 Return true if this is empty.
 
 Slinknc () noexcept
 
 Slinknc (const Slinknc &) noexcept
 
void reset () noexcept
 
Slinkncoperator= (const Slinknc &) noexcept
 
Slinknc *& get_next () noexcept
 getter
 
void insert (Slinknc *p) noexcept
 Insert p after this More...
 
Slinkncremove_next () noexcept
 
template<typename T >
Snodenc< T > * to_snodenc () noexcept
 
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
 

Detailed Description

Link of a single linked list non circular and without header node.

Constructor & Destructor Documentation

◆ Slinknc() [1/2]

Aleph::Slinknc::Slinknc ( )
inlinenoexcept

Init to nullptr

◆ Slinknc() [2/2]

Aleph::Slinknc::Slinknc ( const Slinknc )
inlinenoexcept

Dummy copy constructor. Link is set to nullptr

Member Function Documentation

◆ insert()

void Aleph::Slinknc::insert ( Slinknc p)
inlinenoexcept

Insert p after this

insert(p) inserts the node pointed by p after this.

Parameters
[in]ppointer to link (or node)
+ Here is the caller graph for this function:

◆ operator=()

Slinknc& Aleph::Slinknc::operator= ( const Slinknc )
inlinenoexcept

Dummy asignation; link is set to nullptr

◆ remove_next()

Slinknc* Aleph::Slinknc::remove_next ( )
inlinenoexcept

Remove for linked list the node pointed by this

Returns
a pointer to the removed node
+ Here is the caller graph for this function:

◆ reset()

void Aleph::Slinknc::reset ( )
inlinenoexcept

Reset the link to nullptr

+ Here is the caller graph for this function:

◆ to_snodenc()

template<typename T >
Snodenc< T > * Aleph::Slinknc::to_snodenc ( )
inlinenoexcept

Convert this to a `Snodenc<T>.

Note
Undefined and probably buggy behavior if this is not a valid pointer

The documentation for this class was generated from the following file:

Leandro Rabindranath León