![]() |
|
|
#include <classtablemodel.h>
Collaboration diagram for inspectorj::model::ClassTableModel:
Definition at line 43 of file classtablemodel.h.
Public Slots | |
void | initModel (JDWPPacket &) |
Initialize this model with data from a JDWPPacket. | |
Public Member Functions | |
ClassTableModel (QVector< JavaClass * > &, SessionProfile **=0) | |
Constructor. | |
~ClassTableModel () | |
Destructor. | |
int | rowCount (const QModelIndex &parent) const |
Returns the number of rows in this model. | |
int | columnCount (const QModelIndex &parent) const |
Returns the number of columns in this model. | |
QVariant | data (const QModelIndex &index, int role) const |
Returns the data to be displayed at the given index. | |
QVariant | headerData (int section, Qt::Orientation orientation, int role) const |
Returns the header data to be displyed by the table view. | |
int | getTotalClassesLoaded () |
Returns the total number of classes (references) loaded in the jvm. | |
int | getFilteredClassesLoaded () |
Returns the number of classes (references) loaded in the jvm that match the current profile's classFilters. | |
const JavaClass * | getClassAtIndex (const QModelIndex &) |
Returns a pointer to the class at the specified index. | |
Private Attributes | |
int | totalClassesLoaded |
The total number of loaded references in the jvm. | |
int | filteredClassesLoaded |
The total number of loaded references that match the profile's filters. | |
SessionProfile ** | profile |
Pointer to the currently loaded *SessionProfile. | |
QVector< JavaClass * > & | classes |
A vector of class data. | |
QList< QRegExp > | regexFilterList |
Class filters. |
inspectorj::model::ClassTableModel::ClassTableModel | ( | QVector< JavaClass * > & | , | |
SessionProfile ** | = 0 | |||
) |
inspectorj::model::ClassTableModel::~ClassTableModel | ( | ) |
int inspectorj::model::ClassTableModel::rowCount | ( | const QModelIndex & | parent | ) | const |
Returns the number of rows in this model.
parent | The QModelIndex |
Definition at line 68 of file classtablemodel.cpp.
References classes.
int inspectorj::model::ClassTableModel::columnCount | ( | const QModelIndex & | parent | ) | const |
Returns the number of columns in this model.
parent | The QModelIndex |
Definition at line 77 of file classtablemodel.cpp.
QVariant inspectorj::model::ClassTableModel::data | ( | const QModelIndex & | index, | |
int | role | |||
) | const |
Returns the data to be displayed at the given index.
index | The QModelIndex | |
role | The role |
Definition at line 87 of file classtablemodel.cpp.
References classes.
QVariant inspectorj::model::ClassTableModel::headerData | ( | int | section, | |
Qt::Orientation | orientation, | |||
int | role | |||
) | const |
Returns the header data to be displyed by the table view.
Definition at line 103 of file classtablemodel.cpp.
int inspectorj::model::ClassTableModel::getTotalClassesLoaded | ( | ) |
Returns the total number of classes (references) loaded in the jvm.
Definition at line 205 of file classtablemodel.cpp.
References totalClassesLoaded.
Referenced by inspectorj::client::InspectorJ::updateClassTable().
int inspectorj::model::ClassTableModel::getFilteredClassesLoaded | ( | ) |
Returns the number of classes (references) loaded in the jvm that match the current profile's classFilters.
Definition at line 214 of file classtablemodel.cpp.
References filteredClassesLoaded.
Referenced by inspectorj::client::InspectorJ::updateClassTable().
const JavaClass * inspectorj::model::ClassTableModel::getClassAtIndex | ( | const QModelIndex & | ) |
Returns a pointer to the class at the specified index.
Definition at line 223 of file classtablemodel.cpp.
References classes.
void inspectorj::model::ClassTableModel::initModel | ( | JDWPPacket & | packet | ) | [slot] |
Initialize this model with data from a JDWPPacket.
The data will be passed through regexFilterList if they exist.
packet | The JDWPPacket |
Definition at line 130 of file classtablemodel.cpp.
References classes, inspectorj::toolset::ToolSetUtils::createClassFilter(), filteredClassesLoaded, inspectorj::model::javaClassSort(), inspectorj::toolset::ToolSetUtils::normalizeClassSignature(), profile, regexFilterList, and totalClassesLoaded.
int inspectorj::model::ClassTableModel::totalClassesLoaded [private] |
The total number of loaded references in the jvm.
Definition at line 64 of file classtablemodel.h.
Referenced by getTotalClassesLoaded(), and initModel().
The total number of loaded references that match the profile's filters.
Definition at line 67 of file classtablemodel.h.
Referenced by getFilteredClassesLoaded(), and initModel().
Pointer to the currently loaded *SessionProfile.
Definition at line 70 of file classtablemodel.h.
Referenced by initModel().
QVector<JavaClass*>& inspectorj::model::ClassTableModel::classes [private] |
A vector of class data.
Definition at line 73 of file classtablemodel.h.
Referenced by data(), getClassAtIndex(), initModel(), and rowCount().
QList<QRegExp> inspectorj::model::ClassTableModel::regexFilterList [private] |