ARB
|
Go to the source code of this file.
Classes | |
struct | gbdata_offset |
struct | gbdByKey |
Macros | |
#define | ADMAP_BYTE_ORDER 0x01020304 |
#define | GB_MAX_MAPPED_FILES 10 |
#define | ALIGN_BITS 2 |
#define | ALIGN(size) (((((size)-1)>>ALIGN_BITS)+1)<<ALIGN_BITS) |
#define | PTR_DIFF(p1, p2) ((char*)(p1)-(char*)(p2)) |
#define | cmp(h1, h2) ((long)(h1).gbd - (long)(h2).gbd) |
#define | swap(h1, h2) |
Variables | |
static gbdByKey * | gb_gbk = NULp |
static bool | writeError |
static char | alignment_bytes [ALIGN(1)] = { 0 } |
static char * | fileMappedTo [GB_MAX_MAPPED_FILES] |
static long | fileLen [GB_MAX_MAPPED_FILES] |
static int | mappedFiles = 0 |
#define ADMAP_BYTE_ORDER 0x01020304 |
Definition at line 16 of file admap.cxx.
Referenced by gb_is_valid_mapfile(), and gb_save_mapfile().
#define GB_MAX_MAPPED_FILES 10 |
Definition at line 17 of file admap.cxx.
Referenced by gb_map_mapfile().
#define ALIGN | ( | size | ) | (((((size)-1)>>ALIGN_BITS)+1)<<ALIGN_BITS) |
Definition at line 25 of file admap.cxx.
Referenced by calcGbdOffsets(), ftwrite_aligned(), ftwrite_unaligned(), write_GBDATA(), write_IE(), write_IFS(), and writeGbdByKey().
Definition at line 26 of file admap.cxx.
Referenced by write_GBDATA().
Definition at line 50 of file admap.cxx.
Referenced by an_stricmp(), an_strnicmp(), ARB_stricmp(), cannot_fast_align(), FamilyStat::cmp_abs(), FINAL_TYPE< SEQTYPE >::cmp_data(), cmp_location_parts(), FamilyStat::cmp_rel(), AliData::cmp_whole_data(), cmpByKey(), TextRef::compare(), compare_hits(), AW_window::create_user_geometry_awars(), downheap(), GBT_TREE_order(), TextRef::icompare(), PART::insertionOrder_cmp(), PartitionSpec::isBetterThan(), ProbeOccurrence::less(), matchesUsingWildcard(), numeric_string_cmp(), SpecificGap< T >::operate_on_mem(), SpecificAliData< char >::operate_on_mem(), lt_field::operator()(), cmp_Rectangles::operator()(), ColorMap::operator()(), BadPositionsOrder::operator()(), ltByArbName::operator()(), ltByInternalName::operator()(), compare_by_criteria::operator()(), GEN_gene::operator<(), operator<(), pt_sort_compare_match(), ptnd_compare_quality(), RB_INFO_order(), resort_data_by_customOrder(), AW_selection_list::sort(), sort_gbdata_offsets(), sort_sequences_by_length(), strcasecmp_start(), and PART::topological_cmp().
#define swap | ( | h1, | |
h2 | |||
) |
Definition at line 52 of file admap.cxx.
Referenced by downheap().
Definition at line 42 of file admap.cxx.
References gb_assert.
Referenced by getrel_GBDATA(), write_GBDATA(), and write_IFS().
|
static |
|
static |
Definition at line 87 of file admap.cxx.
References cmp, downheap(), and gb_assert.
Referenced by createGbdByKey().
|
static |
Definition at line 116 of file admap.cxx.
References gbdByKey::cnt, gb_assert, gbdata_offset::gbd, gbdByKey::gbdoff, long, and NULp.
Referenced by write_GBDATA().
Definition at line 146 of file admap.cxx.
References gbdByKey::cnt, gb_assert, GB_KEY_QUARK(), gbdata_offset::gbd, gbdByKey::gbdoff, long, MAKEREL(), offset, and GBDATA::rel_father.
Referenced by gb_save_mapfile(), write_GBDATA(), and write_IE().
|
static |
Definition at line 192 of file admap.cxx.
References ALIGN, gb_assert, and writeError.
Referenced by write_GBDATA(), and write_IFS().
Definition at line 201 of file admap.cxx.
References ALIGN, and writeError.
Referenced by gb_save_mapfile(), write_GBDATA(), write_IE(), and write_IFS().
|
static |
Definition at line 218 of file admap.cxx.
References ALIGN, copy(), ftwrite_unaligned(), GB_IF_ENTRIES_GBD(), GB_IF_ENTRIES_NEXT(), getrel_GBDATA(), gb_if_entries::rel_ie_gbd, and gb_if_entries::rel_ie_next.
Referenced by write_IFS().
|
static |
Definition at line 243 of file admap.cxx.
References ALIGN, ftwrite_aligned(), ftwrite_unaligned(), GB_ENTRIES_ENTRY, GB_INDEX_FILES_ENTRIES(), GB_INDEX_FILES_NEXT(), gb_index_files::hash_table_size, MAKEREL(), offset, gb_index_files::rel_entries, gb_index_files::rel_if_next, STATIC_ASSERT, and write_IE().
Referenced by write_GBDATA().
|
static |
Definition at line 305 of file admap.cxx.
References gb_flag_types2::folded_container, gb_assert, gb_flag_types2::header_changed, gb_flag_types2::last_updated, gb_flag_types::saved_flags, gb_flag_types::temporary, gb_flag_types::unused, gb_flag_types2::update_in_server, gb_flag_types2::user_bits, and gb_flag_types::user_flags.
Referenced by write_GBDATA().
|
static |
Definition at line 317 of file admap.cxx.
References ALIGN, GBDATA::as_container(), GBDATA::as_entry(), GBENTRY::cache_index, gb_header_flags::changed, convertFlags4Save(), GBCONTAINER::d, gb_header_flags::ever_changed, gb_data_base_type_union::ex, GBDATA::ext, find_gbdata_offset(), gb_header_flags::flags, gb_header_list::flags, flags, GBDATA::flags, GBDATA::flags2, GBCONTAINER::flags3, ftwrite_aligned(), ftwrite_unaligned(), gb_assert, GB_DATA_LIST_HEADER(), GB_FATHER(), GB_HEADER_LIST_GBD(), GBCONTAINER_IFS(), GBTUM_MAGIC_NUMBER, gb_extern_data::get_data(), getrel_GBDATA(), GBCONTAINER::header_update_date, gb_data_list::headermemsize, gbdata_offset::index, GBDATA::index, GBCONTAINER::index_of_touched_one_son, GBENTRY::info, GBDATA::is_container(), GBCONTAINER::main_idx, MAKEREL(), gb_extern_data::memsize, gb_data_list::nheader, NULp, offset, PTR_DIFF, gb_extern_data::rel_data, GBDATA::rel_father, gb_data_list::rel_header, gb_header_list::rel_hl_gbd, GBCONTAINER::rel_ifs, GBDATA::server_id, gb_data_list::size, STATIC_ASSERT, GBENTRY::stored_external(), gb_flag_types::temporary, valid(), and write_IFS().
Referenced by calcGbdOffsets(), and writeGbdByKey().
|
static |
Definition at line 492 of file admap.cxx.
References ALIGN, gbdByKey::cnt, gb_assert, IF_ASSERTION_USED, GB_MAIN_TYPE::keycnt, offset, and write_GBDATA().
Referenced by gb_save_mapfile().
|
static |
Definition at line 507 of file admap.cxx.
References ALIGN, gbdByKey::cnt, gbdByKey::gbdoff, GB_MAIN_TYPE::keycnt, NULp, gbdata_offset::offset, offset, and write_GBDATA().
Referenced by gb_save_mapfile().
|
static |
Definition at line 526 of file admap.cxx.
References GBDATA::as_container(), gbdByKey::cnt, GBCONTAINER::d, GBDATA::flags, gb_assert, GB_dump_db_path(), GB_KEY_QUARK(), GBCONTAINER_ELEM(), gbdata_offset::gbd, gbdByKey::gbdoff, GBDATA::is_container(), gb_data_list::nheader, gbdata_offset::offset, and gb_flag_types::temporary.
Referenced by createGbdByKey().
|
static |
Definition at line 552 of file admap.cxx.
References ARB_calloc(), gbdByKey::cnt, GB_MAIN_TYPE::gb_main(), gb_Key::key, GB_MAIN_TYPE::keycnt, GB_MAIN_TYPE::keys, gb_Key::nref, scanGbdByKey(), and sort_gbdata_offsets().
Referenced by gb_save_mapfile().
|
static |
Definition at line 576 of file admap.cxx.
References GB_MAIN_TYPE::keycnt.
Referenced by gb_save_mapfile().
GB_ERROR gb_save_mapfile | ( | GB_MAIN_TYPE * | Main, |
GB_CSTR | path | ||
) |
Definition at line 587 of file admap.cxx.
References ADMAP_BYTE_ORDER, ADMAP_ID, ADMAP_ID_LEN, ADMAP_VERSION, gb_map_header::byte_order, calcGbdOffsets(), createGbdByKey(), GB_MAIN_TYPE::dummy_father, error(), freeGbdByKey(), ftwrite_unaligned(), gb_assert, GB_FATHER(), GB_IO_error(), GB_MAIN_TYPE::gb_main(), gb_make_main_idx(), GB_unlink_or_warn(), getrel_GBDATA(), IF_ASSERTION_USED, gb_map_header::main_data_offset, gb_map_header::main_idx, GBCONTAINER::main_idx, gb_map_header::mapfileID, NULp, GB_MAIN_TYPE::release_main_idx(), GB_MAIN_TYPE::root_container, SET_GB_FATHER(), gb_map_header::version, writeError, and writeGbdByKey().
Referenced by ArbDBWriter::finishSave().
bool GB_supports_mapfile | ( | void | ) |
Definition at line 644 of file admap.cxx.
Referenced by pd_export_pt_server(), and run_command().
int gb_is_valid_mapfile | ( | const char * | path, |
gb_map_header * | mheader, | ||
int | verbose | ||
) |
Definition at line 652 of file admap.cxx.
References ADMAP_BYTE_ORDER, ADMAP_ID, ADMAP_VERSION, gb_map_header::byte_order, error(), GB_export_error(), GB_IO_error(), GB_print_error(), GBS_global_string(), gb_map_header::mapfileID, NULp, and gb_map_header::version.
Referenced by gb_map_mapfile(), and gb_read_bin().
Definition at line 706 of file admap.cxx.
References fileLen, gb_assert, gb_is_valid_mapfile(), GB_map_file(), GB_MAX_MAPPED_FILES, GB_size_of_file(), gb_map_header::main_data_offset, mappedFiles, and NULp.
Referenced by gb_read_bin().
int gb_isMappedMemory | ( | void * | mem | ) |
|
static |
Definition at line 190 of file admap.cxx.
Referenced by ftwrite_aligned(), ftwrite_unaligned(), and gb_save_mapfile().
|
static |
|
static |
Definition at line 703 of file admap.cxx.
Referenced by gb_isMappedMemory(), and gb_map_mapfile().
|
static |
Definition at line 704 of file admap.cxx.
Referenced by gb_map_mapfile().