MobilityDB  1.0
Functions
tnpoint.c File Reference

Basic functions for temporal network points. More...

#include "npoint/tnpoint.h"
#include <assert.h>
#include "general/temporaltypes.h"
#include "general/temporal_parser.h"
#include "general/tempcache.h"
#include "general/temporal_util.h"
#include "general/lifting.h"
#include "point/tpoint_spatialfuncs.h"
#include "npoint/tnpoint_static.h"
#include "npoint/tnpoint_parser.h"
Include dependency graph for tnpoint.c:

Functions

PGDLLEXPORT Datum tnpoint_in (PG_FUNCTION_ARGS)
 Input function for temporal network points. 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...
 
PGDLLEXPORT Datum tnpoint_as_tgeompoint (PG_FUNCTION_ARGS)
 Cast a temporal network point as a temporal geometric point. 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...
 
Temporaltgeompoint_as_tnpoint_internal (Temporal *temp)
 Cast a temporal geometric point as a temporal network point (dispatch function) More...
 
PGDLLEXPORT Datum tgeompoint_as_tnpoint (PG_FUNCTION_ARGS)
 Cast a temporal geometric point as a temporal network point. More...
 
PGDLLEXPORT Datum tnpoint_set_precision (PG_FUNCTION_ARGS)
 Set the precision of the fraction of the temporal network point to the number of decimal places. 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...
 
nsegment ** tnpointseq_step_positions (const TSequence *seq, 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_linear_positions (const TSequenceSet *ts, int *count)
 Return the network segments covered by the temporal network point. More...
 
nsegment ** tnpointseqset_step_positions (const TSequenceSet *ts, 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...
 
PGDLLEXPORT Datum tnpoint_positions (PG_FUNCTION_ARGS)
 Return the network segments covered by the temporal network point. More...
 
PGDLLEXPORT Datum tnpoint_route (PG_FUNCTION_ARGS)
 Return the route of a temporal network point. 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...
 
PGDLLEXPORT Datum tnpoint_routes (PG_FUNCTION_ARGS)
 Return the array of routes of a temporal network point. More...
 

Detailed Description

Basic functions for temporal network points.