|
Hermes
|
The implementation of Trajectory. More...
#include "../../h/SpatioTemporal/Trajectory/Definition.h"#include "../../h/Utilities/Utilities.h"#include <libpq/pqformat.h>#include <access/hash.h>
The implementation of Trajectory.
These functions are documented in the Trajectory/Definition.h
| 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 | ) |
| PG_FUNCTION_INFO_V1 | ( | cloneTrajectoryV1 | ) |
| PG_FUNCTION_INFO_V1 | ( | inTrajectoryV1 | ) |
| PG_FUNCTION_INFO_V1 | ( | outTrajectoryV1 | ) |
| PG_FUNCTION_INFO_V1 | ( | recvTrajectory | ) |
| PG_FUNCTION_INFO_V1 | ( | sendTrajectory | ) |
| PG_FUNCTION_INFO_V1 | ( | hashTrajectory | ) |
| PG_FUNCTION_INFO_V1 | ( | equalsTrajectoryV1 | ) |
| 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().
