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

#include <Intervals.h>

Public Member Functions

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

Public Attributes

std::int32_t minimum_value { std::numeric_limits<std::int32_t>::max() }
 The minimum value.
 
std::int32_t maximum_value { std::numeric_limits<std::int32_t>::min() }
 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::Int32Interval::IsValid ( ) const
inline

Query if this object is valid.

Returns
True if valid, false if not.

◆ operator!=()

bool imgdoc2::Int32Interval::operator!= ( const Int32Interval 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::Int32Interval::operator== ( const Int32Interval 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: