libimgdoc2
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
imgdoc2::DoubleInterval Struct Reference

#include <Intervals.h>

Public Member Functions

bool IsValid () const
 Query if this object is valid. More...
 
bool operator== (const DoubleInterval &rhs) const
 Equality operator. More...
 
bool operator!= (const DoubleInterval &rhs) const
 Inequality operator. More...
 

Public Attributes

double minimum_value { std::numeric_limits<double>::max() }
 The minimum value.
 
double maximum_value { std::numeric_limits<double>::lowest() }
 The maximum value.
 

Detailed Description

This structure gathers a minimum and maximum value. If minimum is greater than maximum, this means that the bounds is invalid.

Member Function Documentation

◆ IsValid()

bool imgdoc2::DoubleInterval::IsValid ( ) const
inline

Query if this object is valid.

Returns
True if valid, false if not.

◆ operator!=()

bool imgdoc2::DoubleInterval::operator!= ( const DoubleInterval rhs) const
inline

Inequality operator.

In case the both are 'not valid', then they are considered equal (irrespective of the actual values).

Parameters
rhsThe right hand side.
Returns
True if the parameters are not considered equivalent.

◆ operator==()

bool imgdoc2::DoubleInterval::operator== ( const DoubleInterval rhs) const
inline

Equality operator.

In case the both are 'not valid', then they are considered equal (irrespective of the actual values).

Parameters
rhsThe right hand side.
Returns
True if the parameters are considered equivalent.

The documentation for this struct was generated from the following file: