![]() |
aGrUM 3.1.1
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 | |
| 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 69 of file nodeGraphPart.h.
| using gum::NodeGraphPartIterator::const_pointer = const value_type* |
types for STL compliance
Definition at line 80 of file nodeGraphPart.h.
| using gum::NodeGraphPartIterator::const_reference = const value_type& |
types for STL compliance
Definition at line 78 of file nodeGraphPart.h.
| using gum::NodeGraphPartIterator::difference_type = std::ptrdiff_t |
types for STL compliance
Definition at line 81 of file nodeGraphPart.h.
| using gum::NodeGraphPartIterator::iterator_category = std::forward_iterator_tag |
types for STL compliance
Definition at line 75 of file nodeGraphPart.h.
types for STL compliance
Definition at line 79 of file nodeGraphPart.h.
types for STL compliance
Definition at line 77 of file nodeGraphPart.h.
types for STL compliance
Definition at line 76 of file nodeGraphPart.h.
|
explicitnoexcept |
Default constructor.
default constructor
Definition at line 76 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=(), and operator==().
|
noexcept |
copy constructor
Definition at line 82 of file nodeGraphPart_inl.h.
References NodeGraphPartIterator(), nodes_, pos_, and valid_.
|
noexcept |
move constructor
Definition at line 88 of file nodeGraphPart_inl.h.
References NodeGraphPartIterator(), nodes_, pos_, and valid_.
|
virtualnoexcept |
destructor
Definition at line 94 of file nodeGraphPart_inl.h.
References NodeGraphPartIterator().
| INLINE NodeId gum::NodeGraphPartIterator::operator* | ( | ) | const |
|
noexcept |
increment the iterator
Definition at line 127 of file nodeGraphPart_inl.h.
References NodeGraphPartIterator(), pos_, and validate_().
|
noexcept |
copy assignment operator
Definition at line 100 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 111 of file nodeGraphPart_inl.h.
References NodeGraphPartIterator(), nodes_, pos_, and valid_.
|
noexcept |
checks whether two iterators point toward the same node
Definition at line 122 of file nodeGraphPart_inl.h.
References NodeGraphPartIterator(), nodes_, pos_, and valid_.
|
protectednoexcept |
this function is used by NodeGraphPart to update
Definition at line 141 of file nodeGraphPart_inl.h.
|
protectednoexcept |
ensure that the nodeId is either end() either a valid NodeId
Definition at line 59 of file nodeGraphPart_inl.h.
References nodes_, pos_, and valid_.
Referenced by gum::NodeGraphPart::begin(), gum::NodeGraphPart::beginSafe(), and operator++().
|
friend |
Definition at line 70 of file nodeGraphPart.h.
References NodeGraphPart.
Referenced by NodeGraphPartIterator(), and NodeGraphPart.
|
protected |
the nodegraphpart on which points the iterator
Definition at line 136 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 139 of file nodeGraphPart.h.
Referenced by NodeGraphPartIterator(), NodeGraphPartIterator(), operator*(), operator++(), operator=(), operator=(), operator==(), setPos_(), validate_(), and gum::NodeGraphPartIteratorSafe::whenNodeDeleted().
|
protected |
Definition at line 142 of file nodeGraphPart.h.
Referenced by NodeGraphPartIterator(), NodeGraphPartIterator(), operator*(), operator=(), operator=(), operator==(), setPos_(), validate_(), and gum::NodeGraphPartIteratorSafe::whenNodeDeleted().