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

The implementantion of Period. More...

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

Functions

PeriodclonePeriod (const Period *period, Period *result)
 
PGDLLEXPORT Datum clonePeriodV1 (PG_FUNCTION_ARGS)
 
 PG_FUNCTION_INFO_V1 (clonePeriodV1)
 
PeriodconstructorPeriod (Timestamp i, Timestamp e, Period *result, char **error)
 
PGDLLEXPORT Datum constructorPeriodV1 (PG_FUNCTION_ARGS)
 
 PG_FUNCTION_INFO_V1 (constructorPeriodV1)
 
PeriodinPeriod (const char *str, Period *result, char **error)
 
PGDLLEXPORT Datum inPeriodV1 (PG_FUNCTION_ARGS)
 
 PG_FUNCTION_INFO_V1 (inPeriodV1)
 
char * outPeriod (const Period *period)
 
PGDLLEXPORT Datum outPeriodV1 (PG_FUNCTION_ARGS)
 
 PG_FUNCTION_INFO_V1 (outPeriodV1)
 
PGDLLEXPORT Datum recvPeriod (PG_FUNCTION_ARGS)
 
 PG_FUNCTION_INFO_V1 (recvPeriod)
 
bytea * Period2Bytea (const Period *period)
 
PGDLLEXPORT Datum sendPeriod (PG_FUNCTION_ARGS)
 
 PG_FUNCTION_INFO_V1 (sendPeriod)
 
PGDLLEXPORT Datum hashPeriod (PG_FUNCTION_ARGS)
 
 PG_FUNCTION_INFO_V1 (hashPeriod)
 
bool equalsPeriod (const Period *periodA, const Period *periodB)
 
PGDLLEXPORT Datum equalsPeriodV1 (PG_FUNCTION_ARGS)
 
 PG_FUNCTION_INFO_V1 (equalsPeriodV1)
 
PGDLLEXPORT Datum getIPeriod (PG_FUNCTION_ARGS)
 
 PG_FUNCTION_INFO_V1 (getIPeriod)
 
PGDLLEXPORT Datum getEPeriod (PG_FUNCTION_ARGS)
 
 PG_FUNCTION_INFO_V1 (getEPeriod)
 

Detailed Description

The implementantion of Period.

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

These functions are documented in the Period/Definition.h

Function Documentation

Period* clonePeriod ( const Period period,
Period result 
)

References period().

Referenced by clonePeriodV1().

Here is the call graph for this function:

PGDLLEXPORT Datum clonePeriodV1 ( PG_FUNCTION_ARGS  )

References clonePeriod().

Here is the call graph for this function:

Period* constructorPeriod ( Timestamp  i,
Timestamp  e,
Period result,
char **  error 
)

References e(), Period::e, i(), and Period::i.

Referenced by constructorPeriodV1().

Here is the call graph for this function:

PGDLLEXPORT Datum constructorPeriodV1 ( PG_FUNCTION_ARGS  )

References constructorPeriod().

Here is the call graph for this function:

bool equalsPeriod ( const Period periodA,
const Period periodB 
)

References Period::e, and Period::i.

Referenced by equalsPeriodV1().

PGDLLEXPORT Datum equalsPeriodV1 ( PG_FUNCTION_ARGS  )

References equalsPeriod().

Here is the call graph for this function:

PGDLLEXPORT Datum getEPeriod ( PG_FUNCTION_ARGS  )

References e().

Here is the call graph for this function:

PGDLLEXPORT Datum getIPeriod ( PG_FUNCTION_ARGS  )

References i().

Here is the call graph for this function:

PGDLLEXPORT Datum hashPeriod ( PG_FUNCTION_ARGS  )

References Period2Bytea().

Here is the call graph for this function:

Period* inPeriod ( const char *  str,
Period result,
char **  error 
)

References asprintfHermes(), e(), Period::e, i(), and Period::i.

Referenced by inPeriodV1().

Here is the call graph for this function:

PGDLLEXPORT Datum inPeriodV1 ( PG_FUNCTION_ARGS  )

References inPeriod().

Here is the call graph for this function:

char* outPeriod ( const Period period)

References asprintfHermes(), Period::e, and Period::i.

Referenced by outPeriodV1().

Here is the call graph for this function:

PGDLLEXPORT Datum outPeriodV1 ( PG_FUNCTION_ARGS  )

References outPeriod().

Here is the call graph for this function:

bytea* Period2Bytea ( const Period period)

References Period::e, Period::i, and sendTimestampHermes.

Referenced by hashPeriod(), and sendPeriod().

PG_FUNCTION_INFO_V1 ( clonePeriodV1  )
PG_FUNCTION_INFO_V1 ( constructorPeriodV1  )
PG_FUNCTION_INFO_V1 ( inPeriodV1  )
PG_FUNCTION_INFO_V1 ( outPeriodV1  )
PG_FUNCTION_INFO_V1 ( recvPeriod  )
PG_FUNCTION_INFO_V1 ( sendPeriod  )
PG_FUNCTION_INFO_V1 ( hashPeriod  )
PG_FUNCTION_INFO_V1 ( equalsPeriodV1  )
PG_FUNCTION_INFO_V1 ( getIPeriod  )
PG_FUNCTION_INFO_V1 ( getEPeriod  )
PGDLLEXPORT Datum recvPeriod ( PG_FUNCTION_ARGS  )
PGDLLEXPORT Datum sendPeriod ( PG_FUNCTION_ARGS  )

References Period2Bytea().

Here is the call graph for this function: