Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

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

SListPure< E > * m_list
 List object that the element belongs to. More...
 
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 61 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 73 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 80 of file SList.h.

◆ SListElement() [3/4]

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

Constructs an SListElement.

Definition at line 83 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 87 of file SList.h.

Friends And Related Function Documentation

◆ SListIteratorBase< E, false >

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

Definition at line 64 of file SList.h.

◆ SListIteratorBase< E, true >

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

Definition at line 63 of file SList.h.

◆ SListPure< E >

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

Definition at line 62 of file SList.h.

Member Data Documentation

◆ m_list

template<class E >
SListPure<E>* ogdf::SListElement< E >::m_list
private

List object that the element belongs to.

Definition at line 69 of file SList.h.

◆ m_next

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

Pointer to successor element.

Definition at line 66 of file SList.h.

◆ m_x

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

Stores the content.

Definition at line 67 of file SList.h.


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