Go to the source code of this file.
Functions |
template<typename T , typename U > |
bool | is_a () |
template<typename T , typename U > |
T * | as_a () |
template<typename T , typename U > |
T * | dyn_cast () |
Function Documentation
template<typename T , typename U >
A generic conversion from a base type U to a derived type T. See the
discussion above for when to use this function.
template<typename T , typename U >
A generic checked conversion from a base type U to a derived type T. See
the discussion above for when to use this function.
References T.
Referenced by analyze_functions(), cgraph_node_for_asm(), inline_write_summary(), insert_to_assembler_name_hash(), ipa_reference_write_optimization_summary(), lto_output(), lto_output_ref(), lto_symtab_merge_symbols_1(), output_cgraph_opt_summary(), output_symbol_p(), referred_to_p(), symtab_remove_unreachable_nodes(), unlink_from_assembler_name_hash(), varpool_node_for_asm(), and varpool_remove_unreferenced_decls().
template<typename T , typename U >
The public interface.
A generic test for a type relationship. See the discussion above for when
to use this function. The question answered is "Is type T a derived type of
type U?".
References is_a_helper< T >::test().