GCC Middle and Back End API Reference
is-a.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  is_a_helper< T >

Functions

template<typename T , typename U >
bool is_a ()
template<typename T , typename U >
Tas_a ()
template<typename T , typename U >
Tdyn_cast ()

Function Documentation

template<typename T , typename U >
T* as_a ( )
inline

A generic conversion from a base type U to a derived type T. See the discussion above for when to use this function.

References T.

template<typename T , typename U >
T* dyn_cast ( )
inline

A generic checked conversion from a base type U to a derived type T. See the discussion above for when to use this function.

Referenced by can_refer_decl_in_current_unit_p(), dump_varpool(), enqueue_node(), gimple_in_ssa_p(), gimple_vuse_op(), read_inline_edge_summary(), and varpool_remove_unreferenced_decls().

template<typename T , typename U >
bool is_a ( )
inline

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 gcc_checking_assert.