Hermes
 All Data Structures Files Functions Variables Macros Pages
Definition.c File Reference

The implementation of Trajectory. More...

#include "../../h/SpatioTemporal/Trajectory/Definition.h"
#include "../../h/Utilities/Utilities.h"
#include <libpq/pqformat.h>
#include <access/hash.h>
Include dependency graph for Definition.c:

Functions

TrajectoryallocateTrajectory (int32 NrPoints)
 
TrajectoryreallocateTrajectory (Trajectory *trajectory, int32 NrPoints)
 
TrajectoryupdateMetadataTrajectory (Trajectory *trajectory)
 
TrajectorycloneTrajectory (const Trajectory *trajectory)
 
PGDLLEXPORT Datum cloneTrajectoryV1 (PG_FUNCTION_ARGS)
 
 PG_FUNCTION_INFO_V1 (cloneTrajectoryV1)
 
TrajectoryinTrajectory (const char *str, char **error)
 
PGDLLEXPORT Datum inTrajectoryV1 (PG_FUNCTION_ARGS)
 
 PG_FUNCTION_INFO_V1 (inTrajectoryV1)
 
char * outTrajectory (const Trajectory *trajectory)
 
PGDLLEXPORT Datum outTrajectoryV1 (PG_FUNCTION_ARGS)
 
 PG_FUNCTION_INFO_V1 (outTrajectoryV1)
 
PGDLLEXPORT Datum recvTrajectory (PG_FUNCTION_ARGS)
 
 PG_FUNCTION_INFO_V1 (recvTrajectory)
 
bytea * Trajectory2Bytea (const Trajectory *trajectory)
 
PGDLLEXPORT Datum sendTrajectory (PG_FUNCTION_ARGS)
 
 PG_FUNCTION_INFO_V1 (sendTrajectory)
 
PGDLLEXPORT Datum hashTrajectory (PG_FUNCTION_ARGS)
 
 PG_FUNCTION_INFO_V1 (hashTrajectory)
 
bool equalsTrajectory (const Trajectory *trajectoryA, const Trajectory *trajectoryB)
 
PGDLLEXPORT Datum equalsTrajectoryV1 (PG_FUNCTION_ARGS)
 
 PG_FUNCTION_INFO_V1 (equalsTrajectoryV1)
 

Detailed Description

The implementation of Trajectory.

Author
Marios Vodas (mvoda.nosp@m.s@gm.nosp@m.ail.c.nosp@m.om).

These functions are documented in the Trajectory/Definition.h

Function Documentation

PGDLLEXPORT Datum cloneTrajectoryV1 ( PG_FUNCTION_ARGS  )

References cloneTrajectory().

Here is the call graph for this function:

bool equalsTrajectory ( const Trajectory trajectoryA,
const Trajectory trajectoryB 
)

References equalsPointST(), i(), Trajectory::NrPoints, and Trajectory::points.

Referenced by equalsTrajectoryV1().

Here is the call graph for this function:

PGDLLEXPORT Datum equalsTrajectoryV1 ( PG_FUNCTION_ARGS  )

References equalsTrajectory().

Here is the call graph for this function:

PGDLLEXPORT Datum hashTrajectory ( PG_FUNCTION_ARGS  )

References Trajectory2Bytea().

Here is the call graph for this function:

Trajectory* inTrajectory ( const char *  str,
char **  error 
)

References allocateTrajectory(), asprintfHermes(), Trajectory::points, PointST::sp, PointST::t, PointSP::x, and PointSP::y.

Referenced by inTrajectoryV1().

Here is the call graph for this function:

PGDLLEXPORT Datum inTrajectoryV1 ( PG_FUNCTION_ARGS  )

References inTrajectory(), and updateMetadataTrajectory().

Here is the call graph for this function:

char* outTrajectory ( const Trajectory trajectory)

References asprintfHermes(), i(), Trajectory::NrPoints, Trajectory::points, PointST::sp, PointST::t, PointSP::x, and PointSP::y.

Referenced by outTrajectoryV1().

Here is the call graph for this function:

PGDLLEXPORT Datum outTrajectoryV1 ( PG_FUNCTION_ARGS  )

References outTrajectory().

Here is the call graph for this function:

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().

Here is the call graph for this function:

PGDLLEXPORT Datum recvTrajectory ( PG_FUNCTION_ARGS  )
PGDLLEXPORT Datum sendTrajectory ( PG_FUNCTION_ARGS  )

References Trajectory2Bytea().

Here is the call graph for this function:

bytea* Trajectory2Bytea ( const Trajectory trajectory)