MobilityDB 1.1
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-2023, 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-2023, 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 "general/meos_catalog.h"
41#include "general/temporal.h"
42#include "general/span.h"
43#include "general/tbox.h"
44#include "point/stbox.h"
45
46/*****************************************************************************/
47
48extern Datum boxop_timestamp_temporal_ext(FunctionCallInfo fcinfo,
49 bool (*func)(const Span *, const Span *));
50extern Datum boxop_temporal_timestamp_ext(FunctionCallInfo fcinfo,
51 bool (*func)(const Span *, const Span *));
52extern Datum boxop_timestampset_temporal_ext(FunctionCallInfo fcinfo,
53 bool (*func)(const Span *, const Span *));
54extern Datum boxop_temporal_timestampset_ext(FunctionCallInfo fcinfo,
55 bool (*func)(const Span *, const Span *));
56extern Datum boxop_period_temporal_ext(FunctionCallInfo fcinfo,
57 bool (*func)(const Span *, const Span *));
58extern Datum boxop_temporal_period_ext(FunctionCallInfo fcinfo,
59 bool (*func)(const Span *, const Span *));
60extern Datum boxop_periodset_temporal_ext(FunctionCallInfo fcinfo,
61 bool (*func)(const Span *, const Span *));
62extern Datum boxop_temporal_periodset_ext(FunctionCallInfo fcinfo,
63 bool (*func)(const Span *, const Span *));
64extern Datum boxop_temporal_temporal_ext(FunctionCallInfo fcinfo,
65 bool (*func)(const Span *, const Span *));
66
67extern Datum boxop_number_tnumber_ext(FunctionCallInfo fcinfo,
68 bool (*func)(const TBox *, const TBox *));
69extern Datum boxop_tnumber_number_ext(FunctionCallInfo fcinfo,
70 bool (*func)(const TBox *, const TBox *));
71extern Datum boxop_numspan_tnumber_ext(FunctionCallInfo fcinfo,
72 bool (*func)(const Span *, const Span *));
73extern Datum boxop_tnumber_numspan_ext(FunctionCallInfo fcinfo,
74 bool (*func)(const Span *, const Span *));
75extern Datum boxop_numspanset_tnumber_ext(FunctionCallInfo fcinfo,
76 bool (*func)(const Span *, const Span *));
77extern Datum boxop_tnumber_numspanset_ext(FunctionCallInfo fcinfo,
78 bool (*func)(const TBox *, const TBox *));
79extern Datum boxop_tbox_tnumber_ext(FunctionCallInfo fcinfo,
80 bool (*func)(const TBox *, const TBox *));
81extern Datum boxop_tnumber_tbox_ext(FunctionCallInfo fcinfo,
82 bool (*func)(const TBox *, const TBox *));
83extern Datum boxop_tnumber_tnumber_ext(FunctionCallInfo fcinfo,
84 bool (*func)(const TBox *, const TBox *));
85
86/*****************************************************************************/
87
88#endif /* __PG_TEMPORAL_BOXOPS_H__ */
Datum boxop_numspanset_tnumber_ext(FunctionCallInfo fcinfo, bool(*func)(const Span *, const Span *))
Datum boxop_temporal_period_ext(FunctionCallInfo fcinfo, bool(*func)(const Span *, const Span *))
Generic bounding box operator for a temporal value and a period.
Definition: temporal_boxops.c:103
Datum boxop_temporal_timestamp_ext(FunctionCallInfo fcinfo, bool(*func)(const Span *, const Span *))
Datum boxop_period_temporal_ext(FunctionCallInfo fcinfo, bool(*func)(const Span *, const Span *))
Generic bounding box operator for a period and a temporal value.
Definition: temporal_boxops.c:85
Datum boxop_temporal_temporal_ext(FunctionCallInfo fcinfo, bool(*func)(const Span *, const Span *))
Generic bounding box operator for two temporal values.
Definition: temporal_boxops.c:121
Datum boxop_temporal_periodset_ext(FunctionCallInfo fcinfo, bool(*func)(const Span *, const Span *))
Datum boxop_numspan_tnumber_ext(FunctionCallInfo fcinfo, bool(*func)(const Span *, const Span *))
Generic bounding box operator for a span and a temporal number.
Definition: temporal_boxops.c:362
Datum boxop_number_tnumber_ext(FunctionCallInfo fcinfo, bool(*func)(const TBox *, const TBox *))
Datum boxop_tnumber_tbox_ext(FunctionCallInfo fcinfo, bool(*func)(const TBox *, const TBox *))
Generic bounding box operator for a temporal number and a temporal box.
Definition: temporal_boxops.c:416
Datum boxop_tnumber_number_ext(FunctionCallInfo fcinfo, bool(*func)(const TBox *, const TBox *))
Datum boxop_periodset_temporal_ext(FunctionCallInfo fcinfo, bool(*func)(const Span *, const Span *))
Datum boxop_timestamp_temporal_ext(FunctionCallInfo fcinfo, bool(*func)(const Span *, const Span *))
Bounding box operators for temporal types.
Datum boxop_tnumber_numspanset_ext(FunctionCallInfo fcinfo, bool(*func)(const TBox *, const TBox *))
Datum boxop_tbox_tnumber_ext(FunctionCallInfo fcinfo, bool(*func)(const TBox *, const TBox *))
Generic bounding box operator for a temporal box and a temporal number.
Definition: temporal_boxops.c:398
Datum boxop_tnumber_tnumber_ext(FunctionCallInfo fcinfo, bool(*func)(const TBox *, const TBox *))
Generic bounding box operator for two temporal numbers.
Definition: temporal_boxops.c:434
Datum boxop_timestampset_temporal_ext(FunctionCallInfo fcinfo, bool(*func)(const Span *, const Span *))
Datum boxop_tnumber_numspan_ext(FunctionCallInfo fcinfo, bool(*func)(const Span *, const Span *))
Generic bounding box operator for a temporal number and a span.
Definition: temporal_boxops.c:380
Datum boxop_temporal_timestampset_ext(FunctionCallInfo fcinfo, bool(*func)(const Span *, const Span *))
uintptr_t Datum
Definition: pg_ext_defs.in.h:4
Structure to represent spans (a.k.a.
Definition: meos.h:70
Structure to represent temporal boxes.
Definition: meos.h:97