Struct EdgeMap::Iterator

Nested Relationships

This struct is a nested type of Class HostEnvironmentDirectedGraph::EdgeMap.

Struct Documentation

struct Iterator

Iterator for EdgeMap

Unlike a traditional C++ map iterator, this does not dereference to a key-value pair, as it returns all allocated edges including those which have not had their key (source/destination vertex) set, such IDs evaluate as ID_NOT_SET

Public Types

using iterator_category = std::forward_iterator_tag
using difference_type = unsigned int
using value_type = Edge
using pointer = Edge*
using reference = Edge&

Public Functions

inline Iterator(std::shared_ptr<detail::CUDAEnvironmentDirectedGraphBuffers> _directed_graph, const cudaStream_t _stream, difference_type _index)
inline reference operator*() const
inline pointer operator->() const
inline Iterator &operator++()
inline Iterator operator++(int)
inline bool operator==(const Iterator &other) const
inline bool operator!=(const Iterator &other) const
inline Iterator begin()
inline Iterator end()