MobilityDB  1.0

◆ tinstantset_make()

TInstantSet* tinstantset_make ( const TInstant **  instants,
int  count,
bool  merge 
)

Construct a temporal instant set value from the array of temporal instant values.

For example, the memory structure of a temporal instant set value with 2 instants is as follows

------------------------------------------------------
( TInstantSet | offset_0 | offset_1 | offset_2 )_X | ...
------------------------------------------------------
----------------------------------------------------------
( TInstant_0 )_X | ( TInstant_1 )_X | ( bbox )_X |
----------------------------------------------------------

where the _X are unused bytes added for double padding, offset_0 and offset_1 are offsets for the corresponding instants, and offset_2 is the offset for the bounding box.

Parameters
[in]instantsArray of instants
[in]countNumber of elements in the array
[in]mergeTrue when overlapping instants are allowed as required in merge operations