Hermes
|
#include "../PointST/Definition.h"
Data Structures | |
struct | Trajectory |
Macros | |
#define | NrPoints2NrSegments(NrPoints) ((NrPoints) == 0 ? 0 : (NrPoints) - 1) |
Functions | |
Trajectory * | allocateTrajectory (int32 NrPoints) |
Trajectory * | reallocateTrajectory (Trajectory *trajectory, int32 NrPoints) |
Trajectory * | updateMetadataTrajectory (Trajectory *trajectory) |
Trajectory * | cloneTrajectory (const Trajectory *trajectory) |
PGDLLEXPORT Datum | cloneTrajectoryV1 (PG_FUNCTION_ARGS) |
Trajectory * | inTrajectory (const char *str, char **error) |
PGDLLEXPORT Datum | inTrajectoryV1 (PG_FUNCTION_ARGS) |
char * | outTrajectory (const Trajectory *trajectory) |
PGDLLEXPORT Datum | outTrajectoryV1 (PG_FUNCTION_ARGS) |
PGDLLEXPORT Datum | recvTrajectory (PG_FUNCTION_ARGS) |
bytea * | Trajectory2Bytea (const Trajectory *trajectory) |
PGDLLEXPORT Datum | sendTrajectory (PG_FUNCTION_ARGS) |
PGDLLEXPORT Datum | hashTrajectory (PG_FUNCTION_ARGS) |
bool | equalsTrajectory (const Trajectory *trajectoryA, const Trajectory *trajectoryB) |
PGDLLEXPORT Datum | equalsTrajectoryV1 (PG_FUNCTION_ARGS) |
#define NrPoints2NrSegments | ( | NrPoints | ) | ((NrPoints) == 0 ? 0 : (NrPoints) - 1) |
Referenced by consistentGiSTSegmentST(), and NrSegmentsTrajectory().
Trajectory* allocateTrajectory | ( | int32 | NrPoints | ) |
References points(), and size().
Referenced by atBoxTrajectory(), constructorEmptyTrajectory(), constructorPointArrayTrajectory(), constructorPointTrajectory(), expandOnSegmentTrajectory(), inTrajectory(), recvTrajectory(), simplifyDPTrajectory(), simplifyEpochTrajectory(), simplifyTrajectory(), subTrajectory(), and TrajCache2Trajectory().
Trajectory* cloneTrajectory | ( | const Trajectory * | trajectory | ) |
PGDLLEXPORT Datum cloneTrajectoryV1 | ( | PG_FUNCTION_ARGS | ) |
bool equalsTrajectory | ( | const Trajectory * | trajectoryA, |
const Trajectory * | trajectoryB | ||
) |
References equalsPointST(), i(), Trajectory::NrPoints, and Trajectory::points.
Referenced by equalsTrajectoryV1().
PGDLLEXPORT Datum equalsTrajectoryV1 | ( | PG_FUNCTION_ARGS | ) |
PGDLLEXPORT Datum hashTrajectory | ( | PG_FUNCTION_ARGS | ) |
Trajectory* inTrajectory | ( | const char * | str, |
char ** | error | ||
) |
References allocateTrajectory(), asprintfHermes(), Trajectory::points, PointST::sp, PointST::t, PointSP::x, and PointSP::y.
Referenced by inTrajectoryV1().
PGDLLEXPORT Datum inTrajectoryV1 | ( | PG_FUNCTION_ARGS | ) |
References inTrajectory(), and updateMetadataTrajectory().
char* outTrajectory | ( | const Trajectory * | trajectory | ) |
References asprintfHermes(), i(), Trajectory::NrPoints, Trajectory::points, PointST::sp, PointST::t, PointSP::x, and PointSP::y.
Referenced by outTrajectoryV1().
PGDLLEXPORT Datum outTrajectoryV1 | ( | PG_FUNCTION_ARGS | ) |
Trajectory* reallocateTrajectory | ( | Trajectory * | trajectory, |
int32 | NrPoints | ||
) |
References points(), size(), and trajectory().
Referenced by expandOnPointTrajectory(), expandOnSegmentTrajectory(), and expandOnTrajectoryTrajectory().
PGDLLEXPORT Datum recvTrajectory | ( | PG_FUNCTION_ARGS | ) |
References allocateTrajectory(), getmsgTimestampHermes, i(), Trajectory::NrPoints, Trajectory::points, Trajectory::samplingPeriod, PointST::sp, PointST::t, PointSP::x, and PointSP::y.
PGDLLEXPORT Datum sendTrajectory | ( | PG_FUNCTION_ARGS | ) |
bytea* Trajectory2Bytea | ( | const Trajectory * | trajectory | ) |
References ELIMINATE_MINUS_ZERO, i(), Trajectory::NrPoints, Trajectory::points, Trajectory::samplingPeriod, sendTimestampHermes, PointST::sp, PointST::t, PointSP::x, and PointSP::y.
Referenced by hashTrajectory(), and sendTrajectory().
Trajectory* updateMetadataTrajectory | ( | Trajectory * | trajectory | ) |
References differenceInSeconds(), i(), Trajectory::NrPoints, Trajectory::points, Trajectory::samplingPeriod, PointST::t, and trajectory().
Referenced by atBoxSTTrajectoryV1(), atBoxTrajectoryV1(), atPeriodTrajectoryV1(), constructorPointArrayTrajectory(), constructorPointTrajectoryV1(), expandOnPointTrajectoryV1(), expandOnSegmentTrajectoryV1(), expandOnTrajectoryTrajectoryV1(), inTrajectoryV1(), simplifyDPTrajectoryV1(), simplifyTrajectoryV1(), subTrajectoryV1(), and TrajCache2Trajectory().