MobilityDB 1.3
Loading...
Searching...
No Matches
tnpoint_routeops.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
35#ifndef __TNPOINT_ROUTEOPS_H__
36#define __TNPOINT_ROUTEOPS_H__
37
38/* PostgreSQL */
39#include <postgres.h>
40#if ! MEOS
41 #include <lib/stringinfo.h>
42#endif /* ! MEOS */
43/* MEOS */
44#include "npoint/tnpoint.h"
45
46/*****************************************************************************/
47
48extern bool contains_rid_tnpoint_bigint(const Temporal *temp, int64 rid,
49 bool invert UNUSED);
50extern bool contained_rid_tnpoint_bigint(const Temporal *temp, int64 rid,
51 bool invert);
52extern bool same_rid_tnpoint_bigint(const Temporal *temp, int64 rid,
53 bool invert UNUSED);
54extern bool overlaps_rid_tnpoint_bigintset(const Temporal *temp, const Set *s,
55 bool invert UNUSED);
56extern bool contains_rid_tnpoint_bigintset(const Temporal *temp, const Set *s,
57 bool invert);
58extern bool contained_rid_tnpoint_bigintset(const Temporal *temp, const Set *s,
59 bool invert);
60extern bool same_rid_tnpoint_bigintset(const Temporal *temp, const Set *s,
61 bool invert UNUSED);
62extern bool contains_rid_tnpoint_npoint(const Temporal *temp, const Npoint *np,
63 bool invert UNUSED);
64extern bool contained_rid_npoint_tnpoint(const Temporal *temp, const Npoint *np,
65 bool invert);
66extern bool same_rid_tnpoint_npoint(const Temporal *temp, const Npoint *np,
67 bool invert UNUSED);
68extern bool overlaps_rid_tnpoint_tnpoint(const Temporal *temp1,
69 const Temporal *temp2);
70extern bool contains_rid_tnpoint_tnpoint(const Temporal *temp1,
71 const Temporal *temp2);
72extern bool contained_rid_tnpoint_tnpoint(const Temporal *temp1,
73 const Temporal *temp2);
74extern bool same_rid_tnpoint_tnpoint(const Temporal *temp1,
75 const Temporal *temp2);
76
77/*****************************************************************************/
78
79#endif /* __TNPOINT_ROUTEOPS_H__ */
#define UNUSED
Definition: temporal.h:75
long int int64
Definition: postgres_ext_defs.in.h:12
API of the Mobility Engine Open Source (MEOS) library.
Definition: meos_npoint.h:52
Structure to represent sets of values.
Definition: meos.h:80
Structure to represent the common structure of temporal values of any temporal subtype.
Definition: meos.h:173
bool contains_rid_tnpoint_tnpoint(const Temporal *temp1, const Temporal *temp2)
Return true if two temporal network points satisfy the function.
Definition: tnpoint_routeops.c:229
bool contains_rid_tnpoint_npoint(const Temporal *temp, const Npoint *np, bool invert UNUSED)
Return true if a temporal network point and a network point satisfy the function.
Definition: tnpoint_routeops.c:169
bool same_rid_tnpoint_bigint(const Temporal *temp, int64 rid, bool invert UNUSED)
Return true if a temporal network point and a route satisfy the function.
Definition: tnpoint_routeops.c:88
bool contained_rid_tnpoint_bigintset(const Temporal *temp, const Set *s, bool invert)
Return true if a temporal network point and a big integer set satisfy the function.
Definition: tnpoint_routeops.c:140
bool same_rid_tnpoint_tnpoint(const Temporal *temp1, const Temporal *temp2)
Return true if two temporal network points satisfy the function.
Definition: tnpoint_routeops.c:259
bool overlaps_rid_tnpoint_bigintset(const Temporal *temp, const Set *s, bool invert UNUSED)
Return true if a temporal network point and a big integer set satisfy the function.
Definition: tnpoint_routeops.c:107
bool overlaps_rid_tnpoint_tnpoint(const Temporal *temp1, const Temporal *temp2)
Return true if two temporal network points satisfy the function.
Definition: tnpoint_routeops.c:214
bool same_rid_tnpoint_npoint(const Temporal *temp, const Npoint *np, bool invert UNUSED)
Return true if a temporal network point and a network point satisfy the function.
Definition: tnpoint_routeops.c:196
bool contained_rid_npoint_tnpoint(const Temporal *temp, const Npoint *np, bool invert)
Return true if a temporal network point and a network point satisfy the function.
Definition: tnpoint_routeops.c:185
bool contains_rid_tnpoint_bigint(const Temporal *temp, int64 rid, bool invert UNUSED)
Return true if a temporal network point and a route satisfy the function.
Definition: tnpoint_routeops.c:61
bool contained_rid_tnpoint_tnpoint(const Temporal *temp1, const Temporal *temp2)
Return true if two temporal network points satisfy the function.
Definition: tnpoint_routeops.c:244
bool contains_rid_tnpoint_bigintset(const Temporal *temp, const Set *s, bool invert)
Return true if a temporal network point and a big integer set satisfy the function.
Definition: tnpoint_routeops.c:123
bool same_rid_tnpoint_bigintset(const Temporal *temp, const Set *s, bool invert UNUSED)
Return true if a temporal network point and a big integer set satisfy the function.
Definition: tnpoint_routeops.c:151
bool contained_rid_tnpoint_bigint(const Temporal *temp, int64 rid, bool invert)
Return true if a temporal network point and a route satisfy the function.
Definition: tnpoint_routeops.c:77