|
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 () | |
| Empty constructor. | |
| Snode_Nc (const T &_data) | |
| Constructor that copies data. | |
| ~Snode_Nc () | |
| T & | get_data () |
| Returns a reference to the data contained in the node. | |
| const T & | get_data () const |
| Returns a reference to the data contained in the node (constant version). | |
| Snode_Nc * | remove_next () |
| Removes the node following this. | |
| Snode_Nc *& | get_next () |
| Returns the node following this. | |
| const Snode_Nc * | get_next () const |
| Returns the node following this (constant version). | |
Public Member Functions inherited from Aleph::Slink_Nc | |
| Slink_Nc () | |
| Empty constructor. | |
| Slink_Nc (const Slink_Nc &) | |
| Copy constructor; sets the next link to nullptr. | |
| ~Slink_Nc () | |
| Slink_Nc & | operator= (const Slink_Nc &link) |
| Assignment; sets the next link to nullptr. | |
| void | reset () |
| Resets the link to nullptr. | |
| bool | is_empty () const |
| Returns true if this is empty (points to nullptr). | |
| Slink_Nc *& | get_next () |
| Returns the next link. | |
| const Slink_Nc * | get_next () const |
| Returns the next link (constant version). | |
| void | insert (Slink_Nc *p) |
| Inserts link p after this. | |
| Slink_Nc * | remove_next () |
| Removes the link following 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 |
Empty constructor.
Definition at line 52 of file tpl_snode_nc.H.
Constructor that copies data.
Definition at line 55 of file tpl_snode_nc.H.
|
inline |
Definition at line 57 of file tpl_snode_nc.H.
|
inline |
Returns a reference to the data contained in the node.
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_first(), Aleph::Dyn_Slist_Nc< T >::get_last(), Aleph::Dyn_Slist_Nc< T >::get_last(), Aleph::Dyn_Slist_Nc< T >::insert(), and Aleph::Dyn_Slist_Nc< T >::remove_first().
Returns a reference to the data contained in the node (constant version).
| none |
Definition at line 66 of file tpl_snode_nc.H.
References Aleph::Snode_Nc< T >::data.
|
inline |
Returns the node following this.
Definition at line 81 of file tpl_snode_nc.H.
References Aleph::Slink_Nc::get_next().
Referenced by Aleph::Dyn_Slist_Nc< T >::get_first(), and Aleph::Dyn_Slist_Nc< T >::get_first().
Returns the node following this (constant version).
| none |
Definition at line 90 of file tpl_snode_nc.H.
References Aleph::Slink_Nc::get_next().
|
inline |
Removes the node following this.
remove_next() removes the node linked after this and returns its memory address.
Definition at line 75 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(), Aleph::Snode_Nc< T >::get_data(), and Aleph::Dyn_Slist_Nc< T >::insert().