Public Member Functions | Public Attributes | List of all members
ctree_item_t Struct Reference

Cursor item. More...

Public Member Functions

void verify (const mbl_array_t *mba) const
 
member_t * get_memptr (struc_t **p_sptr=NULL) const
 Get pointer to structure member. More...
 
lvar_tget_lvar (void) const
 Get pointer to local variable. More...
 
ea_t get_ea (void) const
 Get address of the current item. More...
 
int get_label_num (int gln_flags) const
 Get label number of the current item. More...
 
bool is_citem (void) const
 Is the current item is a ctree item?
 

Public Attributes

cursor_item_type_t citype
 Item type.
 
union {
   citem_t *   it
 
   cexpr_t *   e
 VDI_EXPR: Expression.
 
   cinsn_t *   i
 VDI_EXPR: Statement.
 
   lvar_t *   l
 VDI_LVAR: Local variable.
 
   cfunc_t *   f
 VDI_FUNC: Function.
 
   treeloc_t   loc
 VDI_TAIL: Line tail.
 
}; 
 

Detailed Description

Cursor item.

Information about the item under the cursor

Definition at line 2185 of file hexrays.hpp.

Member Function Documentation

ea_t ctree_item_t::get_ea ( void  ) const

Get address of the current item.

Each ctree item has an address.

Returns
BADADDR if failed

Definition at line 5180 of file hexrays.hpp.

References hexdsp.

int ctree_item_t::get_label_num ( int  gln_flags) const

Get label number of the current item.

Parameters
[in]gln_flagsCombination of get_label_num control bits
Returns
-1 if failed or no label

Definition at line 5188 of file hexrays.hpp.

References hexdsp.

lvar_t * ctree_item_t::get_lvar ( void  ) const

Get pointer to local variable.

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

Returns
NULL if failed

Definition at line 5174 of file hexrays.hpp.

References hexdsp.

member_t * ctree_item_t::get_memptr ( struc_t **  p_sptr = NULL) const

Get pointer to structure member.

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

Returns
NULL if failed
Parameters
[out]p_sptrpointer to the variable where the pointer to the parent structure is returned. This parameter can be NULL.

Definition at line 5168 of file hexrays.hpp.

References hexdsp.