Aleph-w  1.9
General library for algorithms and data structures
Aleph::Snode< T > Class Template Reference

#include <tpl_snode.H>

+ Inheritance diagram for Aleph::Snode< T >:
+ Collaboration diagram for Aleph::Snode< T >:

Public Member Functions

T & get_data ()
 Retorna una referencia al dato contenido en el nodo.
 
 Snode ()
 Constructor vacío.
 
 Snode (const T &_data)
 Constructor que copia dato.
 
 Snode (const T &&_data)
 
Snoderemove_next ()
 
Snode *& get_next ()
 Retorna el nodo siguiente a this.
 
Snoderemove_first ()
 
Snode *& get_first () const
 Retorna el nodo siguiente a this.
 
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)
 
void insert_next (Slink *p)
 

Protected Attributes

Slinknext
 

Detailed Description

template<typename T>
class Aleph::Snode< T >

Nodo simple con dato de tipo de T de una lista simplemente enlazada.

La clase Snode hereda toda la interfaz de Slink y define genéricamente el dato que contiene el nodo.

Parameters
Tel tipo dato que guarda el nodo.
See also
DynSlist Snode Slink

Member Function Documentation

◆ insert_next()

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

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_first()

template<typename T>
Snode* Aleph::Snode< T >::remove_first ( )
inline

Elimina el nodo siguiente a this.

remove_next() elimina el nodo enlazado después de this y retorna su dirección de memoria.

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

◆ remove_next()

template<typename T>
Snode* Aleph::Snode< T >::remove_next ( )
inline

Elimina el nodo siguiente a this.

remove_next() elimina el nodo enlazado después de this y retorna su dirección de memoria.

Returns
el nodo 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