CUBRID Engine  latest
load_object_table.c File Reference
#include "config.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "db.h"
#include "load_object_table.h"
#include "memory_alloc.h"
#include "message_catalog.h"
#include "oid.h"
#include "porting.h"
#include "utility.h"
#include "work_space.h"
Include dependency graph for load_object_table.c:

Go to the source code of this file.

Functions

CLASS_TABLEotable_find_class (MOP class_)
 
static void flush_class_tables ()
 
static void init_instance_table (CLASS_TABLE *table)
 
static int realloc_instance_table (CLASS_TABLE *table, int newcount)
 
static int grow_instance_table (CLASS_TABLE *table, int id)
 
INST_INFOotable_find (CLASS_TABLE *table, int id)
 
int otable_insert (CLASS_TABLE *table, OID *instance, int id)
 
int otable_reserve (CLASS_TABLE *table, OID *instance, int id)
 
void otable_class_att_ref (INST_INFO *inst)
 
int otable_update (CLASS_TABLE *table, int id)
 
int otable_map_reserved (OTABLE_MAPFUNC mapfunc, int stop_on_error)
 
void otable_set_presize (CLASS_TABLE *table, int id)
 
int otable_init (void)
 
int otable_prepare (void)
 
void otable_final (void)
 

Variables

CLASS_TABLEClasses = NULL
 

Function Documentation

static void flush_class_tables ( )
static

Definition at line 84 of file load_object_table.c.

References free_and_init, class_table::instances, class_table::next, and NULL.

Referenced by otable_final().

Here is the caller graph for this function:

static int grow_instance_table ( CLASS_TABLE table,
int  id 
)
static

Definition at line 163 of file load_object_table.c.

References realloc_instance_table().

Referenced by otable_insert(), and otable_reserve().

Here is the caller graph for this function:

static void init_instance_table ( CLASS_TABLE table)
static

Definition at line 107 of file load_object_table.c.

References class_table::count, instance_info::flags, i, class_table::instances, instance_info::oid, and OID_SET_NULL.

Referenced by otable_prepare().

Here is the caller graph for this function:

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  )
void otable_set_presize ( CLASS_TABLE table,
int  id 
)

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:

static int realloc_instance_table ( CLASS_TABLE table,
int  newcount 
)
static

Variable Documentation

CLASS_TABLE* Classes = NULL

Definition at line 38 of file load_object_table.c.

Referenced by ldr_update_statistics(), and otable_find_class().