MobilityDB  1.0

◆ tsequence_restrict_value1()

static int tsequence_restrict_value1 ( TSequence **  result,
const TInstant inst1,
const TInstant inst2,
bool  linear,
bool  lower_inc,
bool  upper_inc,
Datum  value,
bool  atfunc 
)
static

Restricts the segment of a temporal value to (the complement of) the base value.

Parameters
[out]resultArray on which the pointers of the newly constructed sequence is stored
[in]inst1,inst2Temporal values defining the segment
[in]linearTrue when the segment has linear interpolation
[in]lower_inc,upper_incUpper and lower bounds of the segment
[in]valueBase value
[in]atfuncTrue when the restriction is at, false for minus
Returns
Number of resulting sequences returned