#include <arb_assert.h>
#include "static_assert.h"
Go to the source code of this file.
|
template<class DERIVED_PTR , class BASE_PTR > |
DERIVED_PTR | static_downcast (BASE_PTR expr) |
|
#define DOWNCAST |
( |
|
totype, |
|
|
|
expr |
|
) |
| static_downcast<totype,typeof(expr)>(expr) |
Definition at line 141 of file downcast.h.
Referenced by aci_config_changed_cb(), AW_draw_string_on_printer(), AW_draw_string_on_screen(), bool_config_changed_cb(), build_consensus_tree(), canvas_updated_cb(), AP_tree_root::change_root(), common_ancestor(), create_consense_tree_cb(), CompressionRoot::destroyNode(), SizeAwareRoot::destroyNode(), AP_tree_root::destroyNode(), SimpleRoot::destroyNode(), RootSynchronizer::find_best_root_candidate(), GBT_compress_sequence_tree2(), GEN_jump_cb(), GEN_set_display_style(), Candidate::get_clade(), FINAL_TYPE< SEQTYPE >::get_common(), AW_GC_Xm::get_common(), TREE_canvas::get_graphic_tree(), RootSynchronizer::get_innermost_edges(), DI_ENTRY::get_nucl_seq(), DI_ENTRY::get_prot_seq(), AWT_graphic_parsimony::get_root_node(), AWT_graphic_parsimony::get_tree_root(), FINAL_TYPE< SEQTYPE >::initial_insert(), AP_tree::initial_insert(), FINAL_TYPE< SEQTYPE >::insert(), AP_tree::insert(), load_and_add_tree(), ARB_seqtree_root::loadFromDB(), Group::locate(), AW_common_Xm::map_gc(), AW_common_Xm::map_mod_gc(), matrix_config_changed_cb(), FINAL_TYPE< SEQTYPE >::moveNextTo(), GroupIterator::node(), NT_configure_treeShader(), NT_reload_tree_event(), NT_TreeShader::NT_TreeShader(), ED4_container::owner(), GroupSearch::perform_search(), refresh_matchedProbesDisplay_cb(), AP_main::remember(), selected_configs_awar_changed_cb(), AWT_graphic_tree::show_ruler(), transform_gbd_to_leaf(), translate_config_changed_cb(), and TREE_recompute_and_resize_cb().
#define DEFINE_DOWNCAST_ACCESSORS |
( |
|
CLASS, |
|
|
|
NAME, |
|
|
|
VALUE |
|
) |
| |
Value:CLASS *NAME() {
return DOWNCAST(CLASS*, VALUE); } \
const CLASS *NAME()
const {
return DOWNCAST(
const CLASS*, VALUE); }
#define DOWNCAST(totype, expr)
Definition at line 147 of file downcast.h.
#define DOWNCAST_REFERENCE |
( |
|
totype, |
|
|
|
expr |
|
) |
| (*DOWNCAST(totype*, &(expr))) |
Definition at line 152 of file downcast.h.
Referenced by custom_gr_env(), custom_gx_env(), FINAL_TYPE< SEQTYPE >::get_target_data(), GroupNameQueryKey::get_target_data(), GroupFoldedKey::get_target_data(), GroupAIDkey::get_target_data(), GroupSizeKey::get_target_data(), GroupKeeledKey::get_target_data(), GroupZombiesKey::get_target_data(), GroupMarkedKey::get_target_data(), NestingLevelKey::get_target_data(), ParentGroupNameQueryKey::get_target_data(), and perform_query_cb().
template<class DERIVED_PTR , class BASE_PTR >
DERIVED_PTR static_downcast |
( |
BASE_PTR |
expr | ) |
|
|
inline |