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

Temporal * tgeompoint_tnpoint (const Temporal *temp)
 Cast a temporal geometric point as a temporal network point. More...
 
TSequence * tgeompointdiscseq_tnpointdiscseq (const TSequence *is)
 
TInstant * tgeompointinst_tnpointinst (const TInstant *inst)
 Cast a temporal geometric point as a temporal network point. More...
 
TSequence * tgeompointseq_tnpointseq (const TSequence *seq)
 Cast a temporal geometric point as a temporal network point. More...
 
TSequenceSet * tgeompointseqset_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...
 
Set * tnpoint_routes (const Temporal *temp)
 Return the array of routes of a temporal network point. More...
 
Temporal * tnpoint_tgeompoint (const Temporal *temp)
 Cast a temporal network point as a temporal geometric point. More...
 
Set * tnpointcontseq_routes (const TSequence *seq)
 Return the routes of a temporal network point. More...
 
TSequence * tnpointcontseq_tgeompointcontseq (const TSequence *seq)
 Cast a temporal network point as a temporal geometric point. More...
 
Set * tnpointdiscseq_routes (const TSequence *is)
 Return the routes of a temporal network point. More...
 
TSequence * tnpointdiscseq_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...
 
Set * tnpointinst_routes (const TInstant *inst)
 Return the routes of a temporal network point. More...
 
TInstant * tnpointinst_tgeompointinst (const TInstant *inst)
 Basic functions for temporal network points. More...
 
Nsegment * tnpointseq_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...
 
Set * tnpointseqset_routes (const TSequenceSet *ss)
 Return the routes of a temporal network point. More...
 
TSequenceSet * tnpointseqset_tgeompointseqset (const TSequenceSet *ss)
 Cast a temporal network point as a temporal geometric point. More...