IDA C++ SDK 9.2
Loading...
Searching...
No Matches
ctree_item_t Struct Reference

Cursor item. More...

#include <hexrays.hpp>

Public Member Functions

void verify (const mba_t *mba) const
int hexapi get_udm (udm_t *udm=nullptr, tinfo_t *parent=nullptr, uint64 *p_offset=nullptr) const
 Get type of a structure field.
int hexapi get_edm (tinfo_t *parent) const
 Get type of an enum member.
lvar_t *hexapi get_lvar () const
 Get pointer to local variable.
ea_t hexapi get_ea () const
 Get address of the current item.
int hexapi get_label_num (int gln_flags) const
 Get label number of the current item.
bool is_citem () const
 Is the current item is a ctree item?
void hexapi print (qstring *vout) const
const char *hexapi dstr () const

Public Attributes

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

Detailed Description

Cursor item.

Information about the item under the cursor

Member Function Documentation

◆ verify()

void ctree_item_t::verify ( const mba_t * mba) const

◆ get_udm()

int ctree_item_t::get_udm ( udm_t * udm = nullptr,
tinfo_t * parent = nullptr,
uint64 * p_offset = nullptr ) const
inline

Get type of a structure field.

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

Parameters
[out]udmpointer to buffer for the udt member info.
[out]parentpointer to buffer for the struct/union type.
[out]p_offsetpointer to the offset in bits inside udt.
Returns
member index or -1 if failed Both output parameters can be nullptr.

◆ get_edm()

int ctree_item_t::get_edm ( tinfo_t * parent) const
inline

Get type of an enum member.

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

Parameters
[out]parentpointer to buffer for the enum type.
Returns
member index or -1 if failed

◆ get_lvar()

lvar_t * ctree_item_t::get_lvar ( ) const
inline

Get pointer to local variable.

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

Returns
nullptr if failed

◆ get_ea()

ea_t ctree_item_t::get_ea ( ) const
inline

Get address of the current item.

Each ctree item has an address.

Returns
BADADDR if failed

◆ get_label_num()

int ctree_item_t::get_label_num ( int gln_flags) const
inline

Get label number of the current item.

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

◆ is_citem()

bool ctree_item_t::is_citem ( ) const
inline

Is the current item is a ctree item?

◆ print()

void ctree_item_t::print ( qstring * vout) const
inline

◆ dstr()

const char * ctree_item_t::dstr ( ) const
inline

Member Data Documentation

◆ citype

cursor_item_type_t ctree_item_t::citype = VDI_NONE

Item type.

◆ it

citem_t* ctree_item_t::it

◆ e

cexpr_t* ctree_item_t::e

VDI_EXPR: Expression.

◆ i

cinsn_t* ctree_item_t::i

VDI_EXPR: Statement.

◆ l

lvar_t* ctree_item_t::l

VDI_LVAR: Local variable.

◆ f

cfunc_t* ctree_item_t::f

VDI_FUNC: Function.

◆ loc

treeloc_t ctree_item_t::loc

VDI_TAIL: Line tail.

◆ [union]

union { ... } ctree_item_t

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