36 #include <catalog/pg_type.h> 65 #define DatumGetNpoint(X) ((npoint *) DatumGetPointer(X)) 66 #define NpointGetDatum(X) PointerGetDatum(X) 67 #define PG_GETARG_NPOINT(X) DatumGetNpoint(PG_GETARG_DATUM(X)) 68 #define PG_RETURN_NPOINT(X) PG_RETURN_POINTER(X) 71 #define DatumGetNsegment(X) ((nsegment *) DatumGetPointer(X)) 72 #define NsegmentGetDatum(X) PointerGetDatum(X) 73 #define PG_GETARG_NSEGMENT(X) DatumGetNsegment(PG_GETARG_DATUM(X)) nsegment ** tnpointseq_positions(const TSequence *seq, int *count)
Return the network segments covered by the temporal network point.
Definition: tnpoint.c:437
Datum tnpoint_in(PG_FUNCTION_ARGS)
Input function for temporal network points.
Definition: tnpoint.c:59
nsegment ** tnpointseqset_positions(const TSequenceSet *ts, int *count)
Return the network segments covered by the temporal network point.
Definition: tnpoint.c:493
nsegment ** tnpointinstset_positions(const TInstantSet *ti, int *count)
Return the network segments covered by the temporal network point.
Definition: tnpoint.c:379
nsegment ** tnpoint_positions_internal(const Temporal *temp, int *count)
Return the network segments covered by the temporal network point (dispatch function) ...
Definition: tnpoint.c:508
ArrayType * tnpointseqset_routes(const TSequenceSet *ts)
Return the array of routes of a temporal network point.
Definition: tnpoint.c:611
TSequence * tgeompointseq_as_tnpointseq(const TSequence *seq)
Cast a temporal geometric point as a temporal network point.
Definition: tnpoint.c:226
Datum tnpoint_positions(PG_FUNCTION_ARGS)
Return the network segments covered by the temporal network point.
Definition: tnpoint.c:531
Structure to represent the common structure of temporal values of any temporal subtype.
Definition: temporal.h:241
ArrayType * tnpointinstset_routes(const TInstantSet *ti)
Return the array of routes of a temporal network point.
Definition: tnpoint.c:581
TInstant * tgeompointinst_as_tnpointinst(const TInstant *inst)
Cast a temporal geometric point as a temporal network point.
Definition: tnpoint.c:188
Temporal * tgeompoint_as_tnpoint_internal(Temporal *temp)
Cast a temporal geometric point as a temporal network point (dispatch function)
Definition: tnpoint.c:277
TSequenceSet * tnpointseqset_as_tgeompointseqset(const TSequenceSet *ts)
Cast a temporal network point as a temporal geometric point.
Definition: tnpoint.c:137
ArrayType * tnpointinst_routes(const TInstant *inst)
Return the array of routes of a temporal network point.
Definition: tnpoint.c:570
nsegment * tnpointseq_linear_positions(const TSequence *seq)
Return the network segments covered by the temporal network point.
Definition: tnpoint.c:417
Basic functions for temporal types of any subtype.
Datum tnpoint_route(PG_FUNCTION_ARGS)
Return the route of a temporal network point.
Definition: tnpoint.c:551
Temporal * tnpoint_as_tgeompoint_internal(const Temporal *temp)
Cast a temporal network point as a temporal geometric point (dispatch function)
Definition: tnpoint.c:154
double pos1
position1
Definition: tnpoint.h:56
Structure to represent temporal values of sequence set subtype.
Definition: temporal.h:293
double pos2
position2
Definition: tnpoint.h:57
TInstant * tnpointinst_as_tgeompointinst(const TInstant *inst)
Cast a temporal network point as a temporal geometric point.
Definition: tnpoint.c:76
double pos
position
Definition: tnpoint.h:48
Datum tnpoint_make_tnpointseq(PG_FUNCTION_ARGS)
Structure to represent temporal values of instant set subtype.
Definition: temporal.h:266
TSequence * tnpointseq_as_tgeompointseq(const TSequence *seq)
Cast a temporal network point as a temporal geometric point.
Definition: tnpoint.c:105
int64 tnpointiseq_route(const TSequence *seq)
Return the route of the temporal network point.
Definition: tnpoint.c:356
Datum tnpoint_routes(PG_FUNCTION_ARGS)
Return the array of routes of a temporal network point.
Definition: tnpoint.c:631
int64 rid
route identifier
Definition: tnpoint.h:47
int64 tnpointinst_route(const TInstant *inst)
Return the route of the temporal network point.
Definition: tnpoint.c:346
TSequenceSet * tgeompointseqset_as_tnpointseqset(const TSequenceSet *ts)
Cast a temporal geometric point as a temporal network point.
Definition: tnpoint.c:252
int64 rid
route identifier
Definition: tnpoint.h:55
TInstantSet * tnpointinstset_as_tgeompointi(const TInstantSet *ti)
Cast a temporal network point as a temporal geometric point.
Definition: tnpoint.c:89
TInstantSet * tgeompointinstset_as_tnpointinstset(const TInstantSet *ti)
Cast a temporal geometric point as a temporal network point.
Definition: tnpoint.c:204
nsegment ** tnpointinst_positions(const TInstant *inst)
Return the network segments covered by the temporal network point.
Definition: tnpoint.c:367
Datum tnpoint_as_tgeompoint(PG_FUNCTION_ARGS)
Cast a temporal network point as a temporal geometric point.
Definition: tnpoint.c:174
Structure to represent temporal values of sequence subtype.
Definition: temporal.h:279
ArrayType * tnpointseq_routes(const TSequence *seq)
Return the array of routes of a temporal network point.
Definition: tnpoint.c:599
Datum tgeompoint_as_tnpoint(PG_FUNCTION_ARGS)
Cast a temporal geometric point as a temporal network point.
Definition: tnpoint.c:297
Structure to represent temporal values of instant subtype.
Definition: temporal.h:253