MobilityDB  1.0
temporal_compops.h
Go to the documentation of this file.
1 /*****************************************************************************
2  *
3  * This MobilityDB code is provided under The PostgreSQL License.
4  *
5  * Copyright (c) 2016-2021, Université libre de Bruxelles and MobilityDB
6  * contributors
7  *
8  * MobilityDB includes portions of PostGIS version 3 source code released
9  * under the GNU General Public License (GPLv2 or later).
10  * Copyright (c) 2001-2021, PostGIS contributors
11  *
12  * Permission to use, copy, modify, and distribute this software and its
13  * documentation for any purpose, without fee, and without a written
14  * agreement is hereby granted, provided that the above copyright notice and
15  * this paragraph and the following two paragraphs appear in all copies.
16  *
17  * IN NO EVENT SHALL UNIVERSITE LIBRE DE BRUXELLES BE LIABLE TO ANY PARTY FOR
18  * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, INCLUDING
19  * LOST PROFITS, ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION,
20  * EVEN IF UNIVERSITE LIBRE DE BRUXELLES HAS BEEN ADVISED OF THE POSSIBILITY
21  * OF SUCH DAMAGE.
22  *
23  * UNIVERSITE LIBRE DE BRUXELLES SPECIFICALLY DISCLAIMS ANY WARRANTIES,
24  * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
25  * AND FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS ON
26  * AN "AS IS" BASIS, AND UNIVERSITE LIBRE DE BRUXELLES HAS NO OBLIGATIONS TO
27  * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. 
28  *
29  *****************************************************************************/
30 
36 #ifndef __TEMPORAL_COMPOPS_H__
37 #define __TEMPORAL_COMPOPS_H__
38 
39 #include <postgres.h>
40 #include <fmgr.h>
41 #include <catalog/pg_type.h>
42 
43 #include "temporal.h"
44 
45 /*****************************************************************************/
46 
47 extern Datum teq_base_temporal(PG_FUNCTION_ARGS);
48 extern Datum teq_temporal_base(PG_FUNCTION_ARGS);
49 extern Datum teq_temporal_temporal(PG_FUNCTION_ARGS);
50 
51 extern Datum tne_base_temporal(PG_FUNCTION_ARGS);
52 extern Datum tne_temporal_base(PG_FUNCTION_ARGS);
53 extern Datum tne_temporal_temporal(PG_FUNCTION_ARGS);
54 
55 extern Datum tlt_base_temporal(PG_FUNCTION_ARGS);
56 extern Datum tlt_temporal_base(PG_FUNCTION_ARGS);
57 extern Datum tlt_temporal_temporal(PG_FUNCTION_ARGS);
58 
59 extern Datum tle_base_temporal(PG_FUNCTION_ARGS);
60 extern Datum tle_temporal_base(PG_FUNCTION_ARGS);
61 extern Datum tle_temporal_temporal(PG_FUNCTION_ARGS);
62 
63 extern Datum tgt_base_temporal(PG_FUNCTION_ARGS);
64 extern Datum tgt_temporal_base(PG_FUNCTION_ARGS);
65 extern Datum tgt_temporal_temporal(PG_FUNCTION_ARGS);
66 
67 extern Datum tge_base_temporal(PG_FUNCTION_ARGS);
68 extern Datum tge_temporal_base(PG_FUNCTION_ARGS);
69 extern Datum tge_temporal_temporal(PG_FUNCTION_ARGS);
70 
71 extern Temporal * tcomp_temporal_base1(const Temporal *temp, Datum value,
72  Oid datumtypid, Datum (*func)(Datum, Datum, Oid, Oid), bool invert);
73 
74 /*****************************************************************************/
75 
76 #endif
Datum tgt_base_temporal(PG_FUNCTION_ARGS)
Definition: temporal_compops.c:248
Datum tne_base_temporal(PG_FUNCTION_ARGS)
Definition: temporal_compops.c:164
Datum tgt_temporal_temporal(PG_FUNCTION_ARGS)
Definition: temporal_compops.c:264
Structure to represent the common structure of temporal values of any temporal subtype.
Definition: temporal.h:241
Datum tgt_temporal_base(PG_FUNCTION_ARGS)
Definition: temporal_compops.c:256
Datum tle_base_temporal(PG_FUNCTION_ARGS)
Definition: temporal_compops.c:220
Datum tne_temporal_base(PG_FUNCTION_ARGS)
Definition: temporal_compops.c:172
Datum teq_temporal_base(PG_FUNCTION_ARGS)
Definition: temporal_compops.c:144
Basic functions for temporal types of any subtype.
Datum tge_temporal_temporal(PG_FUNCTION_ARGS)
Definition: temporal_compops.c:292
Datum teq_base_temporal(PG_FUNCTION_ARGS)
Definition: temporal_compops.c:136
Temporal * tcomp_temporal_base1(const Temporal *temp, Datum value, Oid datumtypid, Datum(*func)(Datum, Datum, Oid, Oid), bool invert)
Definition: temporal_compops.c:50
Datum tge_temporal_base(PG_FUNCTION_ARGS)
Definition: temporal_compops.c:284
Datum tne_temporal_temporal(PG_FUNCTION_ARGS)
Definition: temporal_compops.c:180
Datum tle_temporal_base(PG_FUNCTION_ARGS)
Definition: temporal_compops.c:228
Datum tle_temporal_temporal(PG_FUNCTION_ARGS)
Definition: temporal_compops.c:236
Datum tlt_base_temporal(PG_FUNCTION_ARGS)
Definition: temporal_compops.c:192
Datum tlt_temporal_base(PG_FUNCTION_ARGS)
Definition: temporal_compops.c:200
Datum tge_base_temporal(PG_FUNCTION_ARGS)
Definition: temporal_compops.c:276
Datum teq_temporal_temporal(PG_FUNCTION_ARGS)
Definition: temporal_compops.c:152
Datum tlt_temporal_temporal(PG_FUNCTION_ARGS)
Definition: temporal_compops.c:208