MobilityDB 1.3
Loading...
Searching...
No Matches
temporal_boxops.h
Go to the documentation of this file.
1/*****************************************************************************
2 *
3 * This MobilityDB code is provided under The PostgreSQL License.
4 * Copyright (c) 2016-2025, Université libre de Bruxelles and MobilityDB
5 * contributors
6 *
7 * MobilityDB includes portions of PostGIS version 3 source code released
8 * under the GNU General Public License (GPLv2 or later).
9 * Copyright (c) 2001-2025, PostGIS contributors
10 *
11 * Permission to use, copy, modify, and distribute this software and its
12 * documentation for any purpose, without fee, and without a written
13 * agreement is hereby granted, provided that the above copyright notice and
14 * this paragraph and the following two paragraphs appear in all copies.
15 *
16 * IN NO EVENT SHALL UNIVERSITE LIBRE DE BRUXELLES BE LIABLE TO ANY PARTY FOR
17 * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, INCLUDING
18 * LOST PROFITS, ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION,
19 * EVEN IF UNIVERSITE LIBRE DE BRUXELLES HAS BEEN ADVISED OF THE POSSIBILITY
20 * OF SUCH DAMAGE.
21 *
22 * UNIVERSITE LIBRE DE BRUXELLES SPECIFICALLY DISCLAIMS ANY WARRANTIES,
23 * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
24 * AND FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS ON
25 * AN "AS IS" BASIS, AND UNIVERSITE LIBRE DE BRUXELLES HAS NO OBLIGATIONS TO
26 * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
27 *
28 *****************************************************************************/
29
34#ifndef __PG_TEMPORAL_BOXOPS_H__
35#define __PG_TEMPORAL_BOXOPS_H__
36
37/* PostgreSQL */
38#include <postgres.h>
39/* MEOS */
40#include <meos.h>
41
42/*****************************************************************************/
43
44extern Datum Boxop_timestamp_temporal(FunctionCallInfo fcinfo,
45 bool (*func)(const Span *, const Span *));
46extern Datum Boxop_temporal_timestamptz(FunctionCallInfo fcinfo,
47 bool (*func)(const Span *, const Span *));
48extern Datum Boxop_tstzset_temporal(FunctionCallInfo fcinfo,
49 bool (*func)(const Span *, const Span *));
50extern Datum Boxop_temporal_tstzset(FunctionCallInfo fcinfo,
51 bool (*func)(const Span *, const Span *));
52extern Datum Boxop_tstzspan_temporal(FunctionCallInfo fcinfo,
53 bool (*func)(const Span *, const Span *));
54extern Datum Boxop_temporal_tstzspan(FunctionCallInfo fcinfo,
55 bool (*func)(const Span *, const Span *));
56extern Datum Boxop_tstzspanset_temporal(FunctionCallInfo fcinfo,
57 bool (*func)(const Span *, const Span *));
58extern Datum Boxop_temporal_tstzspanset(FunctionCallInfo fcinfo,
59 bool (*func)(const Span *, const Span *));
60extern Datum Boxop_temporal_temporal(FunctionCallInfo fcinfo,
61 bool (*func)(const Span *, const Span *));
62
63extern Datum Boxop_number_tnumber(FunctionCallInfo fcinfo,
64 bool (*func)(const TBox *, const TBox *));
65extern Datum Boxop_tnumber_number(FunctionCallInfo fcinfo,
66 bool (*func)(const TBox *, const TBox *));
67extern Datum Boxop_numspan_tnumber(FunctionCallInfo fcinfo,
68 bool (*func)(const Span *, const Span *));
69extern Datum Boxop_tnumber_numspan(FunctionCallInfo fcinfo,
70 bool (*func)(const Span *, const Span *));
71extern Datum Boxop_numspanset_tnumber(FunctionCallInfo fcinfo,
72 bool (*func)(const Span *, const Span *));
73extern Datum Boxop_tnumber_numspanset(FunctionCallInfo fcinfo,
74 bool (*func)(const TBox *, const TBox *));
75extern Datum Boxop_tbox_tnumber(FunctionCallInfo fcinfo,
76 bool (*func)(const TBox *, const TBox *));
77extern Datum Boxop_tnumber_tbox(FunctionCallInfo fcinfo,
78 bool (*func)(const TBox *, const TBox *));
79extern Datum Boxop_tnumber_tnumber(FunctionCallInfo fcinfo,
80 bool (*func)(const TBox *, const TBox *));
81
82/*****************************************************************************/
83
84#endif /* __PG_TEMPORAL_BOXOPS_H__ */
External API of the Mobility Engine Open Source (MEOS) library.
Datum Boxop_tnumber_tbox(FunctionCallInfo fcinfo, bool(*func)(const TBox *, const TBox *))
Generic bounding box function for a temporal number and a temporal box.
Definition: temporal_boxops.c:546
Datum Boxop_temporal_tstzspan(FunctionCallInfo fcinfo, bool(*func)(const Span *, const Span *))
Generic bounding box function for a temporal value and a timestamptz span.
Definition: temporal_boxops.c:223
Datum Boxop_numspanset_tnumber(FunctionCallInfo fcinfo, bool(*func)(const Span *, const Span *))
Datum Boxop_temporal_tstzset(FunctionCallInfo fcinfo, bool(*func)(const Span *, const Span *))
Datum Boxop_numspan_tnumber(FunctionCallInfo fcinfo, bool(*func)(const Span *, const Span *))
Generic bounding box function for a span and a temporal number.
Definition: temporal_boxops.c:494
Datum Boxop_number_tnumber(FunctionCallInfo fcinfo, bool(*func)(const TBox *, const TBox *))
Datum Boxop_tnumber_numspan(FunctionCallInfo fcinfo, bool(*func)(const Span *, const Span *))
Generic bounding box function for a temporal number and a span.
Definition: temporal_boxops.c:510
Datum Boxop_tnumber_numspanset(FunctionCallInfo fcinfo, bool(*func)(const TBox *, const TBox *))
Datum Boxop_tnumber_tnumber(FunctionCallInfo fcinfo, bool(*func)(const TBox *, const TBox *))
Generic bounding box function for two temporal numbers.
Definition: temporal_boxops.c:562
Datum Boxop_tstzset_temporal(FunctionCallInfo fcinfo, bool(*func)(const Span *, const Span *))
Datum Boxop_tstzspan_temporal(FunctionCallInfo fcinfo, bool(*func)(const Span *, const Span *))
Generic bounding box function for a timestamptz span and a temporal value.
Definition: temporal_boxops.c:206
Datum Boxop_timestamp_temporal(FunctionCallInfo fcinfo, bool(*func)(const Span *, const Span *))
Bounding box operators for temporal types.
Datum Boxop_temporal_timestamptz(FunctionCallInfo fcinfo, bool(*func)(const Span *, const Span *))
Datum Boxop_temporal_temporal(FunctionCallInfo fcinfo, bool(*func)(const Span *, const Span *))
Generic bounding box function for two temporal values.
Definition: temporal_boxops.c:239
Datum Boxop_tnumber_number(FunctionCallInfo fcinfo, bool(*func)(const TBox *, const TBox *))
Datum Boxop_tbox_tnumber(FunctionCallInfo fcinfo, bool(*func)(const TBox *, const TBox *))
Generic bounding box function for a temporal box and a temporal number.
Definition: temporal_boxops.c:527
Datum Boxop_temporal_tstzspanset(FunctionCallInfo fcinfo, bool(*func)(const Span *, const Span *))
Datum Boxop_tstzspanset_temporal(FunctionCallInfo fcinfo, bool(*func)(const Span *, const Span *))
uintptr_t Datum
Definition: postgres_ext_defs.in.h:7
Structure to represent spans (a.k.a.
Definition: meos.h:94
Structure to represent temporal boxes.
Definition: meos.h:124