Skyscraper 2.0
SBS::ProfileIterator Class Reference

An iterator to navigate through the tree. More...

#include <profiler.h>

Collaboration diagram for SBS::ProfileIterator:

Public Member Functions

void First (void)
 
void Next (void)
 
bool Is_Done (void)
 
bool Is_Root (void)
 
void Enter_Child (int index)
 
void Enter_Largest_Child (void)
 
void Enter_Parent (void)
 
const char * Get_Current_Name (void)
 
int Get_Current_Total_Calls (void)
 
float Get_Current_Total_Time (void)
 
const char * Get_Current_Parent_Name (void)
 
int Get_Current_Parent_Total_Calls (void)
 
float Get_Current_Parent_Total_Time (void)
 

Protected Member Functions

 ProfileIterator (ProfileNode *start)
 

Protected Attributes

ProfileNodeCurrentParent
 
ProfileNodeCurrentChild
 

Friends

class ProfileManager
 

Detailed Description

An iterator to navigate through the tree.

Definition at line 52 of file profiler.h.

Constructor & Destructor Documentation

◆ ProfileIterator()

SBS::ProfileIterator::ProfileIterator ( ProfileNode * start)
protected

Definition at line 155 of file profiler.cpp.

References CurrentChild, CurrentParent, and SBS::ProfileNode::Get_Child().

Here is the call graph for this function:

Member Function Documentation

◆ Enter_Child()

void SBS::ProfileIterator::Enter_Child ( int index)

Definition at line 180 of file profiler.cpp.

References CurrentChild, CurrentParent, SBS::ProfileNode::Get_Child(), and SBS::ProfileNode::Get_Sibling().

Referenced by SBS::ProfileManager::dumpRecursive().

Here is the call graph for this function:

◆ Enter_Largest_Child()

void SBS::ProfileIterator::Enter_Largest_Child ( void )

◆ Enter_Parent()

void SBS::ProfileIterator::Enter_Parent ( void )

Definition at line 195 of file profiler.cpp.

References CurrentChild, CurrentParent, SBS::ProfileNode::Get_Child(), and SBS::ProfileNode::Get_Parent().

Referenced by SBS::ProfileManager::dumpRecursive().

Here is the call graph for this function:

◆ First()

void SBS::ProfileIterator::First ( void )

Definition at line 162 of file profiler.cpp.

References CurrentChild, CurrentParent, and SBS::ProfileNode::Get_Child().

Referenced by SBS::ProfileManager::dumpRecursive().

Here is the call graph for this function:

◆ Get_Current_Name()

const char * SBS::ProfileIterator::Get_Current_Name ( void )
inline

Definition at line 66 of file profiler.h.

Referenced by SBS::ProfileManager::dumpRecursive().

◆ Get_Current_Parent_Name()

const char * SBS::ProfileIterator::Get_Current_Parent_Name ( void )
inline

Definition at line 71 of file profiler.h.

Referenced by SBS::ProfileManager::dumpRecursive().

◆ Get_Current_Parent_Total_Calls()

int SBS::ProfileIterator::Get_Current_Parent_Total_Calls ( void )
inline

Definition at line 72 of file profiler.h.

◆ Get_Current_Parent_Total_Time()

float SBS::ProfileIterator::Get_Current_Parent_Total_Time ( void )
inline

Definition at line 73 of file profiler.h.

Referenced by SBS::ProfileManager::dumpRecursive().

◆ Get_Current_Total_Calls()

int SBS::ProfileIterator::Get_Current_Total_Calls ( void )
inline

Definition at line 67 of file profiler.h.

Referenced by SBS::ProfileManager::dumpRecursive().

◆ Get_Current_Total_Time()

float SBS::ProfileIterator::Get_Current_Total_Time ( void )
inline

Definition at line 68 of file profiler.h.

Referenced by SBS::ProfileManager::dumpRecursive().

◆ Is_Done()

bool SBS::ProfileIterator::Is_Done ( void )

Definition at line 174 of file profiler.cpp.

References CurrentChild.

Referenced by SBS::ProfileManager::dumpRecursive().

◆ Is_Root()

bool SBS::ProfileIterator::Is_Root ( void )
inline

Definition at line 59 of file profiler.h.

Referenced by SBS::ProfileManager::dumpRecursive().

◆ Next()

void SBS::ProfileIterator::Next ( void )

Definition at line 168 of file profiler.cpp.

References CurrentChild, and SBS::ProfileNode::Get_Sibling().

Referenced by SBS::ProfileManager::dumpRecursive().

Here is the call graph for this function:

Friends And Related Symbol Documentation

◆ ProfileManager

friend class ProfileManager
friend

Definition at line 81 of file profiler.h.

Member Data Documentation

◆ CurrentChild

ProfileNode* SBS::ProfileIterator::CurrentChild
protected

Definition at line 78 of file profiler.h.

Referenced by Enter_Child(), Enter_Parent(), First(), Is_Done(), Next(), and ProfileIterator().

◆ CurrentParent

ProfileNode* SBS::ProfileIterator::CurrentParent
protected

Definition at line 77 of file profiler.h.

Referenced by Enter_Child(), Enter_Parent(), First(), and ProfileIterator().


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