| IDAPython 9.0
    | 
Proxy of C++ ctree_visitor_t class.
 
  
| Public Member Functions | |
| "bool" | maintain_parents (self) | 
| maintain_parents(self) -> bool Should the parent information by maintained? | |
| "bool" | must_prune (self) | 
| must_prune(self) -> bool Should the traversal skip the children of the current item? | |
| "bool" | must_restart (self) | 
| must_restart(self) -> bool Should the traversal restart? | |
| "bool" | is_postorder (self) | 
| is_postorder(self) -> bool Should the leave...() functions be called? | |
| "bool" | only_insns (self) | 
| only_insns(self) -> bool Should all expressions be automatically pruned? | |
| "void" | prune_now (self) | 
| prune_now(self) Prune children. | |
| "void" | clr_prune (self) | 
| clr_prune(self) Do not prune children. | |
| "void" | set_restart (self) | 
| set_restart(self) Restart the travesal. | |
| "void" | clr_restart (self) | 
| clr_restart(self) Do not restart. | |
| __init__ (self, "int" _flags) | |
| init(self, _flags) -> ctree_visitor_t | |
| "int" | apply_to (self, "citem_t" item, "citem_t" parent) | 
| apply_to(self, item, parent) -> int Traverse ctree. | |
| "int" | apply_to_exprs (self, "citem_t" item, "citem_t" parent) | 
| apply_to_exprs(self, item, parent) -> int Traverse only expressions. | |
| "cexpr_t *" | parent_expr (self) | 
| parent_expr(self) -> cexpr_t Get parent of the current item as an expression. | |
| "cinsn_t *" | parent_insn (self) | 
| parent_insn(self) -> cinsn_t Get parent of the current item as a statement. | |
| "int" | visit_insn (self, "cinsn_t" arg0) | 
| visit_insn(self, arg0) -> int Visit a statement. | |
| "int" | visit_expr (self, "cexpr_t" arg0) | 
| visit_expr(self, arg0) -> int Visit an expression. | |
| "int" | leave_insn (self, "cinsn_t" arg0) | 
| leave_insn(self, arg0) -> int Visit a statement after having visited its children. | |
| "int" | leave_expr (self, "cexpr_t" arg0) | 
| leave_expr(self, arg0) -> int Visit an expression after having visited its children. | |
| __disown__ (self) | |
| Static Public Attributes | |
| str | cv_flags = property(_ida_hexrays.ctree_visitor_t_cv_flags_get, _ida_hexrays.ctree_visitor_t_cv_flags_set, doc=) | 
| str | parents = property(_ida_hexrays.ctree_visitor_t_parents_get, _ida_hexrays.ctree_visitor_t_parents_set, doc=) | 
| str | bposvec = property(_ida_hexrays.ctree_visitor_t_bposvec_get, _ida_hexrays.ctree_visitor_t_bposvec_set, doc=) | 
| Properties | |
| thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag") | |
| __init__ | ( | self, | |
| "int" | _flags ) | 
| _flags | int | 
Reimplemented in cfunc_parentee_t, and ctree_parentee_t.
| __disown__ | ( | self | ) | 
Reimplemented in cfunc_parentee_t, and ctree_parentee_t.
| "int" apply_to | ( | self, | |
| "citem_t" | item, | ||
| "citem_t" | parent ) | 
The traversal will start at the specified item and continue until of one the visit_...() functions return a non-zero value.
| item | (C++: citem_t *) root of the ctree to traverse | 
| parent | (C++: citem_t *) parent of the specified item. can be specified as nullptr. | 
| "int" apply_to_exprs | ( | self, | |
| "citem_t" | item, | ||
| "citem_t" | parent ) | 
The traversal will start at the specified item and continue until of one the visit_...() functions return a non-zero value.
| item | (C++: citem_t *) root of the ctree to traverse | 
| parent | (C++: citem_t *) parent of the specified item. can be specified as nullptr. | 
| "void" clr_prune | ( | self | ) | 
This is an internal function, no need to call it.
| "void" clr_restart | ( | self | ) | 
This is an internal function, no need to call it.
| "bool" is_postorder | ( | self | ) | 
| "int" leave_expr | ( | self, | |
| "cexpr_t" | arg0 ) | 
This is a visitor function which should be overridden by a derived class to do some useful work. This visitor performs post-order traserval, i.e. an item is visited after its children.
| arg0 | cexpr_t * | 
| "int" leave_insn | ( | self, | |
| "cinsn_t" | arg0 ) | 
This is a visitor function which should be overridden by a derived class to do some useful work. This visitor performs post-order traserval, i.e. an item is visited after its children.
| arg0 | cinsn_t * | 
| "bool" maintain_parents | ( | self | ) | 
| "bool" must_prune | ( | self | ) | 
| "bool" must_restart | ( | self | ) | 
| "bool" only_insns | ( | self | ) | 
| "cexpr_t *" parent_expr | ( | self | ) | 
| "cinsn_t *" parent_insn | ( | self | ) | 
| "void" prune_now | ( | self | ) | 
This function may be called by a visitor() to skip all children of the current item.
| "void" set_restart | ( | self | ) | 
Meaningful only in apply_to_exprs()
| "int" visit_expr | ( | self, | |
| "cexpr_t" | arg0 ) | 
This is a visitor function which should be overridden by a derived class to do some useful work. This visitor performs pre-order traserval, i.e. an item is visited before its children.
| arg0 | cexpr_t * | 
| "int" visit_insn | ( | self, | |
| "cinsn_t" | arg0 ) | 
This is a visitor function which should be overridden by a derived class to do some useful work. This visitor performs pre-order traserval, i.e. an item is visited before its children.
| arg0 | cinsn_t * | 
| 
 | static | 
| 
 | static | 
| 
 | static | 
| 
 | static |