kcachegrind
#include <eventtype.h>
Public Member Functions | |
EventTypeMapping (EventTypeSet *) | |
bool | append (const QString &, bool create=true) |
bool | append (int) |
void | clear () |
int | count () |
int | firstUnused () |
bool | isIdentity () |
int | maxRealIndex (int count) |
int | nextUnused (int i) |
int | realIndex (int i) |
EventTypeSet * | set () |
Detailed Description
A index list into a EventTypeSet.
This ordered list maps from indexes into real cost types of a set.
You can define a set of event types by requesting submaps by name. Every new event type name will get a new real type index. EventTypeSet s; m1 = s.createMapping("Event1 Cost1 Cost2"); // returns mapping [0,1,2] m2 = s.createMapping("Event2 Cost3 Event1"); // returns mapping [3,4,0] Real types of s will be: (0:Event1, 1:Cost1, 2:Cost2, 3:Event2, 4:Cost3)
Definition at line 170 of file eventtype.h.
Constructor & Destructor Documentation
EventTypeMapping::EventTypeMapping | ( | EventTypeSet * | set | ) |
Definition at line 565 of file eventtype.cpp.
Member Function Documentation
bool EventTypeMapping::append | ( | const QString & | type, |
bool | create = true |
||
) |
Definition at line 594 of file eventtype.cpp.
bool EventTypeMapping::append | ( | int | type | ) |
Definition at line 602 of file eventtype.cpp.
void EventTypeMapping::clear | ( | ) |
Definition at line 571 of file eventtype.cpp.
|
inline |
Get number of used indexes.
Definition at line 184 of file eventtype.h.
|
inline |
Allows an iteration over the sorted list of all real indexes not used in this mapping, up to topIndex (use ProfileCostArray::MaxRealIndex for all).
Usage: for(i = firstUnused(); i < topIndex; i = nextUnused(i)) { LOOP }
Definition at line 204 of file eventtype.h.
|
inline |
Is this mapping the identity( i.e.
realIndex(i)=i ) ? This often allows for optimizations.
Definition at line 190 of file eventtype.h.
int EventTypeMapping::maxRealIndex | ( | int | count | ) |
Get maximal real index for the first <count> mapping indexes.
Definition at line 582 of file eventtype.cpp.
|
inline |
Definition at line 205 of file eventtype.h.
|
inline |
Definition at line 191 of file eventtype.h.
|
inline |
Definition at line 179 of file eventtype.h.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:03:28 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.