ij-16.png   inspectorJ -- JavaTM Profiler
sf project site browse source checkout source
SourceForge.net Logo



inspectorj::model::ClassTableModel Class Reference

#include <classtablemodel.h>

Collaboration diagram for inspectorj::model::ClassTableModel:

Collaboration graph
[legend]
List of all members.

Detailed Description

ClassTableModel is a QAbstractTableModel for representing a tabular view of java classes.

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 JavaClassgetClassAtIndex (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.


Constructor & Destructor Documentation

inspectorj::model::ClassTableModel::ClassTableModel ( QVector< JavaClass * > &  ,
SessionProfile **  = 0 
)

Constructor.

Definition at line 47 of file classtablemodel.cpp.

inspectorj::model::ClassTableModel::~ClassTableModel (  ) 

Destructor.

Definition at line 60 of file classtablemodel.cpp.


Member Function Documentation

int inspectorj::model::ClassTableModel::rowCount ( const QModelIndex &  parent  )  const

Returns the number of rows in this model.

Parameters:
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.

Parameters:
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.

Parameters:
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.

Parameters:
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.


Member Data Documentation

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().

int inspectorj::model::ClassTableModel::filteredClassesLoaded [private]

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().

SessionProfile** inspectorj::model::ClassTableModel::profile [private]

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]

Class filters.

Definition at line 76 of file classtablemodel.h.

Referenced by initModel().


The documentation for this class was generated from the following files:
Generated on Sun Aug 19 17:08:17 2007 for inspectorJ by  doxygen 1.5.1