ctree_parentee_t Struct Reference

A helper ctree traversal class that maintains parent information. More...

Inheritance diagram for ctree_parentee_t:
ctree_visitor_t cfunc_parentee_t

List of all members.

Public Member Functions

 ctree_parentee_t (bool post=false)
bool recalc_parent_types (void)
 Recalculate types of parent node.

Detailed Description

A helper ctree traversal class that maintains parent information.

Examples:

hexrays_sample5.cpp.

Definition at line 1427 of file hexrays.hpp.


Member Function Documentation

bool ctree_parentee_t::recalc_parent_types ( void   ) 

Recalculate types of parent node.

If a node type has been changed, the visitor must recalculate all parent types, otherwise the ctree becomes inconsistent. If during this recalculation a parent node is added/deleted, this function returns true. In this case it is recommended to restart the traversal because the information about parent nodes is stale.

Returns:
false-ok to continue the traversal, true-must stop.

Definition at line 4300 of file hexrays.hpp.

References hexdsp.