MobilityDB 1.3
Loading...
Searching...
No Matches
Data Structures | Macros | Typedefs | Enumerations | Functions
meos_catalog.h File Reference
#include <stdbool.h>
#include <meos.h>

Go to the source code of this file.

Data Structures

struct  settype_catalog_struct
 Structure to represent the span type cache array. More...
 
struct  spansettype_catalog_struct
 Structure to represent the spanset type cache array. More...
 
struct  spantype_catalog_struct
 Structure to represent the span type cache array. More...
 
struct  temptype_catalog_struct
 Structure to represent the temporal type cache array. More...
 

Macros

#define NO_MEOS_TYPES   63
 

Typedefs

typedef signed short int16
 Functions for building a cache of temporal types and operators. More...
 

Enumerations

enum  meosOper {
  UNKNOWN_OP = 0 , EQ_OP = 1 , NE_OP = 2 , LT_OP = 3 ,
  LE_OP = 4 , GT_OP = 5 , GE_OP = 6 , ADJACENT_OP = 7 ,
  UNION_OP = 8 , MINUS_OP = 9 , INTERSECT_OP = 10 , OVERLAPS_OP = 11 ,
  CONTAINS_OP = 12 , CONTAINED_OP = 13 , SAME_OP = 14 , LEFT_OP = 15 ,
  OVERLEFT_OP = 16 , RIGHT_OP = 17 , OVERRIGHT_OP = 18 , BELOW_OP = 19 ,
  OVERBELOW_OP = 20 , ABOVE_OP = 21 , OVERABOVE_OP = 22 , FRONT_OP = 23 ,
  OVERFRONT_OP = 24 , BACK_OP = 25 , OVERBACK_OP = 26 , BEFORE_OP = 27 ,
  OVERBEFORE_OP = 28 , AFTER_OP = 29 , OVERAFTER_OP = 30 , EVEREQ_OP = 31 ,
  EVERNE_OP = 32 , EVERLT_OP = 33 , EVERLE_OP = 34 , EVERGT_OP = 35 ,
  EVERGE_OP = 36 , ALWAYSEQ_OP = 37 , ALWAYSNE_OP = 38 , ALWAYSLT_OP = 39 ,
  ALWAYSLE_OP = 40 , ALWAYSGT_OP = 41 , ALWAYSGE_OP = 42
}
 Enumeration that defines the classes of Boolean operators used in MobilityDB. More...
 
enum  meosType {
  T_UNKNOWN = 0 , T_BOOL = 1 , T_DATE = 2 , T_DATEMULTIRANGE = 3 ,
  T_DATERANGE = 4 , T_DATESET = 5 , T_DATESPAN = 6 , T_DATESPANSET = 7 ,
  T_DOUBLE2 = 8 , T_DOUBLE3 = 9 , T_DOUBLE4 = 10 , T_FLOAT8 = 11 ,
  T_FLOATSET = 12 , T_FLOATSPAN = 13 , T_FLOATSPANSET = 14 , T_INT4 = 15 ,
  T_INT4MULTIRANGE = 16 , T_INT4RANGE = 17 , T_INTSET = 18 , T_INTSPAN = 19 ,
  T_INTSPANSET = 20 , T_INT8 = 21 , T_INT8MULTIRANGE = 52 , T_INT8RANGE = 53 ,
  T_BIGINTSET = 22 , T_BIGINTSPAN = 23 , T_BIGINTSPANSET = 24 , T_STBOX = 25 ,
  T_TBOOL = 26 , T_TBOX = 27 , T_TDOUBLE2 = 28 , T_TDOUBLE3 = 29 ,
  T_TDOUBLE4 = 30 , T_TEXT = 31 , T_TEXTSET = 32 , T_TFLOAT = 33 ,
  T_TIMESTAMPTZ = 34 , T_TINT = 35 , T_TSTZMULTIRANGE = 36 , T_TSTZRANGE = 37 ,
  T_TSTZSET = 38 , T_TSTZSPAN = 39 , T_TSTZSPANSET = 40 , T_TTEXT = 41 ,
  T_GEOMETRY = 42 , T_GEOMSET = 43 , T_GEOGRAPHY = 44 , T_GEOGSET = 45 ,
  T_TGEOMPOINT = 46 , T_TGEOGPOINT = 47 , T_NPOINT = 48 , T_NPOINTSET = 49 ,
  T_NSEGMENT = 50 , T_TNPOINT = 51 , T_POSE = 54 , T_POSESET = 55 ,
  T_TPOSE = 56 , T_CBUFFER = 57 , T_CBUFFERSET = 58 , T_TCBUFFER = 59 ,
  T_TGEOMETRY = 60 , T_TGEOGRAPHY = 61 , T_TRGEOMETRY = 62
}
 Enumeration that defines the built-in and temporal types used in MobilityDB. More...
 

Functions

bool alphanum_basetype (meosType type)
 Return true if the type is an alphanumeric base type. More...
 
bool alphanum_temptype (meosType type)
 Return true if the type is an alphanumeric base type. More...
 
bool alphanumset_type (meosType settype)
 Return true if the type is a set type. More...
 
bool basetype_byvalue (meosType type)
 Return true if the values of the base type are passed by value. More...
 
int16 basetype_length (meosType type)
 Return the length of a base type. More...
 
meosType basetype_settype (meosType type)
 Return the base type from the set type. More...
 
meosType basetype_spantype (meosType type)
 Return the span type of a base type. More...
 
bool basetype_varlength (meosType type)
 Return true if the values of the base type are of variable length. More...
 
bool ensure_geoset_type (meosType type)
 Ensure that a set value is a geo set. More...
 
bool ensure_numset_type (meosType type)
 Ensure that the type is a number set type. More...
 
bool ensure_numspan_type (meosType type)
 Ensure that a span is a number span type. More...
 
bool ensure_set_spantype (meosType type)
 Ensure that a set value is a set type with a span as a bounding box. More...
 
bool ensure_span_tbox_type (meosType type)
 Return true if the type can be converted to a temporal box. More...
 
bool ensure_spatialset_type (meosType type)
 Ensure that a temporal value is a temporal number. More...
 
bool ensure_tgeo_type (meosType type)
 Ensure that a type is a temporal geo type. More...
 
bool ensure_tgeo_type_all (meosType type)
 Ensure that a type is a temporal type with geometry/geography as base type. More...
 
bool ensure_tgeodetic_type (meosType type)
 Ensure that a type is a temporal geodetic type. More...
 
bool ensure_tgeometry_type (meosType type)
 Ensure that a type is a temporal geometry type. More...
 
bool ensure_timespanset_type (meosType type)
 Ensure that a span is a time span type. More...
 
bool ensure_tnumber_basetype (meosType type)
 Ensure that a type is a temporal number base type. More...
 
bool ensure_tnumber_tpoint_type (meosType type)
 Ensure that a type is a temporal number or a temporal point type. More...
 
bool ensure_tnumber_type (meosType type)
 Ensure that a type is a temporal number. More...
 
bool ensure_tpoint_type (meosType type)
 Ensure that a type is a temporal point type. More...
 
bool ensure_tspatial_type (meosType type)
 Ensure that attype is a spatiotemporal type. More...
 
bool geo_basetype (meosType type)
 Return true if the type is a geo base type. More...
 
bool geoset_type (meosType type)
 Return true if the type is a geo set type. More...
 
interpType interptype_from_string (const char *interp_str)
 Get the interpolation type from the interpolation string. More...
 
const char * interptype_name (interpType interp)
 Return the string representation of the subtype of the temporal type corresponding to the enum value. More...
 
bool meos_basetype (meosType type)
 Return true if the type is a base type of one of the template types, that is, Set, Span, SpanSet, and Temporal. More...
 
meosOper meosoper_from_string (const char *name)
 Fetch the operator number from its name. More...
 
const char * meosoper_name (meosOper oper)
 Return the string name from a MEOS operator number. More...
 
const char * meostype_name (meosType type)
 Return the string representation of the MEOS type. More...
 
bool numset_type (meosType type)
 Return true if the type is a number set type. More...
 
bool numspan_basetype (meosType type)
 Return true if the type is a number span type. More...
 
bool numspan_type (meosType type)
 Return true if the type is a number span type. More...
 
bool set_basetype (meosType type)
 Return true if the type is a base type of a set type. More...
 
bool set_spantype (meosType type)
 Return true if the type is a set type with a span as a bounding box. More...
 
bool set_type (meosType type)
 Return true if the type is a set type. More...
 
meosType settype_basetype (meosType type)
 Return the base type from a set type. More...
 
bool span_basetype (meosType type)
 Return true if the type is a span base type. More...
 
bool span_canon_basetype (meosType type)
 Return true if the type is a canonical base type of a span type. More...
 
bool span_tbox_type (meosType type)
 Return true if the type can be converted to a temporal box. More...
 
bool span_type (meosType type)
 Return true if the type is a span type. More...
 
bool spanset_type (meosType type)
 Return true if the type is a span set type. More...
 
meosType spansettype_spantype (meosType type)
 Return the span type from the span set type. More...
 
meosType spantype_basetype (meosType type)
 Return the base type from the span type. More...
 
meosType spantype_spansettype (meosType type)
 Return the span type from the span set type. More...
 
bool spatial_basetype (meosType type)
 Return true if the type is a spatial base type. More...
 
bool spatialset_type (meosType type)
 Return true if the type is a geo set type. More...
 
bool talpha_type (meosType type)
 Return true if the type is a temporal alpha type (i.e., those whose bounding box is a timestamptz span) More...
 
bool talphanum_type (meosType type)
 Return true if the type is a temporal alphanumeric type. More...
 
bool temporal_basetype (meosType type)
 Return true if the type is a temporal base type. More...
 
bool temporal_type (meosType type)
 Return true if the type is an external temporal type. More...
 
bool tempsubtype_from_string (const char *str, int16 *subtype)
 Return the enum value corresponding to the string representation of the concrete subtype of a temporal type. More...
 
const char * tempsubtype_name (tempSubtype subtype)
 Return the string representation of the subtype of the temporal type corresponding to the enum value. More...
 
meosType temptype_basetype (meosType type)
 Return the base type from the temporal type. More...
 
bool temptype_continuous (meosType type)
 Return true if the type is a temporal continuous type. More...
 
bool temptype_subtype (tempSubtype subtype)
 Ensure that the subtype of a temporal value is valid. More...
 
bool temptype_subtype_all (tempSubtype subtype)
 Ensure that the subtype of a temporal value is valid. More...
 
bool tgeo_type (meosType type)
 Return true if a type is a temporal geo type. More...
 
bool tgeo_type_all (meosType type)
 Return true if a type is a temporal type with geometry/geography as base type. More...
 
bool tgeodetic_type (meosType type)
 Return true if a type is a temporal geodetic type. More...
 
bool tgeometry_type (meosType type)
 Return true if a type is a temporal geometry type. More...
 
bool time_type (meosType type)
 Return true if the type is a time type. More...
 
bool timeset_type (meosType type)
 Return true if the type is a time set type. More...
 
bool timespan_basetype (meosType type)
 Return true if the type is a time span type. More...
 
bool timespan_type (meosType type)
 Return true if the type is a time span type. More...
 
bool timespanset_type (meosType type)
 Return true if the type is a time span type. More...
 
bool tnumber_basetype (meosType type)
 Return true if the type is a temporal number base type. More...
 
bool tnumber_spantype (meosType type)
 Return true if the type is a span number type. More...
 
bool tnumber_type (meosType type)
 Return true if the type is a temporal number type. More...
 
bool tpoint_type (meosType type)
 Return true if a type is a temporal point type. More...
 
bool tspatial_type (meosType type)
 Return true if a type is a spatiotemporal type. More...
 
bool type_span_bbox (meosType type)
 Return true if the type has a span type as bounding box. More...