MobilityDB 1.1
Data Structures | Macros | Functions
tnpoint.h File Reference
#include <postgres.h>
#include "meos.h"
#include "general/temporal.h"
Include dependency graph for tnpoint.h:

Go to the source code of this file.

Data Structures

struct  Npoint
 Functions for temporal network points. More...
 
struct  Nsegment
 

Macros

#define DatumGetNpointP(X)   ((Npoint *) DatumGetPointer(X))
 
#define DatumGetNsegmentP(X)   ((Nsegment *) DatumGetPointer(X))
 
#define GEOM_TO_NPOINT   false
 
#define NPOINT_TO_GEOM   true
 Symbolic constants for transforming tnpoint <-> tgeompoint. More...
 
#define NpointPGetDatum(X)   PointerGetDatum(X)
 
#define NsegmentPGetDatum(X)   PointerGetDatum(X)
 
#define PG_GETARG_NPOINT_P(X)   DatumGetNpointP(PG_GETARG_DATUM(X))
 
#define PG_GETARG_NSEGMENT_P(X)   DatumGetNsegmentP(PG_GETARG_DATUM(X))
 
#define PG_RETURN_NPOINT_P(X)   PG_RETURN_POINTER(X)
 

Functions

Temporaltgeompoint_tnpoint (const Temporal *temp)
 Cast a temporal geometric point as a temporal network point. More...
 
TSequencetgeompointdiscseq_tnpointdiscseq (const TSequence *is)
 
TInstanttgeompointinst_tnpointinst (const TInstant *inst)
 Cast a temporal geometric point as a temporal network point. More...
 
TSequencetgeompointseq_tnpointseq (const TSequence *seq)
 Cast a temporal geometric point as a temporal network point. More...
 
TSequenceSettgeompointseqset_tnpointseqset (const TSequenceSet *ss)
 Cast a temporal geometric point as a temporal network point. More...
 
Nsegment ** tnpoint_positions (const Temporal *temp, int *count)
 Return the network segments covered by the temporal network point. More...
 
int64 tnpoint_route (const Temporal *temp)
 Return the single route of a temporal network point. More...
 
Settnpoint_routes (const Temporal *temp)
 Return the array of routes of a temporal network point. More...
 
Temporaltnpoint_tgeompoint (const Temporal *temp)
 Cast a temporal network point as a temporal geometric point. More...
 
Settnpointcontseq_routes (const TSequence *seq)
 Return the routes of a temporal network point. More...
 
TSequencetnpointcontseq_tgeompointcontseq (const TSequence *seq)
 Cast a temporal network point as a temporal geometric point. More...
 
Settnpointdiscseq_routes (const TSequence *is)
 Return the routes of a temporal network point. More...
 
TSequencetnpointdiscseq_tgeompointdiscseq (const TSequence *is)
 Cast a temporal network point as a temporal geometric point. More...
 
Nsegment ** tnpointinst_positions (const TInstant *inst)
 Return the network segments covered by the temporal network point. More...
 
int64 tnpointinst_route (const TInstant *inst)
 Return the route of the temporal network point. More...
 
Settnpointinst_routes (const TInstant *inst)
 Return the routes of a temporal network point. More...
 
TInstanttnpointinst_tgeompointinst (const TInstant *inst)
 Basic functions for temporal network points. More...
 
Nsegmenttnpointseq_linear_positions (const TSequence *seq)
 Return the network segments covered by the temporal network point. More...
 
Nsegment ** tnpointseq_positions (const TSequence *seq, int *count)
 Return the network segments covered by the temporal network point. More...
 
Nsegment ** tnpointseqset_positions (const TSequenceSet *ss, int *count)
 Return the network segments covered by the temporal network point. More...
 
Settnpointseqset_routes (const TSequenceSet *ss)
 Return the routes of a temporal network point. More...
 
TSequenceSettnpointseqset_tgeompointseqset (const TSequenceSet *ss)
 Cast a temporal network point as a temporal geometric point. More...