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

#include <slink.H>

+ Inheritance diagram for Aleph::Slink:
+ Collaboration diagram for Aleph::Slink:

Public Member Functions

 Slink ()
 Constructor vacío.
 
void reset ()
 Reinicia enlace a que apunte a sí mismo.
 
bool is_empty () const
 Retorna true si this está vacío (apunta a sí mismo)
 
Slink *& get_next ()
 Retorna el siguiente enlace.
 
void insert_next (Slink *p)
 
Slinkremove_next ()
 

Protected Attributes

Slinknext
 

Detailed Description

Enlace simple a lista de nodos.

Slink modeliza un puntero a un nodo dentro de una lista simplemente enlazada.

See also
Snode Slist DynSlist Dlink

Member Function Documentation

◆ insert_next()

void Aleph::Slink::insert_next ( Slink p)
inline

Inserta en enlace p después de this.

insert_next(p) inserta un nodo simple cuyo enlace es p después del nodo cuyo enlace es this.

Parameters
[in]pel enlace simple a insertar.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ remove_next()

Slink* Aleph::Slink::remove_next ( )
inline

Elimina el enlace siguiente a this.

remove_next() elimina el nodo simple situado después del nodo cuyo enlace es this y retorna la dirección del enlace eliminado.

Returns
el enlace eliminado.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

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

Leandro Rabindranath León