|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
#include <tpl_snode_nc.H>
Classes | |
| class | Iterator |
Public Member Functions | |
| Snode_Nc () | |
| Constructor vacío. | |
| Snode_Nc (const T &_data) | |
| Constructor que copia dato. | |
| ~Snode_Nc () | |
| T & | get_data () |
| Retorna una referencia al dato contenido en el nodo. | |
| Snode_Nc * | remove_next () |
| Elimina el nodo siguiente a this. | |
| Snode_Nc *& | get_next () |
| Retorna el nodo siguiente a this. | |
Public Member Functions inherited from Aleph::Slink_Nc | |
| Slink_Nc () | |
| Constructor vacío. | |
| Slink_Nc (const Slink_Nc &) | |
| Constructor copia; coloca enlace a que apunte a nullptr. | |
| ~Slink_Nc () | |
| Slink_Nc & | operator= (const Slink_Nc &link) |
| Asignación; coloca enlace a que apunte a nullptr. | |
| void | reset () |
| Reinicia enlace a que apunte a nullptr. | |
| bool | is_empty () const |
| Retorna true si this está vacío (apunta a nullptr) | |
| Slink_Nc *& | get_next () |
| Retorna el siguiente enlace. | |
| void | insert (Slink_Nc *p) |
| Inserta en enlace p después de this. | |
| Slink_Nc * | remove_next () |
| Elimina el enlace siguiente a this. | |
Private Attributes | |
| T | data |
Additional Inherited Members | |
Protected Attributes inherited from Aleph::Slink_Nc | |
| Slink_Nc * | next |
Definition at line 46 of file tpl_snode_nc.H.
|
inline |
Constructor vacío.
Definition at line 52 of file tpl_snode_nc.H.
Constructor que copia dato.
Definition at line 55 of file tpl_snode_nc.H.
|
inline |
Definition at line 57 of file tpl_snode_nc.H.
|
inline |
Retorna una referencia al dato contenido en el nodo.
Definition at line 60 of file tpl_snode_nc.H.
References Aleph::Snode_Nc< T >::data.
Referenced by Aleph::Dyn_Slist_Nc< T >::append(), Aleph::Dyn_Slist_Nc< T >::get_first(), Aleph::Dyn_Slist_Nc< T >::get_last(), Aleph::Dyn_Slist_Nc< T >::insert(), and Aleph::Dyn_Slist_Nc< T >::remove_first().
|
inline |
Retorna el nodo siguiente a this.
Definition at line 75 of file tpl_snode_nc.H.
References Aleph::Slink_Nc::get_next().
Referenced by Aleph::Dyn_Slist_Nc< T >::get_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.
Definition at line 69 of file tpl_snode_nc.H.
References Aleph::Slink_Nc::remove_next().
Referenced by Aleph::Dyn_Slist_Nc< T >::empty(), and Aleph::Dyn_Slist_Nc< T >::remove_first().
|
private |
Definition at line 48 of file tpl_snode_nc.H.
Referenced by Aleph::Dyn_Slist_Nc< T >::append(), Aleph::Snode_Nc< T >::get_data(), and Aleph::Dyn_Slist_Nc< T >::insert().