C++ Reference

C++ Reference: Graph

ListGraph< NodeIndexType, ArcIndexType >::OutgoingHeadIterator

Detailed Description

template<typename NodeIndexType = int32, typename ArcIndexType = int32>
class util::ListGraph< NodeIndexType, ArcIndexType >::OutgoingHeadIterator

Definition at line 1199 of file graph.h.

Public Types

using iterator_category = std::input_iterator_tag
 
using difference_type = ptrdiff_t
 
using pointer = const NodeIndexType *
 
using reference = const NodeIndexType &
 
using value_type = NodeIndexType
 

Public Member Functions

 OutgoingHeadIterator (const ListGraph &graph, NodeIndexType node)
 
 OutgoingHeadIterator (const ListGraph &graph, NodeIndexType node, ArcIndexType arc)
 
bool Ok () const
 
NodeIndexType Index () const
 
void Next ()
 
bool operator!= (const typename ListGraph< NodeIndexType, ArcIndexType >::OutgoingHeadIterator &other) const
 
NodeIndexType operator* () const
 
void operator++ ()
 

Member Typedef Documentation

◆ difference_type

using difference_type = ptrdiff_t

Definition at line 1202 of file graph.h.

◆ iterator_category

using iterator_category = std::input_iterator_tag

Definition at line 1201 of file graph.h.

◆ pointer

using pointer = const NodeIndexType*

Definition at line 1203 of file graph.h.

◆ reference

using reference = const NodeIndexType&

Definition at line 1204 of file graph.h.

◆ value_type

using value_type = NodeIndexType

Definition at line 1205 of file graph.h.

Constructor & Destructor Documentation

◆ OutgoingHeadIterator() [1/2]

OutgoingHeadIterator ( const ListGraph graph,
NodeIndexType  node 
)
inline

Definition at line 1207 of file graph.h.

◆ OutgoingHeadIterator() [2/2]

OutgoingHeadIterator ( const ListGraph graph,
NodeIndexType  node,
ArcIndexType  arc 
)
inline

Definition at line 1211 of file graph.h.

Member Function Documentation

◆ Index()

NodeIndexType Index ( ) const
inline

Definition at line 1218 of file graph.h.

◆ Next()

void Next ( )
inline

Definition at line 1219 of file graph.h.

◆ Ok()

bool Ok ( ) const
inline

Definition at line 1217 of file graph.h.

◆ operator!=()

bool operator!= ( const typename ListGraph< NodeIndexType, ArcIndexType >::OutgoingHeadIterator other) const
inline

Definition at line 1224 of file graph.h.

◆ operator*()

NodeIndexType operator* ( ) const
inline

Definition at line 1229 of file graph.h.

◆ operator++()

void operator++ ( )
inline

Definition at line 1230 of file graph.h.


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