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_t & | operator= (const lvar_ref_t &r) |
DECLARE_COMPARISONS (lvar_ref_t) | |
void | swap (lvar_ref_t &r) |
lvar_t & | var (void) const |
Retrieve the referenced variable. More... | |
Public Attributes | |
mba_t *const | mba |
Pointer to the parent mba_t object. More... | |
sval_t | off |
offset from the beginning of the variable More... | |
int | idx |
index into mba->vars More... | |
Detailed Description
Reference to a local variable. Used by mop_l.
Definition at line 2272 of file hexrays.hpp.
Constructor & Destructor Documentation
◆ lvar_ref_t() [1/2]
lvar_ref_t::lvar_ref_t | ( | mba_t * | m, |
int | i, | ||
sval_t | o = 0 |
||
) |
Definition at line 2284 of file hexrays.hpp.
◆ lvar_ref_t() [2/2]
lvar_ref_t::lvar_ref_t | ( | const lvar_ref_t & | r | ) |
Definition at line 2285 of file hexrays.hpp.
Member Function Documentation
◆ operator=()
lvar_ref_t & lvar_ref_t::operator= | ( | const lvar_ref_t & | r | ) |
Definition at line 2286 of file hexrays.hpp.
◆ swap()
void lvar_ref_t::swap | ( | lvar_ref_t & | r | ) |
Definition at line 2294 of file hexrays.hpp.
◆ var()
lvar_t & lvar_ref_t::var | ( | void | ) | const |
Retrieve the referenced variable.
Definition at line 10456 of file hexrays.hpp.
Member Data Documentation
◆ idx
int lvar_ref_t::idx |
index into mba->vars
Definition at line 2283 of file hexrays.hpp.
◆ 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.
Definition at line 2281 of file hexrays.hpp.
◆ off
sval_t lvar_ref_t::off |
offset from the beginning of the variable
Definition at line 2282 of file hexrays.hpp.