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

The implementation of Trajectory. More...

#include "../../h/SpatioTemporal/Trajectory/Constructors.h"
#include <utils/array.h>
#include <utils/lsyscache.h>
#include <utils/memutils.h>
Include dependency graph for Constructors.c:

Functions

PGDLLEXPORT Datum constructorEmptyTrajectory (PG_FUNCTION_ARGS)
 
 PG_FUNCTION_INFO_V1 (constructorEmptyTrajectory)
 
TrajectoryconstructorPointTrajectory (const PointST *point)
 
PGDLLEXPORT Datum constructorPointTrajectoryV1 (PG_FUNCTION_ARGS)
 
 PG_FUNCTION_INFO_V1 (constructorPointTrajectoryV1)
 
PGDLLEXPORT Datum constructorPointArrayTrajectory (PG_FUNCTION_ARGS)
 
 PG_FUNCTION_INFO_V1 (constructorPointArrayTrajectory)
 
PGDLLEXPORT Datum TrajCache_Allocate (PG_FUNCTION_ARGS)
 
 PG_FUNCTION_INFO_V1 (TrajCache_Allocate)
 
PGDLLEXPORT Datum TrajCache_Free (PG_FUNCTION_ARGS)
 
 PG_FUNCTION_INFO_V1 (TrajCache_Free)
 
PGDLLEXPORT Datum TrajCache_Clean (PG_FUNCTION_ARGS)
 
 PG_FUNCTION_INFO_V1 (TrajCache_Clean)
 
PGDLLEXPORT Datum TrajCache_ResetIndex (PG_FUNCTION_ARGS)
 
 PG_FUNCTION_INFO_V1 (TrajCache_ResetIndex)
 
PGDLLEXPORT Datum TrajCache_Rewind (PG_FUNCTION_ARGS)
 
 PG_FUNCTION_INFO_V1 (TrajCache_Rewind)
 
PGDLLEXPORT Datum TrajCache_Append (PG_FUNCTION_ARGS)
 
 PG_FUNCTION_INFO_V1 (TrajCache_Append)
 
PGDLLEXPORT Datum TrajCache_getIndex (PG_FUNCTION_ARGS)
 
 PG_FUNCTION_INFO_V1 (TrajCache_getIndex)
 
PGDLLEXPORT Datum TrajCache_Point (PG_FUNCTION_ARGS)
 
 PG_FUNCTION_INFO_V1 (TrajCache_Point)
 
PGDLLEXPORT Datum TrajCache2Trajectory (PG_FUNCTION_ARGS)
 
 PG_FUNCTION_INFO_V1 (TrajCache2Trajectory)
 

Variables

MemoryContext TrajCache_MemoryContext = NULL
 
int32 TrajCache_NrCaches = 0
 
PointST ** TrajCache = NULL
 
int32 * TrajCache_Length = NULL
 
int32 * TrajCache_Index = NULL
 

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/Constructors.h

Function Documentation

PGDLLEXPORT Datum constructorEmptyTrajectory ( PG_FUNCTION_ARGS  )

References allocateTrajectory().

Here is the call graph for this function:

PGDLLEXPORT Datum constructorPointArrayTrajectory ( PG_FUNCTION_ARGS  )

References allocateTrajectory(), i(), Trajectory::points, PointST::t, and updateMetadataTrajectory().

Here is the call graph for this function:

Trajectory* constructorPointTrajectory ( const PointST point)

References allocateTrajectory(), and Trajectory::points.

Referenced by atPeriodTrajectory(), and constructorPointTrajectoryV1().

Here is the call graph for this function:

PGDLLEXPORT Datum constructorPointTrajectoryV1 ( PG_FUNCTION_ARGS  )

References constructorPointTrajectory(), and updateMetadataTrajectory().

Here is the call graph for this function:

PG_FUNCTION_INFO_V1 ( constructorEmptyTrajectory  )
PG_FUNCTION_INFO_V1 ( constructorPointTrajectoryV1  )
PG_FUNCTION_INFO_V1 ( constructorPointArrayTrajectory  )
PG_FUNCTION_INFO_V1 ( TrajCache_Allocate  )
PG_FUNCTION_INFO_V1 ( TrajCache_Free  )
PG_FUNCTION_INFO_V1 ( TrajCache_Clean  )
PG_FUNCTION_INFO_V1 ( TrajCache_ResetIndex  )
PG_FUNCTION_INFO_V1 ( TrajCache_Rewind  )
PG_FUNCTION_INFO_V1 ( TrajCache_Append  )
PG_FUNCTION_INFO_V1 ( TrajCache_getIndex  )
PG_FUNCTION_INFO_V1 ( TrajCache_Point  )
PG_FUNCTION_INFO_V1 ( TrajCache2Trajectory  )
PGDLLEXPORT Datum TrajCache2Trajectory ( PG_FUNCTION_ARGS  )

References allocateTrajectory(), Trajectory::points, TrajCache_Index, TrajCache_NrCaches, and updateMetadataTrajectory().

Here is the call graph for this function:

PGDLLEXPORT Datum TrajCache_Allocate ( PG_FUNCTION_ARGS  )

References i(), length(), TrajCache_Index, TrajCache_Length, TrajCache_MemoryContext, and TrajCache_NrCaches.

Here is the call graph for this function:

PGDLLEXPORT Datum TrajCache_Append ( PG_FUNCTION_ARGS  )
PGDLLEXPORT Datum TrajCache_Clean ( PG_FUNCTION_ARGS  )
PGDLLEXPORT Datum TrajCache_Free ( PG_FUNCTION_ARGS  )
PGDLLEXPORT Datum TrajCache_getIndex ( PG_FUNCTION_ARGS  )
PGDLLEXPORT Datum TrajCache_Point ( PG_FUNCTION_ARGS  )

References i(), TrajCache_Index, and TrajCache_NrCaches.

Here is the call graph for this function:

PGDLLEXPORT Datum TrajCache_ResetIndex ( PG_FUNCTION_ARGS  )
PGDLLEXPORT Datum TrajCache_Rewind ( PG_FUNCTION_ARGS  )

Variable Documentation

PointST** TrajCache = NULL
int32* TrajCache_Length = NULL
MemoryContext TrajCache_MemoryContext = NULL