Veethree D7 SDK
Loading...
Searching...
No Matches
vsdk::io::range_value Struct Reference

Detailed Description

A range value start-end pair.

#include <io_event_common.h>

Public Member Functions

 range_value (double s, double e)
 Constructor that takes the 'start' and 'end' values for a range.
 range_value ()
 Default constructor.
bool is_in_range (const double value) const
 Return a boolean indicating if a value is in range.
bool is_out_of_range (const double value) const
 Return a boolean indicating if a value is out of range.

Public Attributes

double start {}
 Start of range.
double end {}
 End of range.

Detailed Description

A range value start-end pair.

Constructor & Destructor Documentation

◆ range_value()

vsdk::io::range_value::range_value ( double s,
double e )
inline

Constructor that takes the 'start' and 'end' values for a range.

Parameters
sStart of range.
eEnd of range.

Member Function Documentation

◆ is_in_range()

bool vsdk::io::range_value::is_in_range ( const double value) const
inline

Return a boolean indicating if a value is in range.

Parameters
valueThe value to be verified.
Returns
true if in range, else false.

◆ is_out_of_range()

bool vsdk::io::range_value::is_out_of_range ( const double value) const
inline

Return a boolean indicating if a value is out of range.

Parameters
valueThe value to be verified.
Returns
true if out of range, else false.

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