Vuo  1.2.6
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Classes | Macros | Functions
VuoRange.h File Reference

Description

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.
 
#define VuoRange_NoMaximum   INFINITY
 VuoRange.maximum's value when the range has no maximum.
 

Functions

VuoRange VuoRange_makeFromJson (struct json_object *js)
 Decodes the JSON object js to create a new value.
 
struct json_objectVuoRange_getJson (const VuoRange value)
 Encodes value as a JSON object.
 
char * VuoRange_getSummary (const VuoRange value)
 Returns a compact string representation of value.
 
static VuoRange VuoRange_make (VuoReal _minimum, VuoReal _maximum) __attribute__((const ))
 Creates a range.
 
static bool VuoRange_isInverted (VuoRange range) __attribute__((const ))
 Returns true if the range is inverted (min greater than max).
 
static VuoRange VuoRange_getOrderedRange (VuoRange range) __attribute__((const ))
 Returns a range where the min is never greater than the max.
 
static VuoRange VuoRange_makeNonzero (VuoRange a) __attribute__((const ))
 If the range is empty (minimum == maximum), increases the maximum.
 
VuoRange VuoRange_makeFromString (const char *str)
 Automatically generated function.
 
char * VuoRange_getString (const VuoRange value)
 Automatically generated function.
 
void VuoRange_retain (VuoRange value)
 Automatically generated function.
 
void VuoRange_release (VuoRange value)
 Automatically generated function.
 

Class Documentation

struct VuoRange
Class Members
char blah[42]
Todo:
https://b33p.net/kosada/node/4124
VuoReal maximum
VuoReal minimum

Macro Definition Documentation

#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.

Function Documentation

struct json_object* VuoRange_getJson ( const VuoRange  value)
read

Encodes value as a JSON object.

static VuoRange VuoRange_getOrderedRange ( VuoRange  range) const
inlinestatic

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.

static bool VuoRange_isInverted ( VuoRange  range) const
inlinestatic

Returns true if the range is inverted (min greater than max).

static VuoRange VuoRange_make ( VuoReal  _minimum,
VuoReal  _maximum 
) const
inlinestatic

Creates a range.

VuoRange VuoRange_makeFromJson ( json_object js)

Decodes the JSON object js to create a new value.

Example:
{
"minimum" : 0.0,
"maximum" : 42.0
}
VuoRange VuoRange_makeFromString ( const char *  str)

Automatically generated function.

static VuoRange VuoRange_makeNonzero ( VuoRange  a) const
inlinestatic

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.