![]() |
aGrUM
0.20.3
a C++ library for (probabilistic) graphical models
|
Unsafe iterator on the node set of a graph. More...
#include <nodeGraphPart.h>
Public Member Functions | |
Constructors / Destructors | |
NodeGraphPartIterator (const NodeGraphPart &nodes) noexcept | |
Default constructor. More... | |
NodeGraphPartIterator (const NodeGraphPartIterator &it) noexcept | |
copy constructor More... | |
NodeGraphPartIterator (NodeGraphPartIterator &&it) noexcept | |
move constructor More... | |
virtual | ~NodeGraphPartIterator () noexcept |
destructor More... | |
Operators | |
NodeGraphPartIterator & | operator= (const NodeGraphPartIterator &it) noexcept |
copy assignment operator More... | |
NodeGraphPartIterator & | operator= (NodeGraphPartIterator &&it) noexcept |
move assignment operator More... | |
bool | operator== (const NodeGraphPartIterator &it) const noexcept |
checks whether two iterators point toward the same node More... | |
bool | operator!= (const NodeGraphPartIterator &it) const noexcept |
checks whether two iterators point toward different nodes More... | |
NodeGraphPartIterator & | operator++ () noexcept |
increment the iterator More... | |
value_type | operator* () const |
dereferencing operator More... | |
Public Types | |
using | iterator_category = std::forward_iterator_tag |
types for STL compliance More... | |
using | value_type = NodeId |
types for STL compliance More... | |
using | reference = value_type & |
types for STL compliance More... | |
using | const_reference = const value_type & |
types for STL compliance More... | |
using | pointer = value_type * |
types for STL compliance More... | |
using | const_pointer = const value_type * |
types for STL compliance More... | |
using | difference_type = std::ptrdiff_t |
types for STL compliance More... | |
Protected Attributes | |
const NodeGraphPart * | nodes_ |
the nodegraphpart on which points the iterator More... | |
NodeId | pos_ {0} |
the nodeid on which the iterator points currently More... | |
bool | valid_ {false} |
Protected Member Functions | |
void | setPos_ (NodeId id) noexcept |
this function is used by NodeGraphPart to update More... | |
void | validate_ () noexcept |
ensure that the nodeId is either end() either a valid NodeId More... | |
Friends | |
class | NodeGraphPart |
Unsafe iterator on the node set of a graph.
Definition at line 57 of file nodeGraphPart.h.
using gum::NodeGraphPartIterator::const_pointer = const value_type* |
types for STL compliance
Definition at line 68 of file nodeGraphPart.h.
using gum::NodeGraphPartIterator::const_reference = const value_type& |
types for STL compliance
Definition at line 66 of file nodeGraphPart.h.
using gum::NodeGraphPartIterator::difference_type = std::ptrdiff_t |
types for STL compliance
Definition at line 69 of file nodeGraphPart.h.
using gum::NodeGraphPartIterator::iterator_category = std::forward_iterator_tag |
types for STL compliance
Definition at line 63 of file nodeGraphPart.h.
types for STL compliance
Definition at line 67 of file nodeGraphPart.h.
types for STL compliance
Definition at line 65 of file nodeGraphPart.h.
types for STL compliance
Definition at line 64 of file nodeGraphPart.h.
|
noexcept |
Default constructor.
default constructor
Definition at line 54 of file nodeGraphPart_inl.h.
References gum::Set< Key, Alloc >::emplace().
|
noexcept |
copy constructor
Definition at line 60 of file nodeGraphPart_inl.h.
References gum::Set< Key, Alloc >::emplace().
|
noexcept |
move constructor
Definition at line 66 of file nodeGraphPart_inl.h.
References gum::Set< Key, Alloc >::emplace().
|
virtualnoexcept |
destructor
Definition at line 72 of file nodeGraphPart_inl.h.
References gum::Set< Key, Alloc >::emplace().
|
noexcept |
checks whether two iterators point toward different nodes
Definition at line 106 of file nodeGraphPart_inl.h.
References gum::Set< Key, Alloc >::emplace().
INLINE NodeId gum::NodeGraphPartIterator::operator* | ( | ) | const |
dereferencing operator
Definition at line 118 of file nodeGraphPart_inl.h.
References gum::Set< Key, Alloc >::emplace().
|
noexcept |
increment the iterator
Definition at line 111 of file nodeGraphPart_inl.h.
References gum::Set< Key, Alloc >::emplace().
|
noexcept |
copy assignment operator
Definition at line 78 of file nodeGraphPart_inl.h.
References gum::Set< Key, Alloc >::emplace().
|
noexcept |
move assignment operator
Definition at line 89 of file nodeGraphPart_inl.h.
References gum::Set< Key, Alloc >::emplace().
|
noexcept |
checks whether two iterators point toward the same node
Definition at line 100 of file nodeGraphPart_inl.h.
References gum::Set< Key, Alloc >::emplace().
|
protectednoexcept |
this function is used by NodeGraphPart to update
Definition at line 125 of file nodeGraphPart_inl.h.
References gum::Set< Key, Alloc >::emplace().
|
protectednoexcept |
ensure that the nodeId is either end() either a valid NodeId
Definition at line 37 of file nodeGraphPart_inl.h.
References gum::Set< Key, Alloc >::emplace().
|
friend |
Definition at line 58 of file nodeGraphPart.h.
|
protected |
the nodegraphpart on which points the iterator
Definition at line 126 of file nodeGraphPart.h.
|
protected |
the nodeid on which the iterator points currently
Definition at line 129 of file nodeGraphPart.h.
|
protected |
Definition at line 132 of file nodeGraphPart.h.