Templated iterator facade based on PrivateGraph to provide iterative access to atom indices and edge indices. More...
#include <Graph.h>
Public Types | |
| using | iterator_category = std::forward_iterator_tag |
| using | difference_type = std::ptrdiff_t |
| using | value_type = T |
| using | pointer = T |
| using | reference = T |
Public Member Functions | |
| InnerBasedIterator (InnerBasedIterator &&other) noexcept | |
| InnerBasedIterator & | operator= (InnerBasedIterator &&other) noexcept |
| InnerBasedIterator (const InnerBasedIterator &other) | |
| InnerBasedIterator & | operator= (const InnerBasedIterator &other) |
| template<bool Dependent = isVertexInitialized, std::enable_if_t<!Dependent, int > ...> | |
| InnerBasedIterator (const PrivateGraph &inner, bool begin) | |
| Construct an iterator from a graph and a boolean indicating begin/end. More... | |
| template<bool Dependent = isVertexInitialized, std::enable_if_t< Dependent, int > ...> | |
| InnerBasedIterator (AtomIndex a, const PrivateGraph &inner, bool begin) | |
| Construct an iterator from an atom index, a graph and a boolean indicating begin/end. More... | |
| InnerBasedIterator & | operator++ () |
| Prefix increment. | |
| InnerBasedIterator | operator++ (int) |
| Postfix increment. | |
| value_type | operator* () const |
| Dereference. | |
| bool | operator== (const InnerBasedIterator &other) const |
| Comparison operator. | |
| bool | operator!= (const InnerBasedIterator &other) const |
| Inverts. More... | |
Private Attributes | |
| std::unique_ptr< Impl > | pImpl_ |
Templated iterator facade based on PrivateGraph to provide iterative access to atom indices and edge indices.
| T | The type the iterator should yield |
| isVertexInitialized | Whether this iterator accepts an atom index in its constructor. |
| Scine::Molassembler::Graph::InnerBasedIterator< T, isVertexInitialized >::InnerBasedIterator | ( | const PrivateGraph & | inner, |
| bool | begin | ||
| ) |
Construct an iterator from a graph and a boolean indicating begin/end.
| inner | The PrivateGraph (wrapper around BGL Types) |
| begin | Whether this iterator denotes a begin or end iterator |
| Scine::Molassembler::Graph::InnerBasedIterator< T, isVertexInitialized >::InnerBasedIterator | ( | AtomIndex | a, |
| const PrivateGraph & | inner, | ||
| bool | begin | ||
| ) |
Construct an iterator from an atom index, a graph and a boolean indicating begin/end.
| a | An atom index around which adjacent vertices or incident edges are to be iterated over (depending on T) |
| inner | The PrivateGraph (wrapper around BGL Types) |
| begin | Whether this iterator denotes a begin or end iterator |
| bool Scine::Molassembler::Graph::InnerBasedIterator< T, isVertexInitialized >::operator!= | ( | const InnerBasedIterator< T, isVertexInitialized > & | other | ) | const |
Inverts.