MobilityDB 1.1
tsequenceset.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 __TSEQUENCESET_H__
35#define __TSEQUENCESET_H__
36
37/* PostgreSQL */
38#include <postgres.h>
39/* MEOS */
40#include "general/temporal.h"
41#include "general/span.h"
42
43/*****************************************************************************/
44
45/* General functions */
46
48 int *loc);
49
50/* Synchronize functions */
51
53 const TSequence *seq, SyncMode mode,
54 TSequenceSet **inter1, TSequenceSet **inter2);
56 const TSequenceSet *ss2, SyncMode mode,
57 TSequenceSet **inter1, TSequenceSet **inter2);
58
59/* Intersection functions */
60
62 const TInstant *inst, TInstant **inter1, TInstant **inter2);
63extern bool intersection_tinstant_tsequenceset(const TInstant *inst,
64 const TSequenceSet *ss, TInstant **inter1, TInstant **inter2);
66 const TSequence *is, TSequence **inter1, TSequence **inter2);
68 const TSequenceSet *ss, TSequence **inter1, TSequence **inter2);
70 const TSequenceSet *ss, SyncMode mode,
71 TSequenceSet **inter1, TSequenceSet **inter2);
72
73/* Input/output functions */
74
75extern char *tsequenceset_to_string(const TSequenceSet *ss, int maxdd,
76 outfunc value_out);
77
78/*****************************************************************************/
79
80#endif
SyncMode
Enumeration for the intersection/synchronization functions.
Definition: temporal.h:146
char *(* outfunc)(Datum value, meosType type, int maxdd)
Definition: temporal.h:358
int64 TimestampTz
Definition: pg_ext_defs.in.h:19
Structure to represent temporal values of instant subtype.
Definition: meos.h:148
Structure to represent temporal values of sequence set subtype.
Definition: meos.h:186
Structure to represent temporal values of instant set or sequence subtype.
Definition: meos.h:165
bool intersection_tinstant_tsequenceset(const TInstant *inst, const TSequenceSet *ss, TInstant **inter1, TInstant **inter2)
Temporally intersect two temporal values.
Definition: tsequenceset.c:2492
bool intersection_tsequenceset_tinstant(const TSequenceSet *ss, const TInstant *inst, TInstant **inter1, TInstant **inter2)
Temporally intersect two temporal values.
Definition: tsequenceset.c:2471
bool tsequenceset_find_timestamp(const TSequenceSet *ss, TimestampTz t, int *loc)
Basic functions for temporal sequence sets.
Definition: tsequenceset.c:82
bool synchronize_tsequenceset_tsequence(const TSequenceSet *ss, const TSequence *seq, SyncMode mode, TSequenceSet **inter1, TSequenceSet **inter2)
Temporally intersect or synchronize a temporal sequence set and a temporal sequence.
Definition: tsequenceset.c:2358
bool intersection_tsequenceset_tdiscseq(const TSequenceSet *ss, const TSequence *is, TSequence **inter1, TSequence **inter2)
Temporally intersect two temporal values.
Definition: tsequenceset.c:2506
bool synchronize_tsequenceset_tsequenceset(const TSequenceSet *ss1, const TSequenceSet *ss2, SyncMode mode, TSequenceSet **inter1, TSequenceSet **inter2)
Temporally intersect or synchronize two temporal sequence sets.
Definition: tsequenceset.c:2410
bool intersection_tsequence_tsequenceset(const TSequence *seq, const TSequenceSet *ss, SyncMode mode, TSequenceSet **inter1, TSequenceSet **inter2)
Temporally intersect or synchronize two temporal values.
Definition: tsequenceset.c:2573
char * tsequenceset_to_string(const TSequenceSet *ss, int maxdd, outfunc value_out)
Return the Well-Known Text (WKT) representation of a temporal sequence set.
Definition: tsequenceset.c:2682
bool intersection_tdiscseq_tsequenceset(const TSequence *is, const TSequenceSet *ss, TSequence **inter1, TSequence **inter2)
Temporally intersect two temporal values.
Definition: tsequenceset.c:2558