AL_USDMaya  0.29.4
USD to Maya Bridge
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
AL::usdmaya::ProfilerSectionPath Class Reference

This class represents a path made up of AL::usdmaya::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 AL::usdmaya::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 AL::usdmaya::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::usdmaya::ProfilerSectionPath::ProfilerSectionPath ( const AL::usdmaya::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::usdmaya::ProfilerSectionPath::hash ( ) const
inline

return the hash of this class

Returns
the hash of this class
bool AL::usdmaya::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: