![]() |
aGrUM 2.3.2
a C++ library for (probabilistic) graphical models
|
Unsafe iterator on the node set of a graph. More...
#include <nodeGraphPart.h>
Public Types | |
| using | iterator_category = std::forward_iterator_tag |
| types for STL compliance | |
| using | value_type = NodeId |
| types for STL compliance | |
| using | reference = value_type& |
| types for STL compliance | |
| using | const_reference = const value_type& |
| types for STL compliance | |
| using | pointer = value_type* |
| types for STL compliance | |
| using | const_pointer = const value_type* |
| types for STL compliance | |
| using | difference_type = std::ptrdiff_t |
| types for STL compliance | |
Public Member Functions | |
Constructors / Destructors | |
| NodeGraphPartIterator (const NodeGraphPart &nodes) noexcept | |
| Default constructor. | |
| NodeGraphPartIterator (const NodeGraphPartIterator &it) noexcept | |
| copy constructor | |
| NodeGraphPartIterator (NodeGraphPartIterator &&it) noexcept | |
| move constructor | |
| virtual | ~NodeGraphPartIterator () noexcept |
| destructor | |
Operators | |
| NodeGraphPartIterator & | operator= (const NodeGraphPartIterator &it) noexcept |
| copy assignment operator | |
| NodeGraphPartIterator & | operator= (NodeGraphPartIterator &&it) noexcept |
| move assignment operator | |
| bool | operator== (const NodeGraphPartIterator &it) const noexcept |
| checks whether two iterators point toward the same node | |
| bool | operator!= (const NodeGraphPartIterator &it) const noexcept |
| checks whether two iterators point toward different nodes | |
| NodeGraphPartIterator & | operator++ () noexcept |
| increment the iterator | |
| value_type | operator* () const |
| dereferencing operator | |
Protected Member Functions | |
| void | setPos_ (NodeId id) noexcept |
| this function is used by NodeGraphPart to update | |
| void | validate_ () noexcept |
| ensure that the nodeId is either end() either a valid NodeId | |
Protected Attributes | |
| const NodeGraphPart * | nodes_ |
| the nodegraphpart on which points the iterator | |
| NodeId | pos_ {0} |
| the nodeid on which the iterator points currently | |
| bool | valid_ {false} |
Friends | |
| class | NodeGraphPart |
Unsafe iterator on the node set of a graph.
Definition at line 75 of file nodeGraphPart.h.
| using gum::NodeGraphPartIterator::const_pointer = const value_type* |
types for STL compliance
Definition at line 86 of file nodeGraphPart.h.
| using gum::NodeGraphPartIterator::const_reference = const value_type& |
types for STL compliance
Definition at line 84 of file nodeGraphPart.h.
| using gum::NodeGraphPartIterator::difference_type = std::ptrdiff_t |
types for STL compliance
Definition at line 87 of file nodeGraphPart.h.
| using gum::NodeGraphPartIterator::iterator_category = std::forward_iterator_tag |
types for STL compliance
Definition at line 81 of file nodeGraphPart.h.
types for STL compliance
Definition at line 85 of file nodeGraphPart.h.
types for STL compliance
Definition at line 83 of file nodeGraphPart.h.
types for STL compliance
Definition at line 82 of file nodeGraphPart.h.
|
noexcept |
Default constructor.
default constructor
Definition at line 75 of file nodeGraphPart_inl.h.
References NodeGraphPartIterator(), NodeGraphPart, and nodes_.
Referenced by NodeGraphPartIterator(), NodeGraphPartIterator(), NodeGraphPartIterator(), gum::NodeGraphPartIteratorSafe::NodeGraphPartIteratorSafe(), gum::NodeGraphPartIteratorSafe::NodeGraphPartIteratorSafe(), gum::NodeGraphPartIteratorSafe::NodeGraphPartIteratorSafe(), ~NodeGraphPartIterator(), operator!=(), operator++(), operator=(), operator=(), and operator==().
|
noexcept |
copy constructor
Definition at line 81 of file nodeGraphPart_inl.h.
References NodeGraphPartIterator(), nodes_, pos_, and valid_.
|
noexcept |
move constructor
Definition at line 87 of file nodeGraphPart_inl.h.
References NodeGraphPartIterator(), nodes_, pos_, and valid_.
|
virtualnoexcept |
destructor
Definition at line 93 of file nodeGraphPart_inl.h.
References NodeGraphPartIterator().
|
noexcept |
checks whether two iterators point toward different nodes
Definition at line 127 of file nodeGraphPart_inl.h.
References NodeGraphPartIterator(), and gum::operator==().
| INLINE NodeId gum::NodeGraphPartIterator::operator* | ( | ) | const |
|
noexcept |
increment the iterator
Definition at line 132 of file nodeGraphPart_inl.h.
References NodeGraphPartIterator(), pos_, and validate_().
|
noexcept |
copy assignment operator
Definition at line 99 of file nodeGraphPart_inl.h.
References NodeGraphPartIterator(), nodes_, pos_, and valid_.
Referenced by gum::NodeGraphPartIteratorSafe::operator=(), and gum::NodeGraphPartIteratorSafe::operator=().
|
noexcept |
move assignment operator
Definition at line 110 of file nodeGraphPart_inl.h.
References NodeGraphPartIterator(), nodes_, pos_, and valid_.
|
noexcept |
checks whether two iterators point toward the same node
Definition at line 121 of file nodeGraphPart_inl.h.
References NodeGraphPartIterator(), nodes_, pos_, and valid_.
|
protectednoexcept |
this function is used by NodeGraphPart to update
Definition at line 146 of file nodeGraphPart_inl.h.
|
protectednoexcept |
ensure that the nodeId is either end() either a valid NodeId
Definition at line 58 of file nodeGraphPart_inl.h.
References nodes_, pos_, and valid_.
Referenced by gum::NodeGraphPart::begin(), gum::NodeGraphPart::beginSafe(), and operator++().
|
friend |
Definition at line 76 of file nodeGraphPart.h.
References NodeGraphPart.
Referenced by NodeGraphPartIterator(), and NodeGraphPart.
|
protected |
the nodegraphpart on which points the iterator
Definition at line 144 of file nodeGraphPart.h.
Referenced by NodeGraphPartIterator(), NodeGraphPartIterator(), NodeGraphPartIterator(), gum::NodeGraphPartIteratorSafe::NodeGraphPartIteratorSafe(), gum::NodeGraphPartIteratorSafe::NodeGraphPartIteratorSafe(), operator=(), operator=(), operator==(), setPos_(), validate_(), and gum::NodeGraphPartIteratorSafe::whenNodeDeleted().
|
protected |
the nodeid on which the iterator points currently
Definition at line 147 of file nodeGraphPart.h.
Referenced by NodeGraphPartIterator(), NodeGraphPartIterator(), operator*(), operator++(), operator=(), operator=(), operator==(), setPos_(), validate_(), and gum::NodeGraphPartIteratorSafe::whenNodeDeleted().
|
protected |
Definition at line 150 of file nodeGraphPart.h.
Referenced by NodeGraphPartIterator(), NodeGraphPartIterator(), operator*(), operator=(), operator=(), operator==(), setPos_(), validate_(), and gum::NodeGraphPartIteratorSafe::whenNodeDeleted().