ARB
|
Go to the source code of this file.
|
inline |
Definition at line 19 of file ad_core.cxx.
References gb_check_in_undo_delete(), gb_delete_entry(), and GB_MAIN_TYPE::undo_type.
Referenced by gb_commit_transaction_local_rek().
|
inline |
Definition at line 23 of file ad_core.cxx.
References gb_check_in_undo_create(), and GB_MAIN_TYPE::undo_type.
Referenced by gb_commit_transaction_local_rek().
|
inline |
Definition at line 26 of file ad_core.cxx.
References gb_check_in_undo_modify(), and GB_MAIN_TYPE::undo_type.
Referenced by gb_commit_transaction_local_rek().
Definition at line 83 of file ad_core.cxx.
References GBDATA::flags2, GB_ARRAY_FLAGS(), GB_FATHER(), GB_SON_CHANGED, gb_header_flags::inc_change(), GBDATA::index, GBCONTAINER::set_touched_idx(), and gb_flag_types2::update_in_server.
Referenced by GB_clear_temporary(), gb_copy_explicit(), gb_create(), gb_create_container(), GB_delete(), gb_delete_force(), GB_resort_data_base(), GB_set_temporary(), GB_touch(), gb_touch_header(), GB_write_bits(), GB_write_byte(), gb_write_compressed_pntr(), GB_write_flag(), GB_write_float(), GB_write_int(), GB_write_pntr(), GB_write_pointer(), GB_write_security_delete(), GB_write_security_levels(), GB_write_security_read(), GB_write_security_write(), gbcm_read_bin(), and undo_entry().
void gb_touch_header | ( | GBCONTAINER * | gbc | ) |
Definition at line 108 of file ad_core.cxx.
References GBDATA::flags2, GB_NORMAL_CHANGE, gb_touch_entry(), and gb_flag_types2::header_changed.
Referenced by gb_create(), gb_create_container(), GB_write_flag(), gbcm_read_bin(), and undo_entry().
void gb_untouch_children | ( | GBCONTAINER * | gbc | ) |
Definition at line 114 of file ad_core.cxx.
References GBDATA::as_container(), gb_header_flags::changed, GBCONTAINER::d, gb_header_list::flags, flags, GBDATA::flags2, GB_DATA_LIST_HEADER(), GB_DELETED, GB_HEADER_LIST_GBD(), GB_UNCHANGED, gb_untouch_children(), if, GBCONTAINER::index_of_touched_one_son, GBDATA::is_container(), gb_data_list::nheader, start, and gb_flag_types2::update_in_server.
Referenced by gb_unfold(), gb_untouch_children(), and gb_untouch_children_and_me().
void gb_untouch_me | ( | GBENTRY * | gbe | ) |
Definition at line 149 of file ad_core.cxx.
References gb_header_flags::changed, gb_header_list::flags, GB_DATA_LIST_HEADER(), GB_FATHER(), GB_UNCHANGED, and GBDATA::index.
Referenced by gb_unfold(), and gb_untouch_children_and_me().
|
inline |
Definition at line 152 of file ad_core.cxx.
References gb_header_flags::changed, gb_header_list::flags, GBDATA::flags2, GB_DATA_LIST_HEADER(), GB_FATHER(), GB_UNCHANGED, gb_flag_types2::header_changed, GBDATA::index, and GBCONTAINER::index_of_touched_one_son.
void gb_untouch_children_and_me | ( | GBCONTAINER * | gbc | ) |
Definition at line 159 of file ad_core.cxx.
References gb_untouch_children(), and gb_untouch_me().
Referenced by GB_MAIN_TYPE::abort_transaction(), GB_MAIN_TYPE::commit_transaction(), and gb_unfold().
|
static |
Definition at line 164 of file ad_core.cxx.
References GBDATA::as_container(), GBCONTAINER::d, GBDATA::flags2, GBCONTAINER_ELEM(), GBDATA::is_container(), gb_data_list::nheader, and gb_flag_types2::update_in_server.
Referenced by gb_commit_transaction_local_rek().
void gb_create_header_array | ( | GBCONTAINER * | gbc, |
int | size | ||
) |
Definition at line 176 of file ad_core.cxx.
References GBCONTAINER::d, gb_header_list::flags, gb_assert, GB_DATA_LIST_HEADER(), GB_HEADER_LIST_GBD(), GB_read_clients(), gbm_free_mem(), gbm_get_mem(), GBM_HEADER_INDEX, GBTUM_MAGIC_NUMBER, gb_data_list::headermemsize, arb_test::nl(), GBDATA::server_id, SET_GB_DATA_LIST_HEADER(), and SET_GB_HEADER_LIST_GBD().
Referenced by gb_clone_explicit(), gb_link_entry(), gb_read_bin_rek_V2(), gb_unfold(), and gbcm_read_bin().
|
static |
Definition at line 207 of file ad_core.cxx.
References gb_header_flags::changed, GBCONTAINER::d, gb_header_list::flags, gb_create_header_array(), GB_DATA_LIST_HEADER(), GB_DELETED, GB_internal_error(), GBCONTAINER_ELEM(), GBDATA::index, gb_data_list::nheader, SET_GB_FATHER(), SET_GBCONTAINER_ELEM(), and gb_data_list::size.
Referenced by gb_make_container(), gb_make_entry(), gb_make_pre_defined_container(), and gb_make_pre_defined_entry().
|
static |
Definition at line 247 of file ad_core.cxx.
References GBCONTAINER::d, father, GB_DATA_LIST_HEADER(), GB_DELETED, GB_FATHER(), GBDATA::index, NULp, SET_GB_FATHER(), SET_GB_HEADER_LIST_GBD(), and gb_data_list::size.
Referenced by gb_pre_delete_entry().
GBDATA* gb_make_pre_defined_entry | ( | GBCONTAINER * | father, |
GBDATA * | gbd, | ||
long | index_pos, | ||
GBQUARK | keyq | ||
) |
Definition at line 327 of file ad_core.cxx.
References GB_MAIN_TYPE::clock, GBDATA::create_extended(), gb_link_entry(), gb_write_index_key(), GBCONTAINER_MAIN(), GBTUM_MAGIC_NUMBER, GBDATA::index, GB_MAIN_TYPE::is_server(), GBDATA::server_id, SET_GB_FATHER(), and GBDATA::touch_creation().
Referenced by undo_entry().
Definition at line 346 of file ad_core.cxx.
References gb_create_key(), GB_FATHER(), GB_MAIN(), gb_write_index_key(), GBS_read_hash(), GBDATA::index, and GB_MAIN_TYPE::key_2_index_hash.
Referenced by gb_make_container(), and gb_make_entry().
GBENTRY* gb_make_entry | ( | GBCONTAINER * | father, |
const char * | key, | ||
long | index_pos, | ||
GBQUARK | keyq, | ||
GB_TYPES | type | ||
) |
Definition at line 353 of file ad_core.cxx.
References GB_MAIN_TYPE::clock, GBDATA::create_extended(), GBDATA::flags, gb_find_or_create_quark(), GB_GBM_INDEX, gb_link_entry(), GB_OBSOLETE, GB_STRING, GB_STRING_SHRT, gb_write_index_key(), gb_write_key(), GBCONTAINER_MAIN(), gbm_get_mem(), GBTUM_MAGIC_NUMBER, GBDATA::index, GBENTRY::insert_data(), GB_MAIN_TYPE::is_server(), quark2gbmindex(), GBDATA::server_id, SET_GB_FATHER(), gb_flag_types::temporary, GBDATA::touch_creation(), gb_flag_types::type, and type.
Referenced by gb_create(), gb_parse_ascii_rek(), gb_read_bin_rek_V2(), and gbcm_read_bin().
GBCONTAINER* gb_make_pre_defined_container | ( | GBCONTAINER * | father, |
GBCONTAINER * | gbc, | ||
long | index_pos, | ||
GBQUARK | keyq | ||
) |
Definition at line 395 of file ad_core.cxx.
References GB_MAIN_TYPE::clock, GBDATA::create_extended(), gb_link_entry(), gb_write_index_key(), GBCONTAINER_MAIN(), GBTUM_MAGIC_NUMBER, if, GBDATA::index, GB_MAIN_TYPE::is_server(), GBCONTAINER::main_idx, GBDATA::server_id, SET_GB_FATHER(), and GBDATA::touch_creation().
Referenced by undo_entry().
GBCONTAINER* gb_make_container | ( | GBCONTAINER * | father, |
const char * | key, | ||
long | index_pos, | ||
GBQUARK | keyq | ||
) |
Definition at line 414 of file ad_core.cxx.
References GB_MAIN_TYPE::clock, GBDATA::create_extended(), GBDATA::flags, GB_DB, gb_find_or_create_NULL_quark(), GB_GBM_INDEX, gb_link_entry(), gb_write_index_key(), gb_write_key(), GBCONTAINER_MAIN(), gbm_get_mem(), GBTUM_MAGIC_NUMBER, if, GBDATA::index, GB_MAIN_TYPE::is_server(), GBCONTAINER::main_idx, quark2gbmindex(), GBDATA::server_id, SET_GB_FATHER(), GBDATA::touch_creation(), and gb_flag_types::type.
Referenced by gb_create_container(), GB_login(), gb_parse_ascii_rek(), gb_read_bin_rek_V2(), and gbcm_read_bin().
void gb_pre_delete_entry | ( | GBDATA * | gbd | ) |
Definition at line 445 of file ad_core.cxx.
References GBDATA::as_entry(), GBDATA::destroy_extended(), GB_BITS, GB_DB, GB_FATHER(), gb_free_cache(), GB_FREE_TRANSACTION_SAVE(), GB_MAIN_NO_FATHER(), gb_unlink_entry(), gb_write_index_key(), GBS_write_numhash(), GBDATA::index, GB_MAIN_TYPE::is_client(), GB_MAIN_TYPE::remote_hash, GBDATA::server_id, GB_MAIN_TYPE::trigger_delete_callbacks(), and GBDATA::type().
Referenced by gb_check_in_undo_delete(), and gb_delete_entry().
|
static |
Definition at line 473 of file ad_core.cxx.
References GBCONTAINER::d, gb_assert, GB_DATA_LIST_HEADER(), GB_DB, gb_destroy_indices(), GB_GBM_INDEX, gb_pre_delete_entry(), GBCONTAINER_ELEM(), gbm_free_mem(), GBM_HEADER_INDEX, gb_data_list::headermemsize, gb_data_list::nheader, NULp, SET_GBCONTAINER_ELEM(), and GBDATA::type().
Referenced by _GB_CHECK_IN_UNDO_DELETE(), gb_abort_transaction_local_rek(), gb_check_in_undo_delete(), gb_commit_transaction_local_rek(), GB_delete(), gb_delete_dummy_father(), gb_delete_entry(), gb_delete_main_entry(), gb_read_bin_rek_V2(), GB_release(), and gbcmc_begin_transaction().
|
static |
Definition at line 501 of file ad_core.cxx.
References GBENTRY::free_data(), GB_BITS, GB_GBM_INDEX, gb_pre_delete_entry(), gbm_free_mem(), NULp, and GBDATA::type().
void gb_delete_entry | ( | GBDATA *& | gbd | ) |
Definition at line 511 of file ad_core.cxx.
References gb_delete_entry(), and GBDATA::is_container().
|
static |
Definition at line 520 of file ad_core.cxx.
References GBCONTAINER::d, gb_delete_entry(), GB_KEY_QUARK(), GB_MAIN(), GB_SYSTEM_FOLDER, GBCONTAINER_ELEM(), key2quark(), gb_data_list::nheader, NULp, and SET_GBCONTAINER_ELEM().
Referenced by gb_delete_dummy_father().
void gb_delete_dummy_father | ( | GBCONTAINER *& | gbc | ) |
Definition at line 542 of file ad_core.cxx.
References GBDATA::as_container(), GBCONTAINER::d, gb_assert, gb_delete_entry(), gb_delete_main_entry(), GB_FATHER(), gb_main, GB_MAIN(), GBCONTAINER_ELEM(), gb_data_list::nheader, NULp, GB_MAIN_TYPE::root_container, and SET_GBCONTAINER_ELEM().
Referenced by GB_close(), and GB_login().
|
static |
Definition at line 565 of file ad_core.cxx.
References gb_extern_data2::data, gb_data_base_type_union2::ex, gb_data_base_type_union::ex, gb_transaction_save::flags, GBDATA::flags, gb_transaction_save::flags2, GBDATA::flags2, GBM_CB_INDEX, gbm_get_mem(), gb_extern_data::get_data(), gb_transaction_save::info, GBENTRY::info, gb_extern_data::memsize, gb_extern_data2::memsize, gb_transaction_save::refcount, gb_extern_data::size, gb_extern_data2::size, and GBENTRY::stored_external().
Referenced by gb_save_extern_data_in_ts().
void gb_add_ref_gb_transaction_save | ( | gb_transaction_save * | ts | ) |
Definition at line 586 of file ad_core.cxx.
References gb_transaction_save::refcount.
Referenced by gb_check_in_undo_modify(), and gb_triggered_callback::gb_triggered_callback().
void gb_del_ref_gb_transaction_save | ( | gb_transaction_save * | ts | ) |
Definition at line 591 of file ad_core.cxx.
References gb_extern_data2::data, gb_data_base_type_union2::ex, gb_transaction_save::flags2, GBM_CB_INDEX, gbm_free_mem(), gb_flag_types2::gbm_index, gb_transaction_save::info, gb_extern_data2::memsize, gb_transaction_save::refcount, and gb_transaction_save::stored_external().
Referenced by delete_g_b_undo_entry(), gb_del_ref_and_extern_gb_transaction_save(), GB_FREE_TRANSACTION_SAVE(), and gb_triggered_callback::~gb_triggered_callback().
void gb_del_ref_and_extern_gb_transaction_save | ( | gb_transaction_save * | ts | ) |
Definition at line 606 of file ad_core.cxx.
References gb_extern_data2::data, gb_data_base_type_union2::ex, gb_del_ref_gb_transaction_save(), gb_transaction_save::info, NULp, and gb_transaction_save::stored_external().
Referenced by gb_abortdata(), and undo_entry().
|
static |
Definition at line 614 of file ad_core.cxx.
References gb_extern_data2::data, gb_data_base_type_union2::ex, gb_data_base_type_union::ex, GBDATA::ext, gb_transaction_save::flags, GBDATA::flags, gb_transaction_save::flags2, GBDATA::flags2, gb_assert, gb_del_ref_and_extern_gb_transaction_save(), GBENTRY::index_check_out(), GBENTRY::index_re_check_in(), gb_transaction_save::info, GBENTRY::info, gb_extern_data::memsize, gb_extern_data2::memsize, NULp, gb_db_extended::old, gb_extern_data::set_data(), gb_extern_data::size, gb_extern_data2::size, and gb_transaction_save::stored_external().
Referenced by gb_abort_entry().
void gb_save_extern_data_in_ts | ( | GBENTRY * | gbe | ) |
Definition at line 639 of file ad_core.cxx.
References GBDATA::create_extended(), gb_data_base_type_union::ex, GBDATA::ext, GBENTRY::free_data(), GB_ARRAY_FLAGS(), GB_CREATED, gb_new_gb_transaction_save(), GBENTRY::index_check_out(), GBENTRY::info, NULp, gb_db_extended::old, and gb_extern_data::set_data().
Referenced by gb_copy_explicit(), gb_save_extern_data_in_ts__and_uncache(), GB_write_byte(), GB_write_float(), GB_write_int(), GB_write_pointer(), gbcm_read_bin(), GB_MAIN_TYPE::trigger_delete_callbacks(), and undo_entry().
void gb_write_index_key | ( | GBCONTAINER * | father, |
long | index, | ||
GBQUARK | new_index | ||
) |
Definition at line 660 of file ad_core.cxx.
References GBDATA::as_entry(), GBCONTAINER::d, gb_header_list::flags, GBDATA::flags2, GB_DATA_LIST_HEADER(), GB_FATHER(), GB_HEADER_LIST_GBD(), GB_INDEX_FILES_NEXT(), GBCONTAINER_IFS(), GBCONTAINER_MAIN(), GBENTRY::index_check_in(), GBENTRY::index_check_out(), GBDATA::is_indexable(), GB_MAIN_TYPE::is_server(), gb_index_files::key, gb_header_flags::key_quark, GB_MAIN_TYPE::keys, gb_Key::nref, NULp, and gb_flag_types2::should_be_indexed.
Referenced by gb_make_container(), gb_make_entry(), gb_make_pre_defined_container(), gb_make_pre_defined_entry(), gb_pre_delete_entry(), gb_write_key(), and gbcm_read_bin().
void gb_create_key_array | ( | GB_MAIN_TYPE * | Main, |
int | index | ||
) |
Definition at line 697 of file ad_core.cxx.
References ARB_recalloc(), gb_Key::compression_mask, gb_assert, GB_MAIN_TYPE::keycnt, GB_MAIN_TYPE::keys, and GB_MAIN_TYPE::sizeofkeys.
Referenced by gb_create_key(), and gbcmc_read_keys().
long gb_create_key | ( | GB_MAIN_TYPE * | Main, |
const char * | key, | ||
bool | create_gb_key | ||
) |
Definition at line 708 of file ad_core.cxx.
References ALLOWED_KEYS, ARB_strdup(), GB_MAIN_TYPE::clock, GB_MAIN_TYPE::first_free_key, gb_assert, GB_await_error(), gb_create_key_array(), GB_MAIN_TYPE::gb_key_data, gb_load_single_key_data(), GB_MAIN_TYPE::gb_main(), gbcmc_key_alloc(), GBK_terminate(), GBK_terminate_on_error(), GBK_terminatef(), GBS_hash_elements(), GBS_write_hash(), GB_MAIN_TYPE::is_client(), gb_Key::key, GB_MAIN_TYPE::key_2_index_hash, GB_MAIN_TYPE::key_clock, GB_MAIN_TYPE::keycnt, GB_MAIN_TYPE::keys, gb_Key::next_free_key, gb_Key::nref, and GB_MAIN_TYPE::send_update_to_server().
Referenced by gb_find_or_create_quark(), GB_login(), gb_read_bin(), gb_write_key(), and gbcms_talking_key_alloc().
Definition at line 768 of file ad_core.cxx.
References GBDATA::as_entry(), gb_header_flags::flags, GBDATA::flags, GBENTRY::free_data(), gb_abortdata(), GB_ARRAY_FLAGS(), GB_BITS, gb_uncache(), GBDATA::get_oldData(), GBDATA::is_entry(), NULp, gb_flag_types::saved_flags, and GBDATA::type().
Referenced by gb_abort_transaction_local_rek(), and gb_check_in_undo_delete().
void gb_abort_transaction_local_rek | ( | GBDATA *& | gbd | ) |
Definition at line 787 of file ad_core.cxx.
References GBDATA::as_container(), gb_header_flags::changed, GBCONTAINER::d, gb_abort_entry(), gb_abort_transaction_local_rek(), GB_ARRAY_FLAGS(), GB_CREATED, GB_DATA_LIST_HEADER(), gb_delete_entry(), GB_DELETED, GB_HEADER_LIST_GBD(), GB_PUT_SECURITY_DELETE, GB_UNCHANGED, GBDATA::is_container(), and gb_data_list::nheader.
Referenced by GB_MAIN_TYPE::abort_transaction(), and gb_abort_transaction_local_rek().
Definition at line 818 of file ad_core.cxx.
References _GB_CHECK_IN_UNDO_CREATE(), _GB_CHECK_IN_UNDO_DELETE(), _GB_CHECK_IN_UNDO_MODIFY(), GBDATA::as_container(), gb_header_flags::changed, GB_MAIN_TYPE::clock, GBDATA::create_extended(), GBCONTAINER::d, error(), flags, GBDATA::flags2, GB_ARRAY_FLAGS(), GB_CB_CHANGED, GB_CB_CHANGED_OR_SON_CREATED, gb_commit_transaction_local_rek(), GB_CREATED, GB_DATA_LIST_HEADER(), gb_delete_entry(), GB_DELETED, GB_FREE_TRANSACTION_SAVE(), GB_HEADER_LIST_GBD(), GB_MAIN(), GB_NORMAL_CHANGE, GB_PUT_SECURITY_DELETE, gb_set_update_in_server_flags(), GB_UNCHANGED, gbcmc_sendupdate_create(), gbcmc_sendupdate_delete(), gbcmc_sendupdate_update(), gbcms_add_to_delete_list(), gb_flag_types2::header_changed, GBCONTAINER::header_update_date, GBCONTAINER::index_of_touched_one_son, GBDATA::is_container(), gb_data_list::nheader, NULp, GBDATA::server_id, start, GBDATA::touch_update(), GB_MAIN_TYPE::trigger_change_callbacks(), and gb_flag_types2::update_in_server.
Referenced by GB_MAIN_TYPE::commit_transaction(), gb_commit_transaction_local_rek(), and GB_MAIN_TYPE::send_update_to_server().