Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
Aleph::Snode_Nc< T > Class Template Reference

#include <tpl_snode_nc.H>

Inheritance diagram for Aleph::Snode_Nc< T >:
[legend]
Collaboration diagram for Aleph::Snode_Nc< T >:
[legend]

Classes

class  Iterator
 

Public Member Functions

 Snode_Nc ()
 Empty constructor.
 
 Snode_Nc (const T &_data)
 Constructor that copies data.
 
 ~Snode_Nc ()
 
Tget_data ()
 Returns a reference to the data contained in the node.
 
const Tget_data () const
 Returns a reference to the data contained in the node (constant version).
 
Snode_Ncremove_next ()
 Removes the node following this.
 
Snode_Nc *& get_next ()
 Returns the node following this.
 
const Snode_Ncget_next () const
 Returns the node following this (constant version).
 

Private Attributes

T data
 

Additional Inherited Members

Detailed Description

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

Definition at line 46 of file tpl_snode_nc.H.

Constructor & Destructor Documentation

◆ Snode_Nc() [1/2]

template<typename T >
Aleph::Snode_Nc< T >::Snode_Nc ( )
inline

Empty constructor.

Definition at line 52 of file tpl_snode_nc.H.

◆ Snode_Nc() [2/2]

template<typename T >
Aleph::Snode_Nc< T >::Snode_Nc ( const T _data)
inline

Constructor that copies data.

Definition at line 55 of file tpl_snode_nc.H.

◆ ~Snode_Nc()

template<typename T >
Aleph::Snode_Nc< T >::~Snode_Nc ( )
inline

Definition at line 57 of file tpl_snode_nc.H.

Member Function Documentation

◆ get_data() [1/2]

◆ get_data() [2/2]

template<typename T >
const T & Aleph::Snode_Nc< T >::get_data ( ) const
inline

Returns a reference to the data contained in the node (constant version).

Returns
constant reference to the data.
Exceptions
none

Definition at line 66 of file tpl_snode_nc.H.

References Aleph::Snode_Nc< T >::data.

◆ get_next() [1/2]

template<typename T >
Snode_Nc *& Aleph::Snode_Nc< T >::get_next ( )
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().

◆ get_next() [2/2]

template<typename T >
const Snode_Nc * Aleph::Snode_Nc< T >::get_next ( ) const
inline

Returns the node following this (constant version).

Returns
a constant pointer to the next node.
Exceptions
none

Definition at line 90 of file tpl_snode_nc.H.

References Aleph::Slink_Nc::get_next().

◆ remove_next()

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

Removes the node following this.

remove_next() removes the node linked after this and returns its memory address.

Returns
the removed node.

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

Member Data Documentation

◆ data


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