Poplar and PopLibs
|
This class represents an interval that is closed at its lower bound and open at its upper bound. More...
#include <Interval.hpp>
Public Member Functions | |
GenericInterval ()=default | |
Initialise with begin and end set to their default value of 0. | |
const T & | lower () const |
Get the lower bound of the half open interval. More... | |
const T & | upper () const |
Get the upper bound of the half open interval. More... | |
T | size () const |
Get the size of the interval. More... | |
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.
|
inline |
Get the lower bound of the half open interval.
|
inline |
Get the size of the interval.
|
inline |
Get the upper bound of the half open interval.