MobilityDB 1.3
Loading...
Searching...
No Matches

◆ TSEQUENCE_INST_N

#define TSEQUENCE_INST_N (   seq,
  index 
)
Value:
( (const TInstant *)( \
((char *) &((seq)->period)) + (seq)->bboxsize + \
(sizeof(size_t) * (seq)->maxcount) + (TSEQUENCE_OFFSETS_PTR(seq))[index] ) )
#define TSEQUENCE_OFFSETS_PTR(seq)
Return a pointer to the offsets array of a temporal sequence.
Definition: meos_internal.h:645
Structure to represent temporal values of instant subtype.
Definition: meos.h:185

Return the n-th instant of a temporal sequence.

Note
The period component of the bbox is already declared in the struct
Precondition
The argument index is less than the number of instants in the sequence