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

Reference to a local variable. Used by mop_l. More...

#include <hexrays.hpp>

Public Member Functions

 lvar_ref_t (mba_t *m, int i, sval_t o=0)
 lvar_ref_t (const lvar_ref_t &r)
lvar_ref_toperator= (const lvar_ref_t &r)
 DECLARE_COMPARISONS (lvar_ref_t)
 HEXRAYS_MEMORY_ALLOCATION_FUNCS () void swap(lvar_ref_t &r)
lvar_t &hexapi var () const
 Retrieve the referenced variable.

Public Attributes

mba_t *const mba
 Pointer to the parent mba_t object.
sval_t off
 offset from the beginning of the variable
int idx
 index into mba->vars

Detailed Description

Reference to a local variable. Used by mop_l.

Constructor & Destructor Documentation

◆ lvar_ref_t() [1/2]

lvar_ref_t::lvar_ref_t ( mba_t * m,
int i,
sval_t o = 0 )
inline

◆ lvar_ref_t() [2/2]

lvar_ref_t::lvar_ref_t ( const lvar_ref_t & r)
inline

Member Function Documentation

◆ operator=()

lvar_ref_t & lvar_ref_t::operator= ( const lvar_ref_t & r)
inline

◆ DECLARE_COMPARISONS()

lvar_ref_t::DECLARE_COMPARISONS ( lvar_ref_t )

◆ HEXRAYS_MEMORY_ALLOCATION_FUNCS()

lvar_ref_t::HEXRAYS_MEMORY_ALLOCATION_FUNCS ( ) &
inline

◆ var()

lvar_t & lvar_ref_t::var ( ) const
inline

Retrieve the referenced variable.

Member Data Documentation

◆ mba

mba_t* const lvar_ref_t::mba

Pointer to the parent mba_t object.

Since we need to access the 'mba->vars' array in order to retrieve the referenced variable, we keep a pointer to mba_t here. Note: this means this class and consequently mop_t, minsn_t, mblock_t are specific to a mba_t object and cannot migrate between them. fortunately this is not something we need to do. second, lvar_ref_t's appear only after MMAT_LVARS.

◆ off

sval_t lvar_ref_t::off

offset from the beginning of the variable

◆ idx

int lvar_ref_t::idx

index into mba->vars


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