ClassesModel

class ClassesModel : public AddressableItemModel<>

Common abstract base class for Bin and Anal classes models.

Subclassed by AnalysisClassesModel, BinClassesModel

Public Types

enum Columns

Values:

enumerator NAME
enumerator REAL_NAME
enumerator TYPE
enumerator OFFSET
enumerator VTABLE
enumerator COUNT
enum class RowType

values for TypeRole data

Values:

enumerator Class
enumerator Base
enumerator VTable
enumerator Method
enumerator Field

Public Functions

inline explicit ClassesModel(QObject *parent = nullptr)
QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const override
virtual RVA address(const QModelIndex &index) const override
virtual QString name(const QModelIndex &index) const override

Get name for item, optional.

Parameters:

index – item intex

Returns:

Item name or empty QString if item doesn’t have short descriptive name.

Public Static Attributes

static const int OffsetRole = Qt::UserRole

Offset role of data for QModelIndex.

will contain values of type RVA

static const int NameRole = Qt::UserRole + 1

Name role of data for QModelIndex.

will contain values of QString, used for sorting, as well as identifying classes and methods

static const int TypeRole = Qt::UserRole + 2

Type role of data for QModelIndex.

will contain values of RowType

static const int VTableRole = Qt::UserRole + 3

VTable role of data for QModelIndex.

will contain values of type long long for sorting by vtable offset

static const int RealNameRole = Qt::UserRole + 4

Real Name role of data for QModelIndex.

will contain values of QString, used for sorting, as well as identifying classes and methods