MobilityDB  1.0
Data Structures | Macros | Functions
tnpoint.h File Reference

Functions for temporal network points. More...

#include <postgres.h>
#include <catalog/pg_type.h>
#include "general/temporal.h"
Include dependency graph for tnpoint.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  npoint
 
struct  nsegment
 

Macros

#define DatumGetNpoint(X)   ((npoint *) DatumGetPointer(X))
 
#define NpointGetDatum(X)   PointerGetDatum(X)
 
#define PG_GETARG_NPOINT(X)   DatumGetNpoint(PG_GETARG_DATUM(X))
 
#define PG_RETURN_NPOINT(X)   PG_RETURN_POINTER(X)
 
#define DatumGetNsegment(X)   ((nsegment *) DatumGetPointer(X))
 
#define NsegmentGetDatum(X)   PointerGetDatum(X)
 
#define PG_GETARG_NSEGMENT(X)   DatumGetNsegment(PG_GETARG_DATUM(X))
 

Functions

Datum tnpoint_in (PG_FUNCTION_ARGS)
 Input function for temporal network points. More...
 
Datum tnpoint_make_tnpointseq (PG_FUNCTION_ARGS)
 
Datum tnpoint_as_tgeompoint (PG_FUNCTION_ARGS)
 Cast a temporal network point as a temporal geometric point. More...
 
Datum tgeompoint_as_tnpoint (PG_FUNCTION_ARGS)
 Cast a temporal geometric point as a temporal network point. More...
 
TInstanttnpointinst_as_tgeompointinst (const TInstant *inst)
 Cast a temporal network point as a temporal geometric point. More...
 
TInstantSettnpointinstset_as_tgeompointi (const TInstantSet *ti)
 Cast a temporal network point as a temporal geometric point. More...
 
TSequencetnpointseq_as_tgeompointseq (const TSequence *seq)
 Cast a temporal network point as a temporal geometric point. More...
 
TSequenceSettnpointseqset_as_tgeompointseqset (const TSequenceSet *ts)
 Cast a temporal network point as a temporal geometric point. More...
 
Temporaltnpoint_as_tgeompoint_internal (const Temporal *temp)
 Cast a temporal network point as a temporal geometric point (dispatch function) More...
 
Temporaltgeompoint_as_tnpoint_internal (Temporal *temp)
 Cast a temporal geometric point as a temporal network point (dispatch function) More...
 
TInstanttgeompointinst_as_tnpointinst (const TInstant *inst)
 Cast a temporal geometric point as a temporal network point. More...
 
TInstantSettgeompointinstset_as_tnpointinstset (const TInstantSet *ti)
 Cast a temporal geometric point as a temporal network point. More...
 
TSequencetgeompointseq_as_tnpointseq (const TSequence *seq)
 Cast a temporal geometric point as a temporal network point. More...
 
TSequenceSettgeompointseqset_as_tnpointseqset (const TSequenceSet *ts)
 Cast a temporal geometric point as a temporal network point. More...
 
Datum tnpoint_positions (PG_FUNCTION_ARGS)
 Return the network segments covered by the temporal network point. More...
 
Datum tnpoint_route (PG_FUNCTION_ARGS)
 Return the route of a temporal network point. More...
 
Datum tnpoint_routes (PG_FUNCTION_ARGS)
 Return the array of routes of a temporal network point. More...
 
int64 tnpointinst_route (const TInstant *inst)
 Return the route of the temporal network point. More...
 
int64 tnpointiseq_route (const TSequence *seq)
 Return the route of the temporal network point. More...
 
nsegment ** tnpointinst_positions (const TInstant *inst)
 Return the network segments covered by the temporal network point. More...
 
nsegment ** tnpointinstset_positions (const TInstantSet *ti, int *count)
 Return the network segments covered by the temporal network point. 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 *ts, int *count)
 Return the network segments covered by the temporal network point. More...
 
nsegment ** tnpoint_positions_internal (const Temporal *temp, int *count)
 Return the network segments covered by the temporal network point (dispatch function) More...
 
ArrayType * tnpointinst_routes (const TInstant *inst)
 Return the array of routes of a temporal network point. More...
 
ArrayType * tnpointinstset_routes (const TInstantSet *ti)
 Return the array of routes of a temporal network point. More...
 
ArrayType * tnpointseq_routes (const TSequence *seq)
 Return the array of routes of a temporal network point. More...
 
ArrayType * tnpointseqset_routes (const TSequenceSet *ts)
 Return the array of routes of a temporal network point. More...
 

Detailed Description

Functions for temporal network points.