VuoRange C type definition.
Classes | |
struct | VuoRange |
Defines a range with an optionally bound/unbound min/max. More... | |
Macros | |
#define | VuoRange_NoMinimum -INFINITY |
VuoRange.minimum's value when the range has no minimum. More... | |
#define | VuoRange_NoMaximum INFINITY |
VuoRange.maximum's value when the range has no maximum. More... | |
Functions | |
VuoRange | VuoRange_makeFromJson (struct json_object *js) |
Decodes the JSON object js to create a new value. More... | |
struct json_object * | VuoRange_getJson (const VuoRange value) |
Encodes value as a JSON object. More... | |
char * | VuoRange_getSummary (const VuoRange value) |
Returns a compact string representation of value . More... | |
static VuoRange | VuoRange_make (VuoReal _minimum, VuoReal _maximum) __attribute__((const)) |
Creates a range. More... | |
static bool | VuoRange_isInverted (VuoRange range) __attribute__((const)) |
Returns true if the range is inverted (min greater than max). More... | |
static VuoRange | VuoRange_getOrderedRange (VuoRange range) __attribute__((const)) |
Returns a range where the min is never greater than the max. More... | |
static VuoRange | VuoRange_makeNonzero (VuoRange a) __attribute__((const)) |
If the range is empty (minimum == maximum), increases the maximum. More... | |
VuoRange | VuoRange_makeFromString (const char *str) |
Automatically generated function. More... | |
char * | VuoRange_getString (const VuoRange value) |
Automatically generated function. More... | |
void | VuoRange_retain (VuoRange value) |
Automatically generated function. More... | |
void | VuoRange_release (VuoRange value) |
Automatically generated function. More... | |
#define VuoRange_NoMaximum INFINITY |
VuoRange.maximum's value when the range has no maximum.
#define VuoRange_NoMinimum -INFINITY |
VuoRange.minimum's value when the range has no minimum.
struct json_object* VuoRange_getJson | ( | const VuoRange | value | ) |
Encodes value
as a JSON object.
Returns a range where the min is never greater than the max.
char* VuoRange_getString | ( | const VuoRange | value | ) |
Automatically generated function.
char* VuoRange_getSummary | ( | const VuoRange | value | ) |
Returns a compact string representation of value
.
|
inlinestatic |
Returns true if the range is inverted (min greater than max).
Creates a range.
VuoRange VuoRange_makeFromJson | ( | json_object * | js | ) |
Decodes the JSON object js
to create a new value.
VuoRange VuoRange_makeFromString | ( | const char * | str | ) |
Automatically generated function.
If the range is empty (minimum == maximum), increases the maximum.
void VuoRange_release | ( | VuoRange | value | ) |
Automatically generated function.
void VuoRange_retain | ( | VuoRange | value | ) |
Automatically generated function.