CUBRID Engine  latest
load_object_table.h File Reference
#include "oid.h"
#include "work_space.h"
Include dependency graph for load_object_table.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  instance_info
 
struct  class_table
 

Macros

#define INST_FLAG_RESERVED   1
 
#define INST_FLAG_INSERTED   2
 
#define INST_FLAG_CLASS_ATT   4
 

Typedefs

typedef struct instance_info INST_INFO
 
typedef struct class_table CLASS_TABLE
 
typedef int(* OTABLE_MAPFUNC) (CLASS_TABLE *class_, OID *oid)
 

Functions

int otable_presize (MOP class_, int size)
 
void otable_set_presize (CLASS_TABLE *table, int size)
 
int otable_insert (CLASS_TABLE *table, OID *instance, int id)
 
int otable_reserve (CLASS_TABLE *table, OID *instance, int id)
 
int otable_update (CLASS_TABLE *table, int id)
 
void otable_class_att_ref (INST_INFO *inst)
 
CLASS_TABLEotable_find_class (MOP class_)
 
INST_INFOotable_find (CLASS_TABLE *table, int id)
 
int otable_prepare (void)
 
int otable_init (void)
 
void otable_final (void)
 
int otable_map_reserved (OTABLE_MAPFUNC mapfunc, int stop_on_error)
 

Variables

CLASS_TABLEClasses
 

Macro Definition Documentation

#define INST_FLAG_CLASS_ATT   4

Definition at line 36 of file load_object_table.h.

Referenced by ldr_reset_context(), and otable_class_att_ref().

#define INST_FLAG_INSERTED   2

Definition at line 35 of file load_object_table.h.

Referenced by otable_insert(), otable_reserve(), and otable_update().

#define INST_FLAG_RESERVED   1

Typedef Documentation

typedef struct class_table CLASS_TABLE

Definition at line 57 of file load_object_table.h.

typedef struct instance_info INST_INFO

Definition at line 45 of file load_object_table.h.

typedef int(* OTABLE_MAPFUNC) (CLASS_TABLE *class_, OID *oid)

Definition at line 71 of file load_object_table.h.

Function Documentation

void otable_class_att_ref ( INST_INFO inst)

Definition at line 272 of file load_object_table.c.

References instance_info::flags, and INST_FLAG_CLASS_ATT.

Referenced by find_instance().

Here is the caller graph for this function:

void otable_final ( void  )

Definition at line 406 of file load_object_table.c.

References flush_class_tables().

Referenced by ldr_final().

Here is the caller graph for this function:

INST_INFO* otable_find ( CLASS_TABLE table,
int  id 
)

Definition at line 175 of file load_object_table.c.

References class_table::count, instance_info::flags, class_table::instances, and NULL.

Referenced by find_instance(), insert_instance(), insert_meth_instance(), ldr_assign_all_perm_oids(), and ldr_reset_context().

Here is the caller graph for this function:

int otable_init ( void  )

Definition at line 358 of file load_object_table.c.

References NO_ERROR, and NULL.

Referenced by ldr_init().

Here is the caller graph for this function:

int otable_map_reserved ( OTABLE_MAPFUNC  mapfunc,
int  stop_on_error 
)

Definition at line 308 of file load_object_table.c.

References class_table::count, error(), instance_info::flags, i, INST_FLAG_RESERVED, class_table::instances, class_table::next, NO_ERROR, and NULL.

Referenced by update_default_instances_stats().

Here is the caller graph for this function:

int otable_prepare ( void  )
int otable_presize ( MOP  class_,
int  size 
)
void otable_set_presize ( CLASS_TABLE table,
int  size 
)

Definition at line 345 of file load_object_table.c.

References NULL, and class_table::presize.

int otable_update ( CLASS_TABLE table,
int  id 
)

Definition at line 289 of file load_object_table.c.

References class_table::count, instance_info::flags, INST_FLAG_INSERTED, class_table::instances, and NO_ERROR.

Referenced by insert_instance().

Here is the caller graph for this function:

Variable Documentation

CLASS_TABLE* Classes

Definition at line 38 of file load_object_table.c.

Referenced by ldr_update_statistics(), and otable_find_class().