OTB
9.0.0
Orfeo Toolbox
|
#include <otbInterval.h>
Public Types | |
using | IndexType = itk::IndexValueType |
using | SizeType = itk::SizeValueType |
Public Member Functions | |
constexpr | Interval (IndexType l, IndexType u) noexcept |
IndexType | m_lower |
IndexType | m_upper |
constexpr SizeType | size () const noexcept |
constexpr bool | empty () const noexcept |
constexpr IndexType | lower () const noexcept |
constexpr IndexType | upper () const noexcept |
static constexpr Interval | OfLength (IndexType low, SizeType len) noexcept |
constexpr friend Interval | intersect (Interval const &lhs, Interval const &rhs) noexcept |
std::ostream & | operator<< (std::ostream &os, Interval const &v) |
Simplified index interval. Inspired by boost::numeric::interval
.
Definition at line 40 of file otbInterval.h.
using otb::Interval::IndexType = itk::IndexValueType |
Definition at line 43 of file otbInterval.h.
using otb::Interval::SizeType = itk::SizeValueType |
Definition at line 44 of file otbInterval.h.
Init constructor from the pair of its extremities.
Definition at line 47 of file otbInterval.h.
|
inlineconstexprnoexcept |
Alternate factory function from a position and a length.
Definition at line 64 of file otbInterval.h.
|
inlineconstexprnoexcept |
Alternate factory function from a position and a length.
Definition at line 67 of file otbInterval.h.
References m_lower.
|
inlinestaticconstexprnoexcept |
Alternate factory function from a position and a length.
Definition at line 56 of file otbInterval.h.
References otb::details::len().
|
inlineconstexprnoexcept |
Alternate factory function from a position and a length.
Definition at line 61 of file otbInterval.h.
|
inlineconstexprnoexcept |
Alternate factory function from a position and a length.
Definition at line 70 of file otbInterval.h.
References m_upper.
Computes the intersection between two intervals.
Definition at line 79 of file otbInterval.h.
|
friend |
Stream inserter for intervals.
Definition at line 99 of file otbInterval.h.
|
private |
Alternate factory function from a position and a length.
Definition at line 105 of file otbInterval.h.
|
private |
Alternate factory function from a position and a length.
Definition at line 106 of file otbInterval.h.