libabigail
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | List of all members
ir_traversable_base Struct Reference

#include <abg-ir.h>

Inheritance diagram for ir_traversable_base:
[legend]

Public Member Functions

virtual bool traverse (node_visitor_base &v)
 
virtual bool traverse (ir_node_visitor &v)
 

Detailed Description

The base of an entity of the intermediate representation that is to be traversed.

Definition at line 186 of file abg-ir.h.

Member Function Documentation

bool traverse ( node_visitor_base v)
virtualinherited

This virtual method is overloaded and implemented by any single type which instance is going to be visited during the traversal of translation unit nodes.

The method visits a given node and, for scopes, visits their member nodes. Visiting a node means calling the ir_node_visitor::visit method with the node passed as an argument.

Parameters
vthe visitor used during the traverse.
Returns
true if traversed until the end of the type tree, false otherwise.

Definition at line 29 of file abg-traverse.cc.

bool traverse ( ir_node_visitor v)
virtual

Traverse a given IR node and its children, calling an visitor on each node.

Parameters
vthe visitor to call on each traversed node.
Returns
true if the all the IR node tree was traversed.

Reimplemented in class_decl::member_class_template, class_decl::member_function_template, class_decl, class_tdecl, function_tdecl, function_decl, var_decl, typedef_decl, enum_type_decl, array_type_def, reference_type_def, pointer_type_def, qualified_type_def, namespace_decl, type_decl, scope_decl, and decl_base.

Definition at line 6802 of file abg-ir.cc.


The documentation for this struct was generated from the following files: