Skip to content

Struct pr_type

ClassList > pr_type

  • #include <object_primitive.h>

Public Types

Type Name
typedef DB_VALUE_COMPARE_RESULT(* cmpval_function_type
typedef DB_VALUE_COMPARE_RESULT(* data_cmpdisk_function_type
typedef int(* data_lengthmem_function_type
typedef int(* data_lengthval_function_type
typedef void(* data_readmem_function_type
typedef int(* data_readval_function_type
typedef void(* data_writemem_function_type
typedef int(* data_writeval_function_type
typedef void(* freemem_function_type
typedef int(* getmem_function_type
typedef DB_VALUE_COMPARE_RESULT(* index_cmpdisk_function_type
typedef int(* index_lengthmem_function_type
typedef int(* index_lengthval_function_type
typedef int(* index_readval_function_type
typedef int(* index_writeval_function_type
typedef void(* initmem_function_type
typedef void(* initval_function_type
typedef int(* setmem_function_type
typedef int(* setval_function_type

Public Attributes

Type Name
int alignment
int disksize
DB_TYPE id
const char * name
int size
int variable_p

Public Functions

Type Name
DB_VALUE_COMPARE_RESULT cmpval (const DB_VALUE * value, const DB_VALUE * value2, int do_coercion, int total_order, int * start_colp, int collation) const
DB_VALUE_COMPARE_RESULT data_cmpdisk (const void * memptr1, const void * memptr2, const tp_domain * domain, int do_coercion, int total_order, int * start_colp) const
void data_readmem (struct or_buf * buf, void * memptr, const tp_domain * domain, int size) const
int data_readval (struct or_buf * buf, DB_VALUE * value, const tp_domain * domain, int size, bool copy, char * copy_buf, int copy_buf_len) const
void data_writemem (struct or_buf * buf, const void * memptr, const tp_domain * domain) const
int data_writeval (struct or_buf * buf, const DB_VALUE * value) const
void freemem (void * memptr) const
size_t get_alignment () const
cmpval_function_type get_cmpval_function () const
data_cmpdisk_function_type get_data_cmpdisk_function () const
int get_disk_size_of_mem (const void * mem, const tp_domain * domain=NULL) const
int get_disk_size_of_value (const DB_VALUE * value) const
DB_TYPE get_id () const
int get_index_size_of_mem (const void * memptr, const tp_domain * domain) const
int get_index_size_of_value (const DB_VALUE * value) const
int get_mem_size_of_mem (const void * mem, const tp_domain * domain=NULL) const
int get_mem_size_of_value (const DB_VALUE * value) const
const char * get_name () const
int getmem (void * memptr, const tp_domain * domain, DB_VALUE * value, bool copy=true) const
DB_VALUE_COMPARE_RESULT index_cmpdisk (const void * memptr1, const void * memptr2, const tp_domain * domain, int do_coercion, int total_order, int * start_colp) const
int index_readval (struct or_buf * buf, DB_VALUE * value, const tp_domain * domain, int size, bool copy, char * copy_buf, int copy_buf_len) const
int index_writeval (struct or_buf * buf, const DB_VALUE * value) const
void initmem (void * memptr, const tp_domain * domain) const
void initval (DB_VALUE * value, int precision, int scale) const
bool is_always_variable () const
bool is_size_computed () const
pr_type () = delete
pr_type (const char * name_arg, DB_TYPE id_arg, int varp_arg, int size_arg, int disksize_arg, int align_arg, initmem_function_type initmem_f_arg, initval_function_type initval_f_arg, setmem_function_type setmem_f_arg, getmem_function_type getmem_f_arg, setval_function_type setval_f_arg, data_lengthmem_function_type data_lengthmem_f_arg, data_lengthval_function_type data_lengthval_f_arg, data_writemem_function_type data_writemem_f_arg, data_readmem_function_type data_readmem_f_arg, data_writeval_function_type data_writeval_f_arg, data_readval_function_type data_readval_f_arg, index_lengthmem_function_type index_lengthmem_f_arg, index_lengthval_function_type index_lengthval_f_arg, index_writeval_function_type index_writeval_f_arg, index_readval_function_type index_readval_f_arg, index_cmpdisk_function_type index_cmpdisk_f_arg, freemem_function_type freemem_f_arg, data_cmpdisk_function_type data_cmpdisk_f_arg, cmpval_function_type cmpval_f_arg)
void set_cmpval_function (cmpval_function_type cmpval_arg)
void set_data_cmpdisk_function (data_cmpdisk_function_type data_cmpdisk_arg)
int setmem (void * memptr, const tp_domain * domain, const DB_VALUE * value) const
int setval (DB_VALUE * dest, const DB_VALUE * src, bool copy) const

Protected Attributes

Type Name
cmpval_function_type f_cmpval
data_cmpdisk_function_type f_data_cmpdisk
data_lengthmem_function_type f_data_lengthmem
data_lengthval_function_type f_data_lengthval
data_readmem_function_type f_data_readmem
data_readval_function_type f_data_readval
data_writemem_function_type f_data_writemem
data_writeval_function_type f_data_writeval
freemem_function_type f_freemem
getmem_function_type f_getmem
index_cmpdisk_function_type f_index_cmpdisk
index_lengthmem_function_type f_index_lengthmem
index_lengthval_function_type f_index_lengthval
index_readval_function_type f_index_readval
index_writeval_function_type f_index_writeval
initmem_function_type f_initmem
initval_function_type f_initval
setmem_function_type f_setmem
setval_function_type f_setval

Public Types Documentation

typedef cmpval_function_type

typedef DB_VALUE_COMPARE_RESULT(* pr_type::cmpval_function_type) (DB_VALUE *value, DB_VALUE *value2, int do_coercion, int total_order, int *start_colp, int collation);

typedef data_cmpdisk_function_type

typedef DB_VALUE_COMPARE_RESULT(* pr_type::data_cmpdisk_function_type) (void *memptr1, void *memptr2, tp_domain *domain, int do_coercion, int total_order, int *start_colp);

typedef data_lengthmem_function_type

typedef int(* pr_type::data_lengthmem_function_type) (void *memptr, struct tp_domain *domain, int disk);

typedef data_lengthval_function_type

typedef int(* pr_type::data_lengthval_function_type) (DB_VALUE *value, int disk);

typedef data_readmem_function_type

typedef void(* pr_type::data_readmem_function_type) (struct or_buf *buf, void *memptr, struct tp_domain *domain, int size);

typedef data_readval_function_type

typedef int(* pr_type::data_readval_function_type) (struct or_buf *buf, DB_VALUE *value, struct tp_domain *domain, int size, bool copy, char *copy_buf, int copy_buf_len);

typedef data_writemem_function_type

typedef void(* pr_type::data_writemem_function_type) (struct or_buf *buf, void *memptr, struct tp_domain *domain);

typedef data_writeval_function_type

typedef int(* pr_type::data_writeval_function_type) (struct or_buf *buf, DB_VALUE *value);

typedef freemem_function_type

typedef void(* pr_type::freemem_function_type) (void *memptr);

typedef getmem_function_type

typedef int(* pr_type::getmem_function_type) (void *memptr, struct tp_domain *domain, DB_VALUE *value, bool copy);

typedef index_cmpdisk_function_type

typedef DB_VALUE_COMPARE_RESULT(* pr_type::index_cmpdisk_function_type) (void *memptr1, void *memptr2, struct tp_domain *domain, int do_coercion, int total_order, int *start_colp);

typedef index_lengthmem_function_type

typedef int(* pr_type::index_lengthmem_function_type) (void *memptr, struct tp_domain *domain);

typedef index_lengthval_function_type

typedef int(* pr_type::index_lengthval_function_type) (DB_VALUE *value);

typedef index_readval_function_type

typedef int(* pr_type::index_readval_function_type) (struct or_buf *buf, DB_VALUE *value, struct tp_domain *domain, int size, bool copy, char *copy_buf, int copy_buf_len);

typedef index_writeval_function_type

typedef int(* pr_type::index_writeval_function_type) (struct or_buf *buf, DB_VALUE *value);

typedef initmem_function_type

typedef void(* pr_type::initmem_function_type) (void *memptr, struct tp_domain *domain);

typedef initval_function_type

typedef void(* pr_type::initval_function_type) (DB_VALUE *value, int precision, int scale);

typedef setmem_function_type

typedef int(* pr_type::setmem_function_type) (void *memptr, struct tp_domain *domain, DB_VALUE *value);

typedef setval_function_type

typedef int(* pr_type::setval_function_type) (DB_VALUE *dest, const DB_VALUE *src, bool copy);

Public Attributes Documentation

variable alignment

int pr_type::alignment;

variable disksize

int pr_type::disksize;

variable id

DB_TYPE pr_type::id;

variable name

const char* pr_type::name;

variable size

int pr_type::size;

variable variable_p

int pr_type::variable_p;

Public Functions Documentation

function cmpval

inline DB_VALUE_COMPARE_RESULT pr_type::cmpval (
    const  DB_VALUE * value,
    const  DB_VALUE * value2,
    int do_coercion,
    int total_order,
    int * start_colp,
    int collation
) const

function data_cmpdisk

inline DB_VALUE_COMPARE_RESULT pr_type::data_cmpdisk (
    const  void * memptr1,
    const  void * memptr2,
    const  tp_domain * domain,
    int do_coercion,
    int total_order,
    int * start_colp
) const

function data_readmem

inline void pr_type::data_readmem (
    struct  or_buf * buf,
    void * memptr,
    const  tp_domain * domain,
    int size
) const

function data_readval

inline int pr_type::data_readval (
    struct  or_buf * buf,
    DB_VALUE * value,
    const  tp_domain * domain,
    int size,
    bool copy,
    char * copy_buf,
    int copy_buf_len
) const

function data_writemem

inline void pr_type::data_writemem (
    struct  or_buf * buf,
    const  void * memptr,
    const  tp_domain * domain
) const

function data_writeval

inline int pr_type::data_writeval (
    struct  or_buf * buf,
    const  DB_VALUE * value
) const

function freemem

inline void pr_type::freemem (
    void * memptr
) const

function get_alignment

inline size_t pr_type::get_alignment () const

function get_cmpval_function

cmpval_function_type pr_type::get_cmpval_function () const

function get_data_cmpdisk_function

data_cmpdisk_function_type pr_type::get_data_cmpdisk_function () const

function get_disk_size_of_mem

inline int pr_type::get_disk_size_of_mem (
    const  void * mem,
    const  tp_domain * domain=NULL
) const

function get_disk_size_of_value

inline int pr_type::get_disk_size_of_value (
    const  DB_VALUE * value
) const

function get_id

inline DB_TYPE pr_type::get_id () const

function get_index_size_of_mem

inline int pr_type::get_index_size_of_mem (
    const  void * memptr,
    const  tp_domain * domain
) const

function get_index_size_of_value

inline int pr_type::get_index_size_of_value (
    const  DB_VALUE * value
) const

function get_mem_size_of_mem

inline int pr_type::get_mem_size_of_mem (
    const  void * mem,
    const  tp_domain * domain=NULL
) const

function get_mem_size_of_value

inline int pr_type::get_mem_size_of_value (
    const  DB_VALUE * value
) const

function get_name

inline const  char * pr_type::get_name () const

function getmem

inline int pr_type::getmem (
    void * memptr,
    const  tp_domain * domain,
    DB_VALUE * value,
    bool copy=true
) const

function index_cmpdisk

inline DB_VALUE_COMPARE_RESULT pr_type::index_cmpdisk (
    const  void * memptr1,
    const  void * memptr2,
    const  tp_domain * domain,
    int do_coercion,
    int total_order,
    int * start_colp
) const

function index_readval

inline int pr_type::index_readval (
    struct  or_buf * buf,
    DB_VALUE * value,
    const  tp_domain * domain,
    int size,
    bool copy,
    char * copy_buf,
    int copy_buf_len
) const

function index_writeval

inline int pr_type::index_writeval (
    struct  or_buf * buf,
    const  DB_VALUE * value
) const

function initmem

inline void pr_type::initmem (
    void * memptr,
    const  tp_domain * domain
) const

function initval

inline void pr_type::initval (
    DB_VALUE * value,
    int precision,
    int scale
) const

function is_always_variable

inline bool pr_type::is_always_variable () const

function is_size_computed

inline bool pr_type::is_size_computed () const

function pr_type [1/2]

pr_type::pr_type () = delete

function pr_type [2/2]

pr_type::pr_type (
    const  char * name_arg,
    DB_TYPE id_arg,
    int varp_arg,
    int size_arg,
    int disksize_arg,
    int align_arg,
    initmem_function_type initmem_f_arg,
    initval_function_type initval_f_arg,
    setmem_function_type setmem_f_arg,
    getmem_function_type getmem_f_arg,
    setval_function_type setval_f_arg,
    data_lengthmem_function_type data_lengthmem_f_arg,
    data_lengthval_function_type data_lengthval_f_arg,
    data_writemem_function_type data_writemem_f_arg,
    data_readmem_function_type data_readmem_f_arg,
    data_writeval_function_type data_writeval_f_arg,
    data_readval_function_type data_readval_f_arg,
    index_lengthmem_function_type index_lengthmem_f_arg,
    index_lengthval_function_type index_lengthval_f_arg,
    index_writeval_function_type index_writeval_f_arg,
    index_readval_function_type index_readval_f_arg,
    index_cmpdisk_function_type index_cmpdisk_f_arg,
    freemem_function_type freemem_f_arg,
    data_cmpdisk_function_type data_cmpdisk_f_arg,
    cmpval_function_type cmpval_f_arg
) 

function set_cmpval_function

void pr_type::set_cmpval_function (
    cmpval_function_type cmpval_arg
) 

function set_data_cmpdisk_function

void pr_type::set_data_cmpdisk_function (
    data_cmpdisk_function_type data_cmpdisk_arg
) 

function setmem

inline int pr_type::setmem (
    void * memptr,
    const  tp_domain * domain,
    const  DB_VALUE * value
) const

function setval

inline int pr_type::setval (
    DB_VALUE * dest,
    const  DB_VALUE * src,
    bool copy
) const

Protected Attributes Documentation

variable f_cmpval

cmpval_function_type pr_type::f_cmpval;

variable f_data_cmpdisk

data_cmpdisk_function_type pr_type::f_data_cmpdisk;

variable f_data_lengthmem

data_lengthmem_function_type pr_type::f_data_lengthmem;

variable f_data_lengthval

data_lengthval_function_type pr_type::f_data_lengthval;

variable f_data_readmem

data_readmem_function_type pr_type::f_data_readmem;

variable f_data_readval

data_readval_function_type pr_type::f_data_readval;

variable f_data_writemem

data_writemem_function_type pr_type::f_data_writemem;

variable f_data_writeval

data_writeval_function_type pr_type::f_data_writeval;

variable f_freemem

freemem_function_type pr_type::f_freemem;

variable f_getmem

getmem_function_type pr_type::f_getmem;

variable f_index_cmpdisk

index_cmpdisk_function_type pr_type::f_index_cmpdisk;

variable f_index_lengthmem

index_lengthmem_function_type pr_type::f_index_lengthmem;

variable f_index_lengthval

index_lengthval_function_type pr_type::f_index_lengthval;

variable f_index_readval

index_readval_function_type pr_type::f_index_readval;

variable f_index_writeval

index_writeval_function_type pr_type::f_index_writeval;

variable f_initmem

initmem_function_type pr_type::f_initmem;

variable f_initval

initval_function_type pr_type::f_initval;

variable f_setmem

setmem_function_type pr_type::f_setmem;

variable f_setval

setval_function_type pr_type::f_setval;


The documentation for this class was generated from the following file cubrid/src/object/object_primitive.h