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