int32_t ccs_bool_t
A CCS boolean type.
Definition base.h:37
enum ccs_numeric_type_e ccs_numeric_type_t
A commodity type to represent CCS numeric types.
Definition base.h:384
enum ccs_result_e ccs_result_t
A commodity type to represent CCS errors and returned by most functions.
Definition base.h:247
ccs_result_t ccs_interval_empty(ccs_interval_t *interval, ccs_bool_t *empty_ret)
Check if an interval is empty.
ccs_result_t ccs_interval_intersect(ccs_interval_t *interval1, ccs_interval_t *interval2, ccs_interval_t *interval_res)
Compute the intersection of two intervals.
ccs_bool_t ccs_interval_include(ccs_interval_t *interval, ccs_numeric_t value)
Test the inclusion of a numeric value into an interval.
ccs_result_t ccs_interval_union(ccs_interval_t *interval1, ccs_interval_t *interval2, ccs_interval_t *interval_res)
Compute the union of two intervals.
ccs_result_t ccs_interval_equal(ccs_interval_t *interval1, ccs_interval_t *interval2, ccs_bool_t *equal_res)
Test the equality of two intervals.
A structure defining an interval over numeric values.
Definition interval.h:16
ccs_numeric_t lower
The lower bound of the interval.
Definition interval.h:20
ccs_bool_t lower_included
Is the lower bound included in the interval.
Definition interval.h:24
ccs_bool_t upper_included
Is the upper bound included in the interval.
Definition interval.h:26
ccs_numeric_type_t type
The type of numeric value.
Definition interval.h:18
ccs_numeric_t upper
The upper bound of the interval.
Definition interval.h:22
A union that can contain either a ccs_int_t or a ccs_float_t.
Definition base.h:394