VR-Forces 4.5 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Member Functions | Protected Attributes | Friends
makVrf::DtProfileIterator Class Reference

An Iterator for navigating through the function call tree. More...

Public Member Functions

void first ()
 reset the iterator to the first child in the current level
void next ()
 move to the next child
bool isDone () const
 if the iterator has reached the end of the list
void enterChild (int index)
 Enter into a child node if it exists negative indexes will cause no change indexes greater than the number of children will cause the first child to be selected.
void enterParent ()
 Enter the parent if it exists.
void enterLargestChild ()
 enter the child with the largest amount of time
const charcurrentName ()
 the name of the current node.
int currentTotalCalls ()
 the number of calls of the current node since the last reset Do not call if isDone()==true
DtProfileStat currentTotalTime ()
 the total time spent in the current node since the last reset Do not call if isDone()==true
const charcurrentParentName () const
 the name of the parent of the current node
int currentParentTotalCalls () const
 the number calls of the parent of the current node since the last reset
DtProfileStat currentParentTotalTime () const
 the total time of the parent of the current node since the last reset
DtProfileNodecurrentNode ()
 pointer to the current node
DtProfileNodecurrenParent ()
 pointer to the parent of the current node

Protected Member Functions

 DtProfileIterator (DtProfileNode *start)
 Only created by the profile manager.

Protected Attributes

DtProfileNodemyCurrentParent
DtProfileNodemyCurrentChild

Friends

class DtProfileManager

Detailed Description

An Iterator for navigating through the function call tree.

Constructor & Destructor Documentation

makVrf::DtProfileIterator::DtProfileIterator ( DtProfileNode start)
protected

Only created by the profile manager.

Member Function Documentation

void makVrf::DtProfileIterator::first ( )

reset the iterator to the first child in the current level

void makVrf::DtProfileIterator::next ( )

move to the next child

bool makVrf::DtProfileIterator::isDone ( ) const

if the iterator has reached the end of the list

void makVrf::DtProfileIterator::enterChild ( int  index)

Enter into a child node if it exists negative indexes will cause no change indexes greater than the number of children will cause the first child to be selected.

void makVrf::DtProfileIterator::enterParent ( )

Enter the parent if it exists.

void makVrf::DtProfileIterator::enterLargestChild ( )

enter the child with the largest amount of time

const char* makVrf::DtProfileIterator::currentName ( )

the name of the current node.

Do not call if isDone()==true

int makVrf::DtProfileIterator::currentTotalCalls ( )

the number of calls of the current node since the last reset Do not call if isDone()==true

DtProfileStat makVrf::DtProfileIterator::currentTotalTime ( )

the total time spent in the current node since the last reset Do not call if isDone()==true

const char* makVrf::DtProfileIterator::currentParentName ( ) const

the name of the parent of the current node

int makVrf::DtProfileIterator::currentParentTotalCalls ( ) const

the number calls of the parent of the current node since the last reset

DtProfileStat makVrf::DtProfileIterator::currentParentTotalTime ( ) const

the total time of the parent of the current node since the last reset

DtProfileNode* makVrf::DtProfileIterator::currentNode ( )

pointer to the current node

DtProfileNode* makVrf::DtProfileIterator::currenParent ( )

pointer to the parent of the current node

Friends And Related Function Documentation

friend class DtProfileManager
friend

Member Data Documentation

DtProfileNode* makVrf::DtProfileIterator::myCurrentParent
protected
DtProfileNode* makVrf::DtProfileIterator::myCurrentChild
protected

The documentation for this class was generated from the following file:

Document ID: Generated on Thu Mar 23 18:54:12 EDT 2017 from SVN revision 174804
Copyright © 2005-2017 VT MÄK. All Rights Reserved (www.mak.com)