• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdesdk API Reference
  • KDE Home
  • Contact Us
 

kcachegrind

Public Member Functions | List of all members
EventTypeMapping Class Reference

#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.

int EventTypeMapping::count ( )
inline

Get number of used indexes.

Definition at line 184 of file eventtype.h.

int EventTypeMapping::firstUnused ( )
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.

bool EventTypeMapping::isIdentity ( )
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.

int EventTypeMapping::nextUnused ( int  i)
inline

Definition at line 205 of file eventtype.h.

int EventTypeMapping::realIndex ( int  i)
inline

Definition at line 191 of file eventtype.h.

EventTypeSet* EventTypeMapping::set ( )
inline

Definition at line 179 of file eventtype.h.


The documentation for this class was generated from the following files:
  • eventtype.h
  • eventtype.cpp
This file is part of the KDE documentation.
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.

kcachegrind

Skip menu "kcachegrind"
  • Main Page
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdesdk API Reference

Skip menu "kdesdk API Reference"
  • kapptemplate
  • kcachegrind
  • kompare
  • lokalize
  • okteta
  • umbrello
  •   umbrello

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal