ARB
|
#include <cstdlib>
#include <cstring>
#include <attributes.h>
Go to the source code of this file.
Namespaces | |
arb_mem | |
Functions | |
void | arb_mem::failed_to_allocate (const char *reason) __ATTR__NORETURN |
void | arb_mem::failed_to_allocate (size_t nelem, size_t elsize) __ATTR__NORETURN |
void | arb_mem::failed_to_allocate (size_t size) __ATTR__NORETURN |
void | arb_mem::alloc_aligned (void **tgt, size_t alignment, size_t len) |
template<class TYPE > | |
void | ARB_alloc_aligned (TYPE *&tgt, size_t nelems) |
template<class TYPE > | |
void | ARB_realloc (TYPE *&tgt, size_t nelem) |
template<class TYPE > | |
void | ARB_recalloc (TYPE *&tgt, size_t oelem, size_t nelem) |
template<class TYPE > | |
TYPE * | ARB_alloc (size_t nelem) |
template<class TYPE > | |
void | ARB_alloc (TYPE *&tgt, size_t nelem) |
template<class TYPE > | |
TYPE * | ARB_calloc (size_t nelem) |
template<class TYPE > | |
void | ARB_calloc (TYPE *&tgt, size_t nelem) |
allocate 16 byte aligned memory (terminate on failure)
Definition at line 37 of file arb_mem.h.
References arb_mem::alloc_aligned().
Referenced by AP_weights::AP_weights().
reallocate memoryblock to fit 'nelem' entries (terminate on failure)
Definition at line 43 of file arb_mem.h.
References arb_mem::failed_to_allocate().
Referenced by Seq::add(), AW_window::alloc_named_data_color(), append_known_len(), AppendNA(), ARB_recalloc(), Arbdb_get_curelem(), etog_journal(), format(), GB_log_fak(), DI_MATRIX::load(), ParseMenus(), and ReadGen().
reallocate memoryblock to fit 'nelem' entries (partially cleared if 'oelem<nelem'; terminate on failure)
Definition at line 49 of file arb_mem.h.
References ARB_realloc().
Referenced by AW_GC_set::add_gc(), gb_local_data::announce_db_open(), ED4_create_sequences_for_gde(), gb_create_key_array(), ParseMenus(), ReadGen(), set_and_realloc_gde_array(), and CharPtrArray::set_space().
malloc memory for an array of 'nelem' instances of TYPE (terminates on failure).
Definition at line 56 of file arb_mem.h.
References arb_mem::failed_to_allocate().
Referenced by alloc_buffer(), AW_window::alloc_named_data_color(), arb_start_server(), ARB_strduplen(), ARB_strpartdup(), Arbdb_get_curelem(), aw_insert_message_in_tmp_message_delayed(), AWTC_create_numbered_suffix(), dot_missing_bases(), gb_alloc_cache_index(), GB_DbScanner::GB_DbScanner(), GB_get_GBDATA_path(), GB_get_subfields(), gb_local_data::gb_local_data(), GBK_assert_msg(), GBT_gen_species_array(), GBT_read_gene_sequence_and_length(), Pair::get_primers(), Pair::get_result(), Item::getPrimerSequence(), init_gpp(), BI_helix::initFromData(), XString::initialize(), InsertDatainGDE(), KeySorter::KeySorter(), Label::Label(), lookfont(), parseCommandLine(), ParseMenus(), readable_probe(), ReadArbdb(), Realigner::realign_seq(), SQ_fetch_filtered_sequence(), translateSAItoColors(), and XString::XString().
malloc memory for an array of 'nelem' instances of TYPE and assign its address to 'tgt' (terminates on failure).
calloc memory for an array of 'nelem' instances of TYPE (terminates on failure).
Definition at line 81 of file arb_mem.h.
References arb_mem::failed_to_allocate().
Referenced by alloc_buffer(), an_add_short(), AP_matrix::AP_matrix(), arb_prm_primer(), arb_prm_read(), aw_install_xkeys(), AWT_distance_meter::AWT_distance_meter(), ED4_SearchResults::buildColorString(), PH_filter::calculate_column_homology(), compress_sequence_tree(), create_loadsave_colored_window(), AW_window::create_mode(), createGbdByKey(), ED4_container::ED4_container(), ED4_create_sequences_for_gde(), ED4_getSaiColorString(), ED4_SearchResults::ED4_SearchResults(), g_b_opti_createGbdByKey(), gb_init_undo_stack(), gbcm_login(), gbcm_read_string(), GBS_create_hash(), GBS_create_numhash(), GBS_optimize_hash(), GEN_make_node_text_init(), GEN_new_position(), ST_ML::get_color_string(), get_sorted_hash_values(), BI_helix::initFromData(), ins_ntree(), InsertDatainGDE(), DI_MATRIX::load(), PHDATA::load(), MG_remaps::MG_remaps(), ParseMenus(), PH_NEIGHBOURJOINING::PH_NEIGHBOURJOINING(), pt_sort_match_list(), ArbImporter::read_line(), read_tree_and_size_internal(), ReadArbdb(), ReadGen(), ReplaceArgs(), resort_data_base(), AP_pos_var::retrieve(), CharPtrArray::set_space(), GBL_IMPL::trace_params(), uniqueID(), and ST_ML::update_ml_likelihood().
calloc memory for an array of 'nelem' instances of TYPE and assign its address to 'tgt' (terminates on failure).