MobilityDB  1.0
Functions
temporal_posops.c File Reference

Relative position operators for temporal types. More...

#include "general/temporal_posops.h"
#include <assert.h>
#include "general/timeops.h"
#include "general/temporal.h"
#include "general/temporal_boxops.h"
Include dependency graph for temporal_posops.c:

Functions

PGDLLEXPORT Datum before_period_temporal (PG_FUNCTION_ARGS)
 Returns true if the period value is strictly before the temporal value. More...
 
PGDLLEXPORT Datum overbefore_period_temporal (PG_FUNCTION_ARGS)
 Returns true if the period value is not after the temporal value. More...
 
PGDLLEXPORT Datum after_period_temporal (PG_FUNCTION_ARGS)
 Returns true if the period value is strictly after the temporal value. More...
 
PGDLLEXPORT Datum overafter_period_temporal (PG_FUNCTION_ARGS)
 Returns true if the period value is not before the temporal value. More...
 
PGDLLEXPORT Datum before_temporal_period (PG_FUNCTION_ARGS)
 Returns true if the temporal value is strictly before the period value. More...
 
PGDLLEXPORT Datum overbefore_temporal_period (PG_FUNCTION_ARGS)
 Returns true if the temporal value is not after the period value. More...
 
PGDLLEXPORT Datum after_temporal_period (PG_FUNCTION_ARGS)
 Returns true if the temporal value is strictly after the period value. More...
 
PGDLLEXPORT Datum overafter_temporal_period (PG_FUNCTION_ARGS)
 Returns true if the temporal value is not before the period value. More...
 
PGDLLEXPORT Datum before_temporal_temporal (PG_FUNCTION_ARGS)
 Returns true if the first temporal value is strictly before the second one. More...
 
PGDLLEXPORT Datum overbefore_temporal_temporal (PG_FUNCTION_ARGS)
 Returns true if the first temporal value is not after the second one. More...
 
PGDLLEXPORT Datum after_temporal_temporal (PG_FUNCTION_ARGS)
 Returns true if the first temporal value is strictly after the second one. More...
 
PGDLLEXPORT Datum overafter_temporal_temporal (PG_FUNCTION_ARGS)
 Returns true if the first temporal value is not before the second one. More...
 
PGDLLEXPORT Datum left_range_tnumber (PG_FUNCTION_ARGS)
 Returns true if the number range value is strictly to the left of the temporal number. More...
 
PGDLLEXPORT Datum overleft_range_tnumber (PG_FUNCTION_ARGS)
 Returns true if the number range value is not to the right of the temporal number. More...
 
PGDLLEXPORT Datum right_range_tnumber (PG_FUNCTION_ARGS)
 Returns true if the number range value is strictly to the right of the temporal number. More...
 
PGDLLEXPORT Datum overright_range_tnumber (PG_FUNCTION_ARGS)
 Returns true if the number range value is not to the left of the temporal number. More...
 
PGDLLEXPORT Datum left_tnumber_range (PG_FUNCTION_ARGS)
 Returns true if the temporal number is strictly to the left of the number range value. More...
 
PGDLLEXPORT Datum overleft_tnumber_range (PG_FUNCTION_ARGS)
 Returns true if the temporal number is not to the right of the number range value. More...
 
PGDLLEXPORT Datum right_tnumber_range (PG_FUNCTION_ARGS)
 Returns true if the temporal number is strictly to the right of the number range value. More...
 
PGDLLEXPORT Datum overright_tnumber_range (PG_FUNCTION_ARGS)
 Returns true if the temporal number is not to the left of the number range value. More...
 
PGDLLEXPORT Datum left_tbox_tnumber (PG_FUNCTION_ARGS)
 Returns true if the temporal box value is strictly to the left of the temporal number. More...
 
PGDLLEXPORT Datum overleft_tbox_tnumber (PG_FUNCTION_ARGS)
 Returns true if the temporal box value is not to the right of the temporal number. More...
 
PGDLLEXPORT Datum right_tbox_tnumber (PG_FUNCTION_ARGS)
 Returns true if the temporal box value is strictly to the right of the temporal number. More...
 
PGDLLEXPORT Datum overright_tbox_tnumber (PG_FUNCTION_ARGS)
 Returns true if the temporal box value is not to the left of the temporal number. More...
 
PGDLLEXPORT Datum before_tbox_tnumber (PG_FUNCTION_ARGS)
 Returns true if the temporal box value is strictly before the temporal number. More...
 
PGDLLEXPORT Datum overbefore_tbox_tnumber (PG_FUNCTION_ARGS)
 Returns true if the temporal box value is not after the temporal number. More...
 
PGDLLEXPORT Datum after_tbox_tnumber (PG_FUNCTION_ARGS)
 Returns true if the temporal box value is strictly after the temporal number. More...
 
PGDLLEXPORT Datum overafter_tbox_tnumber (PG_FUNCTION_ARGS)
 Returns true if the temporal box value is not before the temporal number. More...
 
PGDLLEXPORT Datum left_tnumber_tbox (PG_FUNCTION_ARGS)
 Returns true if the temporal number is strictly to the left of the temporal box value. More...
 
PGDLLEXPORT Datum overleft_tnumber_tbox (PG_FUNCTION_ARGS)
 Returns true if the temporal number is not to the right of the temporal box value. More...
 
PGDLLEXPORT Datum right_tnumber_tbox (PG_FUNCTION_ARGS)
 Returns true if the temporal number is strictly to the right of the temporal box value. More...
 
PGDLLEXPORT Datum overright_tnumber_tbox (PG_FUNCTION_ARGS)
 Returns true if the temporal number is not to the left of the temporal box value. More...
 
PGDLLEXPORT Datum before_tnumber_tbox (PG_FUNCTION_ARGS)
 Returns true if the temporal number is strictly before the temporal box value. More...
 
PGDLLEXPORT Datum overbefore_tnumber_tbox (PG_FUNCTION_ARGS)
 Returns true if the temporal number is not after the temporal box value. More...
 
PGDLLEXPORT Datum after_tnumber_tbox (PG_FUNCTION_ARGS)
 Returns true if the temporal number is strictly after the temporal box value. More...
 
PGDLLEXPORT Datum overafter_tnumber_tbox (PG_FUNCTION_ARGS)
 Returns true if the temporal number is not before the temporal box value. More...
 
PGDLLEXPORT Datum left_tnumber_tnumber (PG_FUNCTION_ARGS)
 Returns true if the first temporal number is strictly to the left of the second one. More...
 
PGDLLEXPORT Datum overleft_tnumber_tnumber (PG_FUNCTION_ARGS)
 Returns true if the first temporal number is not to the right of the second one. More...
 
PGDLLEXPORT Datum right_tnumber_tnumber (PG_FUNCTION_ARGS)
 Returns true if the first temporal number is strictly to the right of the second one. More...
 
PGDLLEXPORT Datum overright_tnumber_tnumber (PG_FUNCTION_ARGS)
 Returns true if the first temporal number is not to the left of the second one. More...
 
PGDLLEXPORT Datum before_tnumber_tnumber (PG_FUNCTION_ARGS)
 Returns true if the first temporal number is strictly before the second one. More...
 
PGDLLEXPORT Datum overbefore_tnumber_tnumber (PG_FUNCTION_ARGS)
 Returns true if the first temporal number is not after the second one. More...
 
PGDLLEXPORT Datum after_tnumber_tnumber (PG_FUNCTION_ARGS)
 Returns true if the first temporal number is strictly after the second one. More...
 
PGDLLEXPORT Datum overafter_tnumber_tnumber (PG_FUNCTION_ARGS)
 Returns true if the first temporal number is not before the second one. More...
 

Detailed Description

Relative position operators for temporal types.

The following operators are defined: