OSSIA
Open Scenario System for Interactive Application
Domain

Parameter min / max. More...

Detailed Description

Parameter min / max.

See also
ossia::net::domain

Functions

OSSIA_EXPORT ossia_domain_t ossia_domain_create (void)
 ossia_domain_create Create a domain More...
 
OSSIA_EXPORT ossia_domain_t ossia_domain_make_min_max (ossia_value_t min, ossia_value_t max)
 Create a domain from two values. More...
 
OSSIA_EXPORT ossia_value_t ossia_domain_get_min (ossia_domain_t domain)
 Get the min of a domain. More...
 
OSSIA_EXPORT void ossia_domain_set_min (ossia_domain_t domain, ossia_value_t value)
 Set the min of a domain. More...
 
OSSIA_EXPORT ossia_value_t ossia_domain_get_max (ossia_domain_t domain)
 Get the max of a domain. More...
 
OSSIA_EXPORT void ossia_domain_set_max (ossia_domain_t domain, ossia_value_t value)
 Set the max of a domain. More...
 
OSSIA_EXPORT ossia_domain_t ossia_domain_make_string_set (const char **strings, size_t n)
 Create a domain from a set of strings. More...
 
OSSIA_EXPORT ossia_domain_t ossia_domain_make_int_set (const int *values, size_t n)
 Create a domain from a set of ints. More...
 
OSSIA_EXPORT ossia_domain_t ossia_domain_make_float_set (const float *values, size_t n)
 Create a domain from a set of floats. More...
 
OSSIA_EXPORT ossia_domain_t ossia_domain_make_value_set (const ossia_value_t *values, size_t n)
 Create a domain from a set of values. More...
 
OSSIA_EXPORT void ossia_domain_get_values (ossia_domain_t domain, ossia_value_t **values, size_t *n)
 Get the values of a domain. More...
 
OSSIA_EXPORT void ossia_domain_set_values (ossia_domain_t domain, const ossia_value_t *values, size_t n)
 Set the values of a domain. More...
 
OSSIA_EXPORT void ossia_domain_free (ossia_domain_t domain)
 Free a domain. More...
 

Function Documentation

◆ ossia_domain_create()

OSSIA_EXPORT ossia_domain_t ossia_domain_create ( void  )

ossia_domain_create Create a domain

Note
It has no min/max nor values set on it
See also
ossia::net::domain::domain
Returns
A new domain

◆ ossia_domain_make_min_max()

OSSIA_EXPORT ossia_domain_t ossia_domain_make_min_max ( ossia_value_t  min,
ossia_value_t  max 
)

Create a domain from two values.

Note
Multithread guarantees: Data-Safe.
The values will be copied inside the domain.
See also
ossia::make_domain

◆ ossia_domain_get_min()

OSSIA_EXPORT ossia_value_t ossia_domain_get_min ( ossia_domain_t  domain)

Get the min of a domain.

Note
Multithread guarantees: Data-Safe.
See also
ossia::get_min

◆ ossia_domain_set_min()

OSSIA_EXPORT void ossia_domain_set_min ( ossia_domain_t  domain,
ossia_value_t  value 
)

Set the min of a domain.

Note
Multithread guarantees: MT-Safe.
See also
ossia::set_min

◆ ossia_domain_get_max()

OSSIA_EXPORT ossia_value_t ossia_domain_get_max ( ossia_domain_t  domain)

Get the max of a domain.

Note
Multithread guarantees: Data-Safe.
See also
ossia::get_max

◆ ossia_domain_set_max()

OSSIA_EXPORT void ossia_domain_set_max ( ossia_domain_t  domain,
ossia_value_t  value 
)

Set the max of a domain.

Note
Multithread guarantees: MT-Safe.
See also
ossia::set_max

◆ ossia_domain_make_string_set()

OSSIA_EXPORT ossia_domain_t ossia_domain_make_string_set ( const char **  strings,
size_t  n 
)

Create a domain from a set of strings.

Note
Multithread guarantees: Data-Safe.
The values will be copied inside the domain.
See also
ossia::make_domain

◆ ossia_domain_make_int_set()

OSSIA_EXPORT ossia_domain_t ossia_domain_make_int_set ( const int *  values,
size_t  n 
)

Create a domain from a set of ints.

Note
Multithread guarantees: Data-Safe.
See also
ossia::make_domain

◆ ossia_domain_make_float_set()

OSSIA_EXPORT ossia_domain_t ossia_domain_make_float_set ( const float *  values,
size_t  n 
)

Create a domain from a set of floats.

Note
Multithread guarantees: Data-Safe.
See also
ossia::make_domain

◆ ossia_domain_make_value_set()

OSSIA_EXPORT ossia_domain_t ossia_domain_make_value_set ( const ossia_value_t *  values,
size_t  n 
)

Create a domain from a set of values.

Note
Multithread guarantees: Data-Safe.
See also
ossia::make_domain

◆ ossia_domain_get_values()

OSSIA_EXPORT void ossia_domain_get_values ( ossia_domain_t  domain,
ossia_value_t **  values,
size_t *  n 
)

Get the values of a domain.

Note
Multithread guarantees: Data-Safe.

◆ ossia_domain_set_values()

OSSIA_EXPORT void ossia_domain_set_values ( ossia_domain_t  domain,
const ossia_value_t *  values,
size_t  n 
)

Set the values of a domain.

Note
Multithread guarantees: MT-Safe.

◆ ossia_domain_free()

OSSIA_EXPORT void ossia_domain_free ( ossia_domain_t  domain)

Free a domain.

Note
Multithread guarantees: MT-Safe.