retdec
|
#include <vtable.h>
Public Member Functions | |
VtableItem (const retdec::common::Address &a=retdec::common::Address::Undefined, const retdec::common::Address &target=retdec::common::Address::Undefined, bool isThumb=false) | |
bool | operator< (const VtableItem &o) const |
bool | operator== (const VtableItem &o) const |
VtableItem set methods. | |
void | setAddress (const retdec::common::Address &a) |
void | setTargetFunctionAddress (const retdec::common::Address &a) |
void | setTargetFunctionName (const std::string &n) |
void | setIsThumb (bool isThumb) |
VtableItem get methods. | |
retdec::common::Address | getId () const |
retdec::common::Address | getAddress () const |
retdec::common::Address | getTargetFunctionAddress () const |
std::string | getTargetFunctionName () const |
bool | isThumb () const |
Private Attributes | |
retdec::common::Address | _address |
Virtual table item's address in binary file. More... | |
retdec::common::Address | _targetAddress |
Virtual function address for this item. More... | |
std::string | _targetFunctionName |
Name (unique ID) of function on target address. More... | |
bool | _isThumb = false |
Represents C++ virtual table. Table address is its unique ID.
retdec::common::VtableItem::VtableItem | ( | const retdec::common::Address & | a = retdec::common::Address::Undefined , |
const retdec::common::Address & | target = retdec::common::Address::Undefined , |
||
bool | isThumb = false |
||
) |
retdec::common::Address retdec::common::VtableItem::getAddress | ( | ) | const |
retdec::common::Address retdec::common::VtableItem::getId | ( | ) | const |
retdec::common::Address retdec::common::VtableItem::getTargetFunctionAddress | ( | ) | const |
std::string retdec::common::VtableItem::getTargetFunctionName | ( | ) | const |
bool retdec::common::VtableItem::isThumb | ( | ) | const |
bool retdec::common::VtableItem::operator< | ( | const VtableItem & | o | ) | const |
Virtual table items are ordered by their addresses in binary file.
bool retdec::common::VtableItem::operator== | ( | const VtableItem & | o | ) | const |
Two virtual table items are equal if their addresses in binary file are equal.
void retdec::common::VtableItem::setAddress | ( | const retdec::common::Address & | a | ) |
void retdec::common::VtableItem::setIsThumb | ( | bool | isThumb | ) |
void retdec::common::VtableItem::setTargetFunctionAddress | ( | const retdec::common::Address & | a | ) |
void retdec::common::VtableItem::setTargetFunctionName | ( | const std::string & | n | ) |
|
private |
Virtual table item's address in binary file.
|
private |
Is the target function a THUMB function? This typically means that its address in the table was odd.
|
private |
Virtual function address for this item.
|
private |
Name (unique ID) of function on target address.