|
Open Graph Drawing Framework |
v. 2023.09 (Elderberry)
|
|
|
Go to the documentation of this file.
38 #include <type_traits>
44 template<
class GraphObjectPtr,
bool isReverse,
bool isConst>
47 template<
class GraphObjectPtr>
49 template<
class GraphObjectPtr>
52 template<
class GraphObjectPtr,
bool isReverse,
bool isConst>
70 template<
bool isArgReverse>
90 GraphObjectPtr ptr =
m_ptr;
105 GraphObjectPtr ptr =
m_ptr;
111 template<
class ArrayType,
bool isConst>
114 template<
class ArrayType>
116 template<
class ArrayType>
119 template<
class ArrayType,
bool isConst>
127 using value_type =
typename std::conditional<isConst,
const typename ArrayType::value_type,
208 template<
typename It>
The namespace for all OGDF objects.
T & operator--()
Decrement operator (prefix).
std::bidirectional_iterator_tag iterator_category
GraphArrayIteratorBase< ArrayType, isConst > operator++(int)
Increment operator (postfix).
GraphArrayIteratorBase< ArrayType, isConst > & operator++()
Increment operator (prefix).
#define OGDF_ASSERT(expr)
Assert condition expr. See doc/build.md for more information.
key_type key() const
Index in m_array.
value_type & operator*() const
Value of m_array at index m_key.
GraphIteratorBase(GraphIteratorBase< GraphObjectPtr, isArgReverse, isConst > &it)
bool operator!=(const T &other) const
SimpleRange(const It &begin, const It &end)
GraphArrayIteratorBase(const GraphArrayIteratorBase< ArrayType, isConst > &iter)
Copy constructor.
typename std::conditional< isConst, const ArrayType *, ArrayType * >::type array_pointer_type
Type of the array.
GraphArrayIteratorBase< ArrayType, isConst > & operator=(const GraphArrayIteratorBase< ArrayType, isConst > &iter)
Copy assignment operator.
key_type m_key
Index in m_array.
GraphArrayIteratorBase< ArrayType, isConst > operator--(int)
Decrement operator (postfix).
array_pointer_type m_array
The array.
const T & move(const T &v)
GraphArrayIteratorBase(const GraphArrayIteratorBase< ArrayType, isArgConst > &iter)
Constructor.
typename std::conditional< isConst, const GraphObjectPtr, GraphObjectPtr >::type value_type
GraphArrayIteratorBase(key_type key, array_pointer_type a)
Constructor.
GraphArrayIteratorBase()
Constructor.
GraphArrayIteratorBase< ArrayType, isConst > & operator--()
Decrement operator (prefix).
SimpleRange(It &&begin, It &&end)
bool operator!=(const GraphArrayIteratorBase< ArrayType, isConst > &iter) const
Inequality operator.
value_type & value() const
Value of m_array at index m_key.
T operator++(int)
Increment operator (postfix).
const GraphObjectPtr & operator*() const
bool operator==(const GraphArrayIteratorBase< ArrayType, isConst > &iter) const
Equality operator.
Basic declarations, included by all source files.
typename std::conditional< isConst, const typename ArrayType::value_type, typename ArrayType::value_type >::type value_type
Value type of the associated array.
typename ArrayType::key_type key_type
Index type of the associated array.
std::ptrdiff_t difference_type
GraphIteratorBase(GraphObjectPtr ptr)
T operator--(int)
Decrement operator (postfix).
bool operator==(const T &other) const
T & operator++()
Increment operator (prefix).