Template Class NeighborWeightIteratorBase

Class Documentation

template<typename containerType, typename weightContainerType>
class NeighborWeightIteratorBase

Class to iterate over the in/out neighbors of a containerType, including the weights given by weightContainerType.

Public Types

using value_type = std::pair<typename containerType::value_type, typename weightContainerType::value_type>
using reference = value_type&
using pointer = value_type*
using iterator_category = std::forward_iterator_tag
using difference_type = ptrdiff_t
using self = NeighborWeightIteratorBase

Public Functions

inline NeighborWeightIteratorBase(typename containerType::const_iterator elementIter, typename weightContainerType::const_iterator weightIter)
inline NeighborWeightIteratorBase()

WARNING: This contructor is required for Python and should not be used as the iterator is not initialized.

inline NeighborWeightIteratorBase &operator++()
inline NeighborWeightIteratorBase operator++(int)
inline NeighborWeightIteratorBase operator--()
inline NeighborWeightIteratorBase operator--(int)
inline bool operator==(const NeighborWeightIteratorBase &rhs) const
inline bool operator!=(const NeighborWeightIteratorBase &rhs) const
inline std::pair<typename containerType::value_type, typename weightContainerType::value_type> operator*() const