46#define DatumGetTboxP(X) ((TBox *) DatumGetPointer(X))
47#define TboxPGetDatum(X) PointerGetDatum(X)
48#define PG_GETARG_TBOX_P(n) DatumGetTboxP(PG_GETARG_DATUM(n))
49#define PG_RETURN_TBOX_P(x) return TboxPGetDatum(x)
Span * tbox_floatspan(const TBox *box)
Convert a temporal box into a float span.
Definition: tbox.c:704
Span * tbox_intspan(const TBox *box)
Convert a temporal box into an integer span.
Definition: tbox.c:670
TBox * span_tbox(const Span *s)
Convert a number span into a temporal box.
Definition: tbox.c:595
Span * tbox_tstzspan(const TBox *box)
Convert a temporal box into a timestamptz span.
Definition: tbox.c:738
TBox * set_tbox(const Set *s)
Convert a number or a timestamptz set into a temporal box.
Definition: tbox.c:526
External API of the Mobility Engine Open Source (MEOS) library.
Structure to represent sets of values.
Definition: meos.h:80
Structure to represent spans (a.k.a.
Definition: meos.h:94
Structure to represent temporal boxes.
Definition: meos.h:124
bool ensure_same_dimensionality_tbox(const TBox *box1, const TBox *box2)
Ensure that a temporal boxes have the same dimensionality.
Definition: tbox.c:67