Template Class Graph::Attribute

Nested Relationships

This class is a nested type of Class Graph.

Nested Types

Class Documentation

template<typename NodeOrEdge, typename T>
class Attribute

Public Functions

inline explicit Attribute(std::shared_ptr<AttributeStorage<NodeOrEdge, ASB, T>> ownedStorage = nullptr)
inline Attribute(Attribute const &other)
inline Attribute &operator=(Attribute other)
inline void swap(Attribute &other)
inline Attribute(Attribute &&other) noexcept
inline auto begin() const
inline auto end() const
inline auto size() const noexcept
inline void set(index i, T v)
inline void set2(node u, node v, T t)
inline auto get(index i) const
inline auto get2(node u, node v) const
inline auto get(index i, T defaultT) const
inline auto get2(node u, node v, T defaultT) const
inline IndexProxy operator[](index i) const
inline IndexProxy operator()(node u, node v) const
inline void checkAttribute() const
inline auto getName() const
inline void write(std::string const &filename) const
inline void read(const std::string &filename)
class Iterator

Public Types

using value_type = T
using reference = value_type&
using pointer = value_type*
using iterator_category = std::forward_iterator_tag
using difference_type = ptrdiff_t

Public Functions

inline Iterator()
inline Iterator(AttributeStorage<NodeOrEdge, ASB, T> *storage)
inline Iterator &nextValid()
inline Iterator &operator++()
inline auto operator*() const
inline bool operator==(Iterator const &iter) const noexcept
inline bool operator!=(Iterator const &iter) const noexcept