Interval
#include <poplar/Interval.hpp>
-
namespace poplar
Poplar classes and functions.
Typedefs
-
typedef GenericInterval<std::size_t> Interval
Functions
-
template<class T>
inline bool operator==(const GenericInterval<T> &a, const GenericInterval<T> &b)
-
template<class T>
inline bool operator<(const GenericInterval<T> &a, const GenericInterval<T> &b)
-
template<class T>
inline bool operator!=(const GenericInterval<T> &a, const GenericInterval<T> &b)
-
template<class T>
inline bool operator>=(const GenericInterval<T> &a, const GenericInterval<T> &b)
-
template<class T>
inline bool operator>(const GenericInterval<T> &a, const GenericInterval<T> &b)
-
template<class T>
inline bool operator<=(const GenericInterval<T> &a, const GenericInterval<T> &b)
-
template<class T>
inline std::ostream &operator<<(std::ostream &os, const GenericInterval<T> &b)
-
template<class T>
struct GenericInterval - #include <Interval.hpp>
This class represents an interval that is closed at its lower bound and open at its upper bound.
It is almost always used with T = std::size_t, for which there is a convenient Interval typedef.
Public Functions
-
GenericInterval() = default
Initialise with begin and end set to their default value of 0.
-
inline const T &lower() const
Get the lower bound of the half open interval.
- Returns
the lower bound of the interval.
-
GenericInterval() = default
-
typedef GenericInterval<std::size_t> Interval