Fréchet View  1.6.0
A Tool for Exploring Fréchet Distance Algorithms
frechet::data::LinkedListElement< T > Class Template Reference

Detailed Description

template<class T>
class frechet::data::LinkedListElement< T >

base template for elements of a LinkedList

Template Parameters
Telement type; must be derived from BLinkedListElement

Definition at line 54 of file linkedlist.h.

#include <linkedlist.h>

Inherits frechet::data::BLinkedListElement.

Public Member Functions

 LinkedListElement ()
 empty constructor More...
 
T * prev () const
 
T * next () const
 
T * next (bool forward)
 
- Public Member Functions inherited from frechet::data::BLinkedListElement
 BLinkedListElement ()
 empty constructor More...
 
BLinkedListElement *& prev ()
 
BLinkedListElement *& next ()
 

Additional Inherited Members

- Protected Attributes inherited from frechet::data::BLinkedListElement
BLinkedListElementlink [2]
 double links (previous, next) More...
 

Constructor & Destructor Documentation

◆ LinkedListElement()

template<class T>
frechet::data::LinkedListElement< T >::LinkedListElement ( )
inline

empty constructor

Definition at line 59 of file linkedlist.h.

Member Function Documentation

◆ next() [1/2]

template<class T>
T* frechet::data::LinkedListElement< T >::next ( ) const
inline
Returns
reference to next element in the double-linked-list, or nullptr

Definition at line 64 of file linkedlist.h.

◆ next() [2/2]

template<class T>
T* frechet::data::LinkedListElement< T >::next ( bool  forward)
inline
Parameters
forwarddirection of travel
Returns
reference to adjacent element in the double-linked-list, or nullptr

Definition at line 68 of file linkedlist.h.

◆ prev()

template<class T>
T* frechet::data::LinkedListElement< T >::prev ( ) const
inline
Returns
reference to previous element in the double-linked-list, or nullptr

Definition at line 62 of file linkedlist.h.


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