IDAPython 8.4
Loading...
Searching...
No Matches
ctree_item_t Class Reference

Proxy of C++ ctree_item_t class.

Inheritance diagram for ctree_item_t:

Public Member Functions

"member_t *" get_memptr (self, *args)
 get_memptr(self, p_sptr=None) -> member_t * Get pointer to structure member.
 
"int" get_udm (self, *args)
 get_udm(self, udm=None, parent=None, p_offset=None) -> int Get type of a structure field.
 
"int" get_edm (self, *args)
 get_edm(self, parent) -> int Get type of an enum member.
 
"lvar_t *" get_lvar (self, *args)
 get_lvar(self) -> lvar_t Get pointer to local variable.
 
"ea_t" get_ea (self, *args)
 get_ea(self) -> ea_t Get address of the current item.
 
"int" get_label_num (self, *args)
 get_label_num(self, gln_flags) -> int Get label number of the current item.
 
"bool" is_citem (self, *args)
 is_citem(self) -> bool Is the current item is a ctree item?
 
"char const *" dstr (self, *args)
 dstr(self) -> char const *
 
 __init__ (self, *args)
 init(self) -> ctree_item_t
 

Protected Member Functions

"void" _print (self, *args)
 _print(self)
 
"citem_t *" _get_it (self, *args)
 _get_it(self) -> citem_t
 
"cexpr_t *" _get_e (self, *args)
 _get_e(self) -> cexpr_t
 
"cinsn_t *" _get_i (self, *args)
 _get_i(self) -> cinsn_t
 
"lvar_t *" _get_l (self, *args)
 _get_l(self) -> lvar_t
 
"cfunc_t *" _get_f (self, *args)
 _get_f(self) -> cfunc_t
 

Properties

 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
 
 citype = property(_ida_hexrays.ctree_item_t_citype_get, _ida_hexrays.ctree_item_t_citype_set, doc=)
 
 it = property(_ida_hexrays.ctree_item_t_it_get, _ida_hexrays.ctree_item_t_it_set, doc=)
 
 e = property(_ida_hexrays.ctree_item_t_e_get, _ida_hexrays.ctree_item_t_e_set, doc=)
 
 i = property(_ida_hexrays.ctree_item_t_i_get, _ida_hexrays.ctree_item_t_i_set, doc=)
 
 l = property(_ida_hexrays.ctree_item_t_l_get, _ida_hexrays.ctree_item_t_l_set, doc=)
 
 f = property(_ida_hexrays.ctree_item_t_f_get, _ida_hexrays.ctree_item_t_f_set, doc=)
 
 loc = property(_ida_hexrays.ctree_item_t_loc_get, doc=)
 

Constructor & Destructor Documentation

◆ __init__()

__init__ ( self,
* args )

Member Function Documentation

◆ _get_e()

"cexpr_t *" _get_e ( self,
* args )
protected

◆ _get_f()

"cfunc_t *" _get_f ( self,
* args )
protected

◆ _get_i()

"cinsn_t *" _get_i ( self,
* args )
protected

◆ _get_it()

"citem_t *" _get_it ( self,
* args )
protected

◆ _get_l()

"lvar_t *" _get_l ( self,
* args )
protected

◆ _print()

"void" _print ( self,
* args )
protected

◆ dstr()

"char const *" dstr ( self,
* args )

◆ get_ea()

"ea_t" get_ea ( self,
* args )

Each ctree item has an address.

Returns
: BADADDR if failed

◆ get_edm()

"int" get_edm ( self,
* args )

If the current item is a symbolic constant, this function will return information about it.

Parameters
parent(C++: tinfo_t *) pointer to buffer for the enum type.
Returns
: member index or -1 if failed

◆ get_label_num()

"int" get_label_num ( self,
* args )
Parameters
gln_flags(C++: int) Combination of get_label_num control bits
Returns
: -1 if failed or no label

◆ get_lvar()

"lvar_t *" get_lvar ( self,
* args )

If the current item is a local variable, this function will return pointer to its definition.

Returns
: nullptr if failed

◆ get_memptr()

"member_t *" get_memptr ( self,
* args )

If the current item is a structure field, this function will return pointer to its definition.

Parameters
p_sptr(C++: struc_t **) pointer to the variable where the pointer to the parent structure is returned. This parameter can be nullptr.
Returns
: nullptr if failed OBSOLETE FUNCTION, do not use!

◆ get_udm()

"int" get_udm ( self,
* args )

If the current item is a structure/union field, this function will return information about it.

Parameters
udm(C++: udm_t *) pointer to buffer for the udt member info.
parent(C++: tinfo_t *) pointer to buffer for the struct/union type.
p_offset(C++: uint64 *) pointer to the offset in bits inside udt.
Returns
: member index or -1 if failed Both output parameters can be nullptr.

◆ is_citem()

"bool" is_citem ( self,
* args )

Property Documentation

◆ citype

citype = property(_ida_hexrays.ctree_item_t_citype_get, _ida_hexrays.ctree_item_t_citype_set, doc=)
static

◆ e

e = property(_ida_hexrays.ctree_item_t_e_get, _ida_hexrays.ctree_item_t_e_set, doc=)
static

◆ f

f = property(_ida_hexrays.ctree_item_t_f_get, _ida_hexrays.ctree_item_t_f_set, doc=)
static

◆ i

i = property(_ida_hexrays.ctree_item_t_i_get, _ida_hexrays.ctree_item_t_i_set, doc=)
static

◆ it

it = property(_ida_hexrays.ctree_item_t_it_get, _ida_hexrays.ctree_item_t_it_set, doc=)
static

◆ l

l = property(_ida_hexrays.ctree_item_t_l_get, _ida_hexrays.ctree_item_t_l_set, doc=)
static

◆ loc

loc = property(_ida_hexrays.ctree_item_t_loc_get, doc=)
static

◆ thisown

thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
static

The documentation for this class was generated from the following file: