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

File containing the implementation of the Trajectory data type. More...

Functions

trajectory trajectory ()
 The function constructs an empty trajectory. More...
 
trajectory trajectory (pointst point)
 The function constructs a trajectory with a single point. More...
 
trajectory trajectory (pointst[] pointarray)
 The function constructs a trajectory. More...
 
integer trajcache_allocate (integer length)
 The function allocates the appropriate space in memory for a trajectory. More...
 
void trajcache_free (integer cache_id)
 
void trajcache_clean ()
 
void trajcache_resetindex (integer cache_id)
 The function resets the index of the current allocation and set it at the beginning for a trajectory. More...
 
void trajcache_rewind (integer cache_id)
 
void trajcache_append (integer cache_id, pointst point)
 The function append the PointSTs to the trajectory one by one. More...
 
integer trajcache_index (integer cache_id)
 
pointst trajcache_point (integer cache_id, integer i)
 
trajectory trajcache2trajectory (integer cache_id)
 The function materialize the trajectory. More...
 

Detailed Description

File containing the implementation of the Trajectory data type.

Author
Marios Vodas (mvoda.nosp@m.s@gm.nosp@m.ail.c.nosp@m.om).
See also
Trajectory
Trajectory type

Function Documentation

trajectory trajcache2trajectory ( integer  cache_id)

The function materialize the trajectory.

Parameters
[in]cache_idthe identifier of the trajectory
Returns
the actual trajectory
integer trajcache_allocate ( integer  length)

The function allocates the appropriate space in memory for a trajectory.

Parameters
[in]lengthThe length of the trajectory
Returns
an integer which is an identifier of the current allocation
void trajcache_append ( integer  cache_id,
pointst  point 
)

The function append the PointSTs to the trajectory one by one.

Parameters
[in]cache_idthe identifier of the trajectory
[in]pointthe point to be appended
void trajcache_clean ( )
void trajcache_free ( integer  cache_id)
integer trajcache_index ( integer  cache_id)
pointst trajcache_point ( integer  cache_id,
integer  i 
)
void trajcache_resetindex ( integer  cache_id)

The function resets the index of the current allocation and set it at the beginning for a trajectory.

Parameters
[in]cache_idthe identifier of the TrajCache allocation
void trajcache_rewind ( integer  cache_id)
trajectory trajectory ( pointst  point)

The function constructs a trajectory with a single point.

Parameters
[in]pointan array of PointST
Returns
the actual trajectory
trajectory trajectory ( pointst[]  pointarray)

The function constructs a trajectory.

Parameters
[in]pointArrayan array of PointST
Returns
the actual trajectory