Zivid C++ API 2.9.0+4dbba385-1
Defining the Future of 3D Machine Vision
|
Class describing a range of values for a given type T
More...
#include <Zivid/Range.h>
Public Types | |
using | Type = T |
Underlying type More... | |
Public Member Functions | |
constexpr | Range ()=default |
Default constructor More... | |
constexpr | Range (T min, T max) |
Constructor More... | |
constexpr const T & | min () const |
Get the minimum value of the range More... | |
constexpr const T & | max () const |
Get the maximum value of the range More... | |
constexpr bool | isInRange (const T &value) const |
Check if the value is in range More... | |
bool | operator== (const Range< T > &other) const |
Comparison operator More... | |
bool | operator!= (const Range< T > &other) const |
Comparison operator More... | |
std::string | toString () const |
Get the range as string More... | |
Class describing a range of values for a given type T
The range is inclusive, in other words both the minimum and maximum values are included in the range.
using Zivid::Range< T >::Type = T |
Underlying type
|
constexprdefault |
Default constructor
|
inlineconstexpr |
Constructor
|
inlineconstexpr |
Check if the value is in range
The range is inclusive, in other words both the minimum and maximum values are included in the range.
|
inlineconstexpr |
Get the maximum value of the range
|
inlineconstexpr |
Get the minimum value of the range
|
inline |
Comparison operator
|
inline |
Comparison operator
|
inline |
Get the range as string