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

The implementantion of BoxST. More...

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

Functions

BoxSTcloneBoxST (const BoxST *box, BoxST *result)
 
PGDLLEXPORT Datum cloneBoxSTV1 (PG_FUNCTION_ARGS)
 
 PG_FUNCTION_INFO_V1 (cloneBoxSTV1)
 
BoxSTconstructorBoxST (Timestamp ti, Timestamp te, int32 lx, int32 ly, int32 hx, int32 hy, BoxST *result, char **error)
 
PGDLLEXPORT Datum constructorBoxSTV1 (PG_FUNCTION_ARGS)
 
 PG_FUNCTION_INFO_V1 (constructorBoxSTV1)
 
BoxSTconstructorHighBoxST (const Period *t, const BoxSP *sp, BoxST *result, char **error)
 
PGDLLEXPORT Datum constructorHighBoxSTV1 (PG_FUNCTION_ARGS)
 
 PG_FUNCTION_INFO_V1 (constructorHighBoxSTV1)
 
BoxSTinBoxST (const char *str, BoxST *result, char **error)
 
PGDLLEXPORT Datum inBoxSTV1 (PG_FUNCTION_ARGS)
 
 PG_FUNCTION_INFO_V1 (inBoxSTV1)
 
char * outBoxST (const BoxST *box)
 
PGDLLEXPORT Datum outBoxSTV1 (PG_FUNCTION_ARGS)
 
 PG_FUNCTION_INFO_V1 (outBoxSTV1)
 
PGDLLEXPORT Datum recvBoxST (PG_FUNCTION_ARGS)
 
 PG_FUNCTION_INFO_V1 (recvBoxST)
 
bytea * BoxST2Bytea (const BoxST *box)
 
PGDLLEXPORT Datum sendBoxST (PG_FUNCTION_ARGS)
 
 PG_FUNCTION_INFO_V1 (sendBoxST)
 
PGDLLEXPORT Datum hashBoxST (PG_FUNCTION_ARGS)
 
 PG_FUNCTION_INFO_V1 (hashBoxST)
 
bool equalsBoxST (const BoxST *boxA, const BoxST *boxB)
 
PGDLLEXPORT Datum equalsBoxSTV1 (PG_FUNCTION_ARGS)
 
 PG_FUNCTION_INFO_V1 (equalsBoxSTV1)
 
PGDLLEXPORT Datum getTBoxST (PG_FUNCTION_ARGS)
 
 PG_FUNCTION_INFO_V1 (getTBoxST)
 
PGDLLEXPORT Datum getTiBoxST (PG_FUNCTION_ARGS)
 
 PG_FUNCTION_INFO_V1 (getTiBoxST)
 
PGDLLEXPORT Datum getTeBoxST (PG_FUNCTION_ARGS)
 
 PG_FUNCTION_INFO_V1 (getTeBoxST)
 
PGDLLEXPORT Datum getSpBoxST (PG_FUNCTION_ARGS)
 
 PG_FUNCTION_INFO_V1 (getSpBoxST)
 
PGDLLEXPORT Datum getLBoxST (PG_FUNCTION_ARGS)
 
 PG_FUNCTION_INFO_V1 (getLBoxST)
 
PGDLLEXPORT Datum getLxBoxST (PG_FUNCTION_ARGS)
 
 PG_FUNCTION_INFO_V1 (getLxBoxST)
 
PGDLLEXPORT Datum getLyBoxST (PG_FUNCTION_ARGS)
 
 PG_FUNCTION_INFO_V1 (getLyBoxST)
 
PGDLLEXPORT Datum getHBoxST (PG_FUNCTION_ARGS)
 
 PG_FUNCTION_INFO_V1 (getHBoxST)
 
PGDLLEXPORT Datum getHxBoxST (PG_FUNCTION_ARGS)
 
 PG_FUNCTION_INFO_V1 (getHxBoxST)
 
PGDLLEXPORT Datum getHyBoxST (PG_FUNCTION_ARGS)
 
 PG_FUNCTION_INFO_V1 (getHyBoxST)
 

Detailed Description

The implementantion of BoxST.

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

These functions are documented in the BoxST/Definition.h

Function Documentation

bytea* BoxST2Bytea ( const BoxST box)
BoxST* cloneBoxST ( const BoxST box,
BoxST result 
)

Referenced by cloneBoxSTV1(), and unionGiSTBoxST().

PGDLLEXPORT Datum cloneBoxSTV1 ( PG_FUNCTION_ARGS  )

References cloneBoxST().

Here is the call graph for this function:

BoxST* constructorBoxST ( Timestamp  ti,
Timestamp  te,
int32  lx,
int32  ly,
int32  hx,
int32  hy,
BoxST result,
char **  error 
)
PGDLLEXPORT Datum constructorBoxSTV1 ( PG_FUNCTION_ARGS  )

References constructorBoxST().

Here is the call graph for this function:

BoxST* constructorHighBoxST ( const Period t,
const BoxSP sp,
BoxST result,
char **  error 
)
PGDLLEXPORT Datum constructorHighBoxSTV1 ( PG_FUNCTION_ARGS  )

References constructorHighBoxST().

Here is the call graph for this function:

bool equalsBoxST ( const BoxST boxA,
const BoxST boxB 
)
PGDLLEXPORT Datum equalsBoxSTV1 ( PG_FUNCTION_ARGS  )

References equalsBoxST().

Here is the call graph for this function:

PGDLLEXPORT Datum getHBoxST ( PG_FUNCTION_ARGS  )
PGDLLEXPORT Datum getHxBoxST ( PG_FUNCTION_ARGS  )
PGDLLEXPORT Datum getHyBoxST ( PG_FUNCTION_ARGS  )
PGDLLEXPORT Datum getLBoxST ( PG_FUNCTION_ARGS  )
PGDLLEXPORT Datum getLxBoxST ( PG_FUNCTION_ARGS  )
PGDLLEXPORT Datum getLyBoxST ( PG_FUNCTION_ARGS  )
PGDLLEXPORT Datum getSpBoxST ( PG_FUNCTION_ARGS  )
PGDLLEXPORT Datum getTBoxST ( PG_FUNCTION_ARGS  )
PGDLLEXPORT Datum getTeBoxST ( PG_FUNCTION_ARGS  )
PGDLLEXPORT Datum getTiBoxST ( PG_FUNCTION_ARGS  )
PGDLLEXPORT Datum hashBoxST ( PG_FUNCTION_ARGS  )

References BoxST2Bytea().

Here is the call graph for this function:

BoxST* inBoxST ( const char *  str,
BoxST result,
char **  error 
)

References asprintfHermes(), Period::e, BoxSP::h, Period::i, BoxSP::l, BoxST::sp, BoxST::t, PointSP::x, and PointSP::y.

Referenced by inBoxSTV1().

Here is the call graph for this function:

PGDLLEXPORT Datum inBoxSTV1 ( PG_FUNCTION_ARGS  )

References inBoxST().

Here is the call graph for this function:

char* outBoxST ( const BoxST box)

References asprintfHermes(), Period::e, BoxSP::h, Period::i, BoxSP::l, BoxST::sp, BoxST::t, PointSP::x, and PointSP::y.

Referenced by outBoxSTV1(), penaltyGiSTSegmentST(), and sameGiSTSegmentST().

Here is the call graph for this function:

PGDLLEXPORT Datum outBoxSTV1 ( PG_FUNCTION_ARGS  )

References outBoxST().

Here is the call graph for this function:

PG_FUNCTION_INFO_V1 ( cloneBoxSTV1  )
PG_FUNCTION_INFO_V1 ( constructorBoxSTV1  )
PG_FUNCTION_INFO_V1 ( constructorHighBoxSTV1  )
PG_FUNCTION_INFO_V1 ( inBoxSTV1  )
PG_FUNCTION_INFO_V1 ( outBoxSTV1  )
PG_FUNCTION_INFO_V1 ( recvBoxST  )
PG_FUNCTION_INFO_V1 ( sendBoxST  )
PG_FUNCTION_INFO_V1 ( hashBoxST  )
PG_FUNCTION_INFO_V1 ( equalsBoxSTV1  )
PG_FUNCTION_INFO_V1 ( getTBoxST  )
PG_FUNCTION_INFO_V1 ( getTiBoxST  )
PG_FUNCTION_INFO_V1 ( getTeBoxST  )
PG_FUNCTION_INFO_V1 ( getSpBoxST  )
PG_FUNCTION_INFO_V1 ( getLBoxST  )
PG_FUNCTION_INFO_V1 ( getLxBoxST  )
PG_FUNCTION_INFO_V1 ( getLyBoxST  )
PG_FUNCTION_INFO_V1 ( getHBoxST  )
PG_FUNCTION_INFO_V1 ( getHxBoxST  )
PG_FUNCTION_INFO_V1 ( getHyBoxST  )
PGDLLEXPORT Datum recvBoxST ( PG_FUNCTION_ARGS  )
PGDLLEXPORT Datum sendBoxST ( PG_FUNCTION_ARGS  )

References BoxST2Bytea().

Here is the call graph for this function: