AL_USDMaya  0.16.6
USD to Maya Bridge
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
AL::maya::ProfilerSectionPath Class Reference

This class represents a path made up of ProfilerSectionTag's. It is used so that we can distinguish between identical code sections, accessed from alternative paths, e.g. More...

#include <CodeTimings.h>

Public Member Functions

 ProfilerSectionPath (const ProfilerSectionTag *const top, const ProfilerSectionPath *const parent=0)
 ctor More...
 
bool operator== (const ProfilerSectionPath &rhs) const
 equality operator More...
 
size_t hash () const
 return the hash of this class More...
 

Friends

class Profiler
 

Detailed Description

This class represents a path made up of ProfilerSectionTag's. It is used so that we can distinguish between identical code sections, accessed from alternative paths, e.g.

void func1() {
}
void func2() {
func1();
}
void func3() {
func1();
}

In this case, we can access func1 via two paths: |func2|func1, and |func3|func1

Constructor & Destructor Documentation

AL::maya::ProfilerSectionPath::ProfilerSectionPath ( const ProfilerSectionTag *const  top,
const ProfilerSectionPath *const  parent = 0 
)
inline

ctor

Parameters
topthe top node on the profiling stack
parentthe parent path

Member Function Documentation

size_t AL::maya::ProfilerSectionPath::hash ( ) const
inline

return the hash of this class

Returns
the hash of this class
bool AL::maya::ProfilerSectionPath::operator== ( const ProfilerSectionPath rhs) const
inline

equality operator

Parameters
rhsthe right hand side of the comparison
Returns
true if the paths are the same

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