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

◆ SET_VAL_N

#define SET_VAL_N (   s,
  index 
)
Value:
( (Datum) ( \
MEOS_FLAGS_GET_BYVAL((s)->flags) ? (SET_OFFSETS_PTR(s))[index] : \
PointerGetDatum( ((char *) (s)) + DOUBLE_PAD(sizeof(Set)) + \
DOUBLE_PAD((s)->bboxsize) + (sizeof(size_t) * (s)->maxcount) + \
(SET_OFFSETS_PTR(s))[index] ) ) )
#define DOUBLE_PAD(size)
Align to double.
Definition: meos.h:74
#define SET_OFFSETS_PTR(s)
Return a pointer to the offsets array of a set.
Definition: meos_internal.h:609
#define MEOS_FLAGS_GET_BYVAL(flags)
Definition: meos_internal.h:551
#define PointerGetDatum(X)
Definition: postgres.h:622
uintptr_t Datum
Definition: postgres_ext_defs.in.h:7
Structure to represent sets of values.
Definition: meos.h:80

Return the n-th value of a set.

Precondition
The argument index is less than the number of values in the set