VariableListItem Class Reference

Detailed Description

An item part of VariableListModel.

Public Member Functions

 VariableListItem (FunctionRef func, BinaryNinja::Variable var, BinaryNinja::PossibleValueSet pvs, bool hasUidf, std::string name)
 Create a new VariableListItem of the LocalVariable type. More...
 
 VariableListItem (FunctionRef func, BinaryNinja::DataVariable dataVar, uint64_t refPoint, std::string name)
 Create a new VariableListItem of the DataVariable type. More...
 
VariableListItemType type () const
 Get the type of this list item. More...
 
std::string name () const
 Get the represented variable's display name. More...
 
std::string constantValue () const
 Get the data variable's value; use with data variable items only. More...
 
BinaryNinja::PossibleValueSet possibleValueSet () const
 Get the variable possible value set; use with local variable items only. More...
 
bool hasUidf () const
 Is the PVS user-provided? Use with local variable items only. More...
 
std::vector< BinaryNinja::InstructionTextTokentokensBeforeName () const
 
std::vector< BinaryNinja::InstructionTextTokentokensAfterName () const
 
std::vector< BinaryNinja::InstructionTextTokendisplayTokens () const
 Shorthand to get concatenated type, name, and value tokens. More...
 
BinaryNinja::Variable variable () const
 Get the represented variable; use with variable items only. More...
 
BinaryNinja::DataVariable dataVariable () const
 Get the represented data variable; use with data variable items only. More...
 
uint64_t refPoint () const
 Get the first use of this variable; use with data variables items only. More...
 
bool isUserDefined () const
 Is any part of this item user-defined? More...
 

Constructor & Destructor Documentation

◆ VariableListItem() [1/2]

VariableListItem::VariableListItem ( FunctionRef  func,
BinaryNinja::Variable  var,
BinaryNinja::PossibleValueSet  pvs,
bool  hasUidf,
std::string  name 
)

Create a new VariableListItem of the LocalVariable type.

◆ VariableListItem() [2/2]

VariableListItem::VariableListItem ( FunctionRef  func,
BinaryNinja::DataVariable  dataVar,
uint64_t  refPoint,
std::string  name 
)

Create a new VariableListItem of the DataVariable type.

Member Function Documentation

◆ constantValue()

std::string VariableListItem::constantValue ( ) const

Get the data variable's value; use with data variable items only.

◆ dataVariable()

BinaryNinja::DataVariable VariableListItem::dataVariable ( ) const

Get the represented data variable; use with data variable items only.

◆ displayTokens()

std::vector< BinaryNinja::InstructionTextToken > VariableListItem::displayTokens ( ) const

Shorthand to get concatenated type, name, and value tokens.

◆ hasUidf()

bool VariableListItem::hasUidf ( ) const

Is the PVS user-provided? Use with local variable items only.

◆ isUserDefined()

bool VariableListItem::isUserDefined ( ) const

Is any part of this item user-defined?

◆ name()

std::string VariableListItem::name ( ) const

Get the represented variable's display name.

◆ possibleValueSet()

BinaryNinja::PossibleValueSet VariableListItem::possibleValueSet ( ) const

Get the variable possible value set; use with local variable items only.

◆ refPoint()

uint64_t VariableListItem::refPoint ( ) const

Get the first use of this variable; use with data variables items only.

◆ tokensAfterName()

std::vector< BinaryNinja::InstructionTextToken > VariableListItem::tokensAfterName ( ) const

◆ tokensBeforeName()

std::vector< BinaryNinja::InstructionTextToken > VariableListItem::tokensBeforeName ( ) const

◆ type()

VariableListItemType VariableListItem::type ( ) const

Get the type of this list item.

◆ variable()

BinaryNinja::Variable VariableListItem::variable ( ) const

Get the represented variable; use with variable items only.


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