MobilityDB  1.0

◆ tnumberseq_restrict_ranges()

TSequenceSet* tnumberseq_restrict_ranges ( const TSequence seq,
RangeType **  normranges,
int  count,
bool  atfunc,
bool  bboxtest 
)

Restricts the temporal number to (the complement of) the array of ranges of base values.

Parameters
[in]seqTemporal number
[in]normrangesArray of ranges of base values
[in]countNumber of elements in the input array
[in]atfuncTrue when the restriction is at, false for minus
[in]bboxtestTrue when the bounding box test should be performed
Returns
Resulting temporal number
Precondition
The array of ranges is normalized
Note
A bounding box test and an instantaneous sequence test are done in the function tnumberseq_restrict_ranges1 since the latter is called for each composing sequence of a temporal sequence set number.