Fréchet View  1.6.0
A Tool for Exploring Fréchet Distance Algorithms
frechet::data::BLinkedListElement Class Reference

Detailed Description

base class for elements of a BLinkedList

Link references are stored inside the elements.

Derived class must not have a destructor! If they do, make sure to define LINKED_LIST_VDESTRUCTOR=1. (slightly increasing the memory footprint of objects)

See also
BLinkedList, LinkedList
Author
Peter Schäfer

Definition at line 23 of file linkedlist.h.

#include <linkedlist.h>

Inherited by frechet::data::LinkedListElement< T >, and frechet::data::LinkedListElement< BoundarySegment >.

Public Member Functions

 BLinkedListElement ()
 empty constructor More...
 
BLinkedListElement *& prev ()
 
BLinkedListElement *& next ()
 

Protected Attributes

BLinkedListElementlink [2]
 double links (previous, next) More...
 

Friends

class BLinkedList
 

Constructor & Destructor Documentation

◆ BLinkedListElement()

BLinkedListElement::BLinkedListElement ( )

empty constructor

Definition at line 10 of file linkedlist.cpp.

Member Function Documentation

◆ next()

BLinkedListElement*& frechet::data::BLinkedListElement::next ( )
inline
Returns
reference to next element in the double-linked-list, or nullptr

Definition at line 46 of file linkedlist.h.

◆ prev()

BLinkedListElement*& frechet::data::BLinkedListElement::prev ( )
inline
Returns
reference to previous element in the double-linked-list, or nullptr

Definition at line 44 of file linkedlist.h.

Friends And Related Function Documentation

◆ BLinkedList

friend class BLinkedList
friend

Definition at line 27 of file linkedlist.h.

Member Data Documentation

◆ link

BLinkedListElement* frechet::data::BLinkedListElement::link[2]
protected

double links (previous, next)

Definition at line 26 of file linkedlist.h.


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