IDA C++ SDK 9.2
|
Basic ctree item. More...
#include <hexrays.hpp>
Public Member Functions | |
citem_t (ctype_t o=cot_empty) | |
void | swap (citem_t &r) |
Swap two citem_t. | |
bool | is_expr () const |
Is an expression? | |
bool hexapi | contains_expr (const cexpr_t *e) const |
Does the item contain an expression? | |
bool hexapi | contains_label () const |
Does the item contain a label? | |
const citem_t *hexapi | find_parent_of (const citem_t *item) const |
Find parent of the specified item. | |
citem_t * | find_parent_of (const citem_t *item) |
citem_t *hexapi | find_closest_addr (ea_t _ea) |
void | print1 (qstring *vout, const cfunc_t *func) const |
Print item into one line. | |
~citem_t () |
Public Attributes | |
ea_t | ea = BADADDR |
address that corresponds to the item. may be BADADDR | |
ctype_t | op |
item type | |
int | label_num = -1 |
label number. | |
int | index = -1 |
an index in cfunc_t::treeitems. |
Basic ctree item.
This is an abstract class (but we don't use virtual functions in ctree, so the compiler will not disallow you to create citem_t instances). However, items of pure citem_t type must never be created. Two classes, cexpr_t and cinsn_t are derived from it.
|
inline |
|
inline |
Is an expression?
|
inline |
Does the item contain a label?
Find parent of the specified item.
item | Item to find the parent of. The search will be performed among the children of the item pointed by this . |
Print item into one line.
vout | output buffer |
func | parent function. This argument is used to find out the referenced variable names. |
ea_t citem_t::ea = BADADDR |
address that corresponds to the item. may be BADADDR
ctype_t citem_t::op |
item type
int citem_t::label_num = -1 |
label number.
-1 means no label. items of the expression types (cot_...) should not have labels at the final maturity level, but at the intermediate levels any ctree item may have a label. Labels must be unique. Usually they correspond to the basic block numbers.
|
mutable |
an index in cfunc_t::treeitems.
meaningful only after print_func()