|
Bluenet
5.7.0
Bluenet, firmware for nRF52 smart home devices
|
Represents an interval by two unsigned integers [base, base + diff]. More...
#include <cs_Math.h>
Public Member Functions | |
| Interval (T base, S diff, bool inv=false) | |
| T | lowerbound () |
| T | upperbound () |
| bool | contains (T val) |
| bool | ClosureContains (T val) |
| bool | InteriorContains (T val) |
Private Attributes | |
| T | low |
| T | high |
| bool | invert |
Represents an interval by two unsigned integers [base, base + diff].
(base + diff doesn't have to be representable in the current type, the interval represented will wrap around to 0)
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
private |
|
private |
|
private |