Rudiments
Public Member Functions | List of all members
listnode< valuetype > Class Template Referenceabstract

#include <listcollection.h>

Inherits nodecollectionnode< valuetype >.

Inherited by linkedlistnode< valuetype >, and singlylinkedlistnode< valuetype >.

Public Member Functions

virtual void setValue (valuetype value)=0
 
virtual valuetype getValue ()=0
 
virtual valuetypegetReference ()=0
 
virtual listnode< valuetype > * getPrevious ()=0
 
virtual listnode< valuetype > * getNext ()=0
 
- Public Member Functions inherited from object
virtual ~object ()
 

Detailed Description

template<class valuetype>
class listnode< valuetype >

The listnode class is the parent class for the node contained by all rudiments listnode-based collections.

Member Function Documentation

◆ getNext()

template<class valuetype >
virtual listnode< valuetype > * listnode< valuetype >::getNext ( )
pure virtual

Returns the next node in the listcollection or NULL if this node is the last node in the list.

Implements nodecollectionnode< valuetype >.

Implemented in linkedlistnode< valuetype >, and singlylinkedlistnode< valuetype >.

◆ getPrevious()

template<class valuetype >
virtual listnode< valuetype > * listnode< valuetype >::getPrevious ( )
pure virtual

Returns the previous node in the listcollection or NULL if this node is the first node in the list.

Implemented in linkedlistnode< valuetype >, and singlylinkedlistnode< valuetype >.

◆ getReference()

template<class valuetype >
virtual valuetype & listnode< valuetype >::getReference ( )
pure virtual

Returns a reference to the value stored in the node.

Implements nodecollectionnode< valuetype >.

Implemented in linkedlistnode< valuetype >, and singlylinkedlistnode< valuetype >.

◆ getValue()

template<class valuetype >
virtual valuetype listnode< valuetype >::getValue ( )
pure virtual

Returns the value stored in the node.

Implements nodecollectionnode< valuetype >.

Implemented in linkedlistnode< valuetype >, and singlylinkedlistnode< valuetype >.

◆ setValue()

template<class valuetype >
virtual void listnode< valuetype >::setValue ( valuetype value)
pure virtual

Set the value stored in the node to "value".

Implements nodecollectionnode< valuetype >.

Implemented in linkedlistnode< valuetype >, and singlylinkedlistnode< valuetype >.