ARB
|
#include "ad_cb.h"
#include "ad_hcb.h"
#include "gb_compress.h"
#include "gb_ta.h"
#include "gb_ts.h"
#include <arb_strarray.h>
#include <arb_strbuf.h>
Go to the source code of this file.
Classes | |
struct | ShallBeDeleted |
struct | IsCallback |
struct | IsSpecificCallback |
struct | IsSpecificHierarchyCallback |
Macros | |
#define | INVALIDATE_IF(cond) do{ if (cond) { invalidate(); return; } }while(0) |
#define | appendcbtype(cbt) |
#define | CHECK_HIER_CB_CONDITION() |
Variables | |
static gb_triggered_callback * | currently_called_back = NULp |
static GB_MAIN_TYPE * | inside_callback_main = NULp |
Referenced by gb_hierarchy_location::gb_hierarchy_location().
#define appendcbtype | ( | cbt | ) |
Referenced by cbtype2readable().
#define CHECK_HIER_CB_CONDITION | ( | ) |
Definition at line 378 of file ad_cb.cxx.
Referenced by GB_MAIN_TYPE::add_hierarchy_cb(), and GB_MAIN_TYPE::remove_hierarchy_cb().
|
static |
GB_MAIN_TYPE* gb_get_main_during_cb | ( | void | ) |
Definition at line 108 of file ad_cb.cxx.
References inside_callback_main.
Referenced by GB_get_gb_main_during_cb(), GB_inside_callback(), gb_system_key_changed_cb(), gb_system_master_changed_cb(), and gb_uncompress_by_sequence().
NOT4PERL bool GB_inside_callback | ( | GBDATA * | of_gbd, |
GB_CB_TYPE | cbtype | ||
) |
Definition at line 115 of file ad_cb.cxx.
References gb_assert, GB_CB_ALL, GB_CB_DELETE, GB_CB_NONE, gb_get_main_during_cb(), gb_triggered_callback::gbd, TypedDatabaseCallback::get_type(), GB_MAIN_TYPE::has_pending_change_callback(), GB_MAIN_TYPE::has_pending_delete_callback(), and gb_triggered_callback::spec.
Referenced by flush_taxonomy_cb(), gb_add_callback(), GB_get_gb_main_during_cb(), gb_remove_callbacks_that(), and awt_linked_to_item::remove_db_callbacks().
GBDATA* GB_get_gb_main_during_cb | ( | void | ) |
Definition at line 142 of file ad_cb.cxx.
References GB_CB_DELETE, gb_get_main_during_cb(), GB_inside_callback(), gb_main, GB_MAIN_TYPE::gb_main(), and NULp.
Referenced by flush_taxonomy_cb().
|
static |
Definition at line 154 of file ad_cb.cxx.
References gb_flag_types::compressed_data, gb_transaction_save::flags, gb_convert_type_2_appendix_size, gb_convert_type_2_sizeof, GB_GETDATA_TS(), GB_GETSIZE_TS(), GB_TYPE_TS(), gb_uncompress_data(), and type.
Referenced by GB_read_old_value().
NOT4PERL const void* GB_read_old_value | ( | void | ) |
Definition at line 166 of file ad_cb.cxx.
References GB_export_error(), GB_GETDATA_TS(), gb_read_pntr_ts(), gb_triggered_callback::gbd, NULp, and gb_triggered_callback::old.
Referenced by ED4_terminal::changed_by_database(), and ED4_sequence_terminal::deleted_from_database().
long GB_read_old_size | ( | void | ) |
Definition at line 183 of file ad_cb.cxx.
References GB_export_error(), GB_GETSIZE_TS(), and gb_triggered_callback::old.
Referenced by ED4_terminal::changed_by_database(), and ED4_sequence_terminal::deleted_from_database().
|
inline |
Definition at line 196 of file ad_cb.cxx.
References appendcbtype, gb_assert, GB_CB_CHANGED, GB_CB_DELETE, GB_CB_NONE, GB_CB_SON_CREATED, and GBT_join_strings().
Referenced by TypedDatabaseCallback::get_info().
Definition at line 226 of file ad_cb.cxx.
References CallbackList< CB >::callbacks, cb, GBDATA::ext, GBS_global_string_copy(), GBDATA::get_callbacks(), NULp, and result.
|
inline |
Definition at line 277 of file ad_cb.cxx.
References GBDATA::ext, gb_assert, GB_CB_DELETE, GB_inside_callback(), GBDATA::get_callbacks(), and CallbackList< CB >::remove_callbacks_that().
Referenced by GB_remove_all_callbacks_to(), GB_remove_callback(), and gb_remove_callbacks_marked_for_deletion().
void gb_remove_callbacks_marked_for_deletion | ( | GBDATA * | gbd | ) |
Definition at line 295 of file ad_cb.cxx.
References gb_remove_callbacks_that().
Referenced by gb_do_callbacks().
|
inline |
Definition at line 319 of file ad_cb.cxx.
References CallbackList< CB >::add().
Referenced by gb_add_callback(), and GB_atclose_callback().
|
inline |
Definition at line 323 of file ad_cb.cxx.
References CallbackList< CB >::add().
|
inline |
Definition at line 328 of file ad_cb.cxx.
References add_to_callback_chain(), gb_db_extended::callback, GBDATA::create_extended(), GBDATA::ext, gb_assert, GB_CB_DELETE, GB_inside_callback(), GB_test_transaction(), and NULp.
Referenced by GB_add_callback(), and GB_ensure_callback().
GB_ERROR GB_add_callback | ( | GBDATA * | gbd, |
GB_CB_TYPE | type, | ||
const DatabaseCallback & | dbcb | ||
) |
Definition at line 356 of file ad_cb.cxx.
References gb_add_callback().
Referenced by awt_linked_to_item::add_db_callbacks(), AW_DB_selection::AW_DB_selection(), awt_create_select_filter(), AWT_default_protein_type(), MostLikelySeq::bind_to_species(), BoundTreeAwarCallback::bind_tree_callback(), VarUpdateInfo::change_from_widget(), create_loadsave_colored_window(), create_macro_variables(), DI_create_matrix_variables(), MacroRecorder::execute(), GBP_add_callback(), GBT_install_message_handler(), GEN_create_nds_vars(), GEN_gene_container_cb_installer(), get_cached_taxonomy(), ED4_root::init_alignment(), ARB_seqtree_root::loadFromDB(), AW_awar::make_global(), AW_awar::map(), DbScanner::Map(), popup_new_main_window(), saiChanged_callback(), SEC_db_interface::SEC_db_interface(), SEC_seq_data::SEC_seq_data(), server_main_loop(), and TREE_install_update_callbacks().
void GB_remove_callback | ( | GBDATA * | gbd, |
GB_CB_TYPE | type, | ||
const DatabaseCallback & | dbcb | ||
) |
Definition at line 360 of file ad_cb.cxx.
References gb_remove_callbacks_that().
Referenced by BoundTreeAwarCallback::bind_tree_callback(), VarUpdateInfo::change_from_widget(), GBP_remove_callback(), GEN_gene_container_cb_installer(), ARB_seqtree_root::loadFromDB(), AW_awar::map(), DbScanner::Map(), awt_linked_to_item::remove_db_callbacks(), saiChanged_callback(), MostLikelySeq::unbind_from_species(), AP_tree::~AP_tree(), ARB_seqtree_root::~ARB_seqtree_root(), AW_DB_selection::~AW_DB_selection(), and SEC_seq_data::~SEC_seq_data().
void GB_remove_all_callbacks_to | ( | GBDATA * | gbd, |
GB_CB_TYPE | type, | ||
GB_CB | func | ||
) |
Definition at line 364 of file ad_cb.cxx.
References gb_remove_callbacks_that().
Referenced by flush_taxonomy_cb(), and get_cached_taxonomy().
GB_ERROR GB_add_hierarchy_callback | ( | GBDATA * | gb_main, |
const char * | db_path, | ||
GB_CB_TYPE | type, | ||
const DatabaseCallback & | dbcb | ||
) |
same as overloaded GB_add_hierarchy_callback(), but using db_path instead of GBDATA to define hierarchy location. If the path starts with '/', the full path has to match to trigger the callback. Otherwise only the given path has to match (from bottom up), e.g. "gb_group" will trigger on any "gb_group" entry (regardless of its parent-path).
Definition at line 432 of file ad_cb.cxx.
References GB_MAIN_TYPE::add_hierarchy_cb(), and GB_MAIN().
Referenced by install_config_change_callbacks().
GB_ERROR GB_remove_hierarchy_callback | ( | GBDATA * | gb_main, |
const char * | db_path, | ||
GB_CB_TYPE | type, | ||
const DatabaseCallback & | dbcb | ||
) |
same as overloaded GB_remove_hierarchy_callback(), but using db_path instead of GBDATA to define hierarchy location
Definition at line 440 of file ad_cb.cxx.
References GB_MAIN(), and GB_MAIN_TYPE::remove_hierarchy_cb().
GB_ERROR GB_ensure_callback | ( | GBDATA * | gbd, |
GB_CB_TYPE | type, | ||
const DatabaseCallback & | dbcb | ||
) |
Definition at line 445 of file ad_cb.cxx.
References CallbackList< CB >::callbacks, cb, gb_add_callback(), GBDATA::get_callbacks(), and NULp.
Referenced by gb_load_single_key_data(), and RegFieldSelection::registrate().
void GB_atclose_callback | ( | GBDATA * | gbd, |
const DatabaseCallback & | atClose | ||
) |
Add a callback, which gets called directly before GB_close destroys all data. This is the recommended way to remove all callbacks from DB elements.
Definition at line 458 of file ad_cb.cxx.
References add_to_callback_chain(), GB_MAIN_TYPE::close_callbacks, GB_CB_DELETE, and GB_MAIN().
Referenced by GroupUIdata::GroupUIdata(), keepQuery(), mark_as_macro_executor(), start_SECEDIT_plugin(), and TreeAwarRegistry::TreeAwarRegistry().
|
static |
|
static |
Definition at line 21 of file ad_cb.cxx.
Referenced by gb_get_main_during_cb().