Open
Graph Drawing
Framework

 v. 2022.02 (Dogwood)
 

ogdf::SListElement< E > Class Template Reference

Structure for elements of singly linked lists. More...

#include <ogdf/basic/SList.h>

Private Member Functions

 SListElement ()
 Constructs an SListElement. More...
 
 SListElement (SListPure< E > *list, const E &x)
 Constructs an SListElement. More...
 
 SListElement (SListPure< E > *list, const E &x, SListElement< E > *next)
 Constructs an SListElement. More...
 
template<class ... Args>
 SListElement (SListPure< E > *list, SListElement< E > *next, Args &&... args)
 Constructs an SListElement with given arguments args for constructor of element type. More...
 

Private Attributes

SListElement< E > * m_next
 Pointer to successor element. More...
 
m_x
 Stores the content. More...
 

Friends

class SListIteratorBase< E, false >
 
class SListIteratorBase< E, true >
 
class SListPure< E >
 

Detailed Description

template<class E>
class ogdf::SListElement< E >

Structure for elements of singly linked lists.

Definition at line 45 of file SList.h.

Constructor & Destructor Documentation

◆ SListElement() [1/4]

template<class E >
ogdf::SListElement< E >::SListElement ( SListPure< E > *  list,
const E &  x,
SListElement< E > *  next 
)
inlineprivate

Constructs an SListElement.

Definition at line 57 of file SList.h.

◆ SListElement() [2/4]

template<class E >
ogdf::SListElement< E >::SListElement ( SListPure< E > *  list,
const E &  x 
)
inlineprivate

Constructs an SListElement.

Definition at line 64 of file SList.h.

◆ SListElement() [3/4]

template<class E >
ogdf::SListElement< E >::SListElement ( )
inlineprivate

Constructs an SListElement.

Definition at line 66 of file SList.h.

◆ SListElement() [4/4]

template<class E >
template<class ... Args>
ogdf::SListElement< E >::SListElement ( SListPure< E > *  list,
SListElement< E > *  next,
Args &&...  args 
)
inlineprivate

Constructs an SListElement with given arguments args for constructor of element type.

Definition at line 69 of file SList.h.

Friends And Related Function Documentation

◆ SListIteratorBase< E, false >

template<class E >
friend class SListIteratorBase< E, false >
friend

Definition at line 48 of file SList.h.

◆ SListIteratorBase< E, true >

template<class E >
friend class SListIteratorBase< E, true >
friend

Definition at line 47 of file SList.h.

◆ SListPure< E >

template<class E >
friend class SListPure< E >
friend

Definition at line 46 of file SList.h.

Member Data Documentation

◆ m_next

template<class E >
SListElement<E>* ogdf::SListElement< E >::m_next
private

Pointer to successor element.

Definition at line 50 of file SList.h.

◆ m_x

template<class E >
E ogdf::SListElement< E >::m_x
private

Stores the content.

Definition at line 51 of file SList.h.


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