Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

ogdf::internal::GraphIteratorBase< GraphObjectPtr, isReverse, isConst > Class Template Reference

#include <ogdf/basic/internal/graph_iterators.h>

Public Types

using difference_type = std::ptrdiff_t
 
using iterator_category = std::bidirectional_iterator_tag
 
using pointer = value_type *
 
using reference = value_type &
 
using value_type = typename std::conditional< isConst, const GraphObjectPtr, GraphObjectPtr >::type
 

Public Member Functions

 GraphIteratorBase ()
 
template<bool isArgReverse>
 GraphIteratorBase (GraphIteratorBase< GraphObjectPtr, isArgReverse, isConst > &it)
 
 GraphIteratorBase (GraphObjectPtr ptr)
 
bool operator!= (const T &other) const
 
const GraphObjectPtr & operator* () const
 
Toperator++ ()
 Increment operator (prefix). More...
 
T operator++ (int)
 Increment operator (postfix). More...
 
Toperator-- ()
 Decrement operator (prefix). More...
 
T operator-- (int)
 Decrement operator (postfix). More...
 
bool operator== (const T &other) const
 

Private Types

using T = GraphIteratorBase< GraphObjectPtr, isReverse, isConst >
 

Private Attributes

GraphObjectPtr m_ptr
 

Friends

class GraphIteratorBase< GraphObjectPtr, !isReverse, isConst >
 

Detailed Description

template<class GraphObjectPtr, bool isReverse, bool isConst>
class ogdf::internal::GraphIteratorBase< GraphObjectPtr, isReverse, isConst >

Definition at line 45 of file graph_iterators.h.

Member Typedef Documentation

◆ difference_type

template<class GraphObjectPtr , bool isReverse, bool isConst>
using ogdf::internal::GraphIteratorBase< GraphObjectPtr, isReverse, isConst >::difference_type = std::ptrdiff_t

Definition at line 60 of file graph_iterators.h.

◆ iterator_category

template<class GraphObjectPtr , bool isReverse, bool isConst>
using ogdf::internal::GraphIteratorBase< GraphObjectPtr, isReverse, isConst >::iterator_category = std::bidirectional_iterator_tag

Definition at line 62 of file graph_iterators.h.

◆ pointer

template<class GraphObjectPtr , bool isReverse, bool isConst>
using ogdf::internal::GraphIteratorBase< GraphObjectPtr, isReverse, isConst >::pointer = value_type*

Definition at line 63 of file graph_iterators.h.

◆ reference

template<class GraphObjectPtr , bool isReverse, bool isConst>
using ogdf::internal::GraphIteratorBase< GraphObjectPtr, isReverse, isConst >::reference = value_type&

Definition at line 64 of file graph_iterators.h.

◆ T

template<class GraphObjectPtr , bool isReverse, bool isConst>
using ogdf::internal::GraphIteratorBase< GraphObjectPtr, isReverse, isConst >::T = GraphIteratorBase<GraphObjectPtr, isReverse, isConst>
private

Definition at line 55 of file graph_iterators.h.

◆ value_type

template<class GraphObjectPtr , bool isReverse, bool isConst>
using ogdf::internal::GraphIteratorBase< GraphObjectPtr, isReverse, isConst >::value_type = typename std::conditional<isConst, const GraphObjectPtr, GraphObjectPtr>::type

Definition at line 61 of file graph_iterators.h.

Constructor & Destructor Documentation

◆ GraphIteratorBase() [1/3]

template<class GraphObjectPtr , bool isReverse, bool isConst>
ogdf::internal::GraphIteratorBase< GraphObjectPtr, isReverse, isConst >::GraphIteratorBase ( )
inline

Definition at line 66 of file graph_iterators.h.

◆ GraphIteratorBase() [2/3]

template<class GraphObjectPtr , bool isReverse, bool isConst>
ogdf::internal::GraphIteratorBase< GraphObjectPtr, isReverse, isConst >::GraphIteratorBase ( GraphObjectPtr  ptr)
inline

Definition at line 68 of file graph_iterators.h.

◆ GraphIteratorBase() [3/3]

template<class GraphObjectPtr , bool isReverse, bool isConst>
template<bool isArgReverse>
ogdf::internal::GraphIteratorBase< GraphObjectPtr, isReverse, isConst >::GraphIteratorBase ( GraphIteratorBase< GraphObjectPtr, isArgReverse, isConst > &  it)
inline

Definition at line 71 of file graph_iterators.h.

Member Function Documentation

◆ operator!=()

template<class GraphObjectPtr , bool isReverse, bool isConst>
bool ogdf::internal::GraphIteratorBase< GraphObjectPtr, isReverse, isConst >::operator!= ( const T other) const
inline

Definition at line 76 of file graph_iterators.h.

◆ operator*()

template<class GraphObjectPtr , bool isReverse, bool isConst>
const GraphObjectPtr& ogdf::internal::GraphIteratorBase< GraphObjectPtr, isReverse, isConst >::operator* ( ) const
inline

Definition at line 78 of file graph_iterators.h.

◆ operator++() [1/2]

template<class GraphObjectPtr , bool isReverse, bool isConst>
T& ogdf::internal::GraphIteratorBase< GraphObjectPtr, isReverse, isConst >::operator++ ( )
inline

Increment operator (prefix).

Definition at line 81 of file graph_iterators.h.

◆ operator++() [2/2]

template<class GraphObjectPtr , bool isReverse, bool isConst>
T ogdf::internal::GraphIteratorBase< GraphObjectPtr, isReverse, isConst >::operator++ ( int  )
inline

Increment operator (postfix).

Definition at line 88 of file graph_iterators.h.

◆ operator--() [1/2]

template<class GraphObjectPtr , bool isReverse, bool isConst>
T& ogdf::internal::GraphIteratorBase< GraphObjectPtr, isReverse, isConst >::operator-- ( )
inline

Decrement operator (prefix).

Definition at line 96 of file graph_iterators.h.

◆ operator--() [2/2]

template<class GraphObjectPtr , bool isReverse, bool isConst>
T ogdf::internal::GraphIteratorBase< GraphObjectPtr, isReverse, isConst >::operator-- ( int  )
inline

Decrement operator (postfix).

Definition at line 103 of file graph_iterators.h.

◆ operator==()

template<class GraphObjectPtr , bool isReverse, bool isConst>
bool ogdf::internal::GraphIteratorBase< GraphObjectPtr, isReverse, isConst >::operator== ( const T other) const
inline

Definition at line 74 of file graph_iterators.h.

Friends And Related Function Documentation

◆ GraphIteratorBase< GraphObjectPtr, !isReverse, isConst >

template<class GraphObjectPtr , bool isReverse, bool isConst>
friend class GraphIteratorBase< GraphObjectPtr, !isReverse, isConst >
friend

Definition at line 54 of file graph_iterators.h.

Member Data Documentation

◆ m_ptr

template<class GraphObjectPtr , bool isReverse, bool isConst>
GraphObjectPtr ogdf::internal::GraphIteratorBase< GraphObjectPtr, isReverse, isConst >::m_ptr
private

Definition at line 57 of file graph_iterators.h.


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