HPCToolkit
Prof::Metric::Power Class Reference

#include <Metric-AExpr.hpp>

Inheritance diagram for Prof::Metric::Power:
Collaboration diagram for Prof::Metric::Power:

Public Types

typedef std::vector< AExpr * > AExprVec
 

Public Member Functions

 Power (AExpr *base, AExpr *exponent)
 
 ~Power ()
 
virtual double eval (const Metric::IData &mdata) const
 
virtual uint numSrcFxd () const
 
virtual std::ostream & dumpMe (std::ostream &os=std::cout) const
 
virtual double evalNF (Metric::IData &mdata) const
 
virtual std::string combineString1 () const
 
virtual std::string combineString2 () const
 
virtual std::string finalizeString () const
 
virtual uint accumId (int i) const
 
void accumId (int i, uint x)
 
virtual uint numAccum () const
 
virtual bool hasNumSrcVar () const
 
virtual uint numSrcVarId () const
 
void numSrcVarId (uint x)
 
double & accumVar (int i, Metric::IData &mdata) const
 
virtual std::string toString () const
 
virtual std::ostream & dump (std::ostream &os=std::cout) const
 
std::string combineString1Min () const
 
std::string finalizeStringMin () const
 
std::string combineString1Max () const
 
std::string finalizeStringMax () const
 
std::string combineString1StdDev () const
 
std::string combineString2StdDev () const
 
std::string combineString1Sum () const
 
std::string finalizeStringSum () const
 
std::string combineString1Mean () const
 
std::string finalizeStringMean () const
 
std::string finalizeStringStdDev (std::string *meanRet=NULL) const
 
std::string finalizeStringCoefVar () const
 
std::string finalizeStringRStdDev () const
 
std::string combineString1NumSource () const
 
std::string finalizeStringNumSource () const
 
std::string accumStr (int i) const
 
std::string numSrcStr () const
 
std::string numSrcFxdStr () const
 
std::string numSrcVarStr () const
 
void ddump () const
 

Static Public Member Functions

static bool isok (double x)
 
static double & var (Metric::IData &mdata, uint mId)
 

Protected Types

enum  { maxAccums = 2 }
 

Protected Member Functions

double evalStdDevNF (Metric::IData &mdata, AExpr **opands, uint sz) const
 

Static Protected Member Functions

static double evalSum (const Metric::IData &mdata, AExpr **opands, uint sz)
 
static std::pair< double, double > evalSumSquares (const Metric::IData &mdata, AExpr **opands, uint sz)
 
static double evalMean (const Metric::IData &mdata, AExpr **opands, uint sz)
 
static std::pair< double, double > evalVariance (const Metric::IData &mdata, AExpr **opands, uint sz)
 
static void dump_opands (std::ostream &os, AExpr **opands, uint sz, const char *sep=", ")
 

Protected Attributes

uint m_accumId [maxAccums]
 
uint m_numSrcVarId
 

Private Attributes

AExprm_base
 
AExprm_exponent
 

Detailed Description

Definition at line 475 of file Metric-AExpr.hpp.

Member Typedef Documentation

◆ AExprVec

typedef std::vector<AExpr*> Prof::Metric::AExpr::AExprVec
inherited

Definition at line 117 of file Metric-AExpr.hpp.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
protectedinherited
Enumerator
maxAccums 

Definition at line 330 of file Metric-IDBExpr.hpp.

Constructor & Destructor Documentation

◆ Power()

Prof::Metric::Power::Power ( AExpr base,
AExpr exponent 
)
inline

Definition at line 480 of file Metric-AExpr.hpp.

◆ ~Power()

Prof::Metric::Power::~Power ( )
inline

Definition at line 484 of file Metric-AExpr.hpp.

Here is the call graph for this function:

Member Function Documentation

◆ accumId() [1/2]

virtual uint Prof::Metric::AExpr::accumId ( int  i) const
inlinevirtualinherited

Implements Prof::Metric::IDBExpr.

Definition at line 178 of file Metric-AExpr.hpp.

Here is the caller graph for this function:

◆ accumId() [2/2]

void Prof::Metric::AExpr::accumId ( int  i,
uint  x 
)
inlineinherited

Definition at line 182 of file Metric-AExpr.hpp.

◆ accumStr()

std::string Prof::Metric::IDBExpr::accumStr ( int  i) const
inlineinherited

Definition at line 274 of file Metric-IDBExpr.hpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ accumVar()

double& Prof::Metric::AExpr::accumVar ( int  i,
Metric::IData mdata 
) const
inlineinherited

Definition at line 227 of file Metric-AExpr.hpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ combineString1()

virtual std::string Prof::Metric::AExpr::combineString1 ( ) const
inlinevirtualinherited

◆ combineString1Max()

std::string Prof::Metric::IDBExpr::combineString1Max ( ) const
inlineinherited

Definition at line 149 of file Metric-IDBExpr.hpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ combineString1Mean()

std::string Prof::Metric::IDBExpr::combineString1Mean ( ) const
inlineinherited

Definition at line 192 of file Metric-IDBExpr.hpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ combineString1Min()

std::string Prof::Metric::IDBExpr::combineString1Min ( ) const
inlineinherited

Definition at line 136 of file Metric-IDBExpr.hpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ combineString1NumSource()

std::string Prof::Metric::IDBExpr::combineString1NumSource ( ) const
inlineinherited

Definition at line 253 of file Metric-IDBExpr.hpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ combineString1StdDev()

std::string Prof::Metric::IDBExpr::combineString1StdDev ( ) const
inlineinherited

Definition at line 162 of file Metric-IDBExpr.hpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ combineString1Sum()

std::string Prof::Metric::IDBExpr::combineString1Sum ( ) const
inlineinherited

Definition at line 179 of file Metric-IDBExpr.hpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ combineString2()

virtual std::string Prof::Metric::AExpr::combineString2 ( ) const
inlinevirtualinherited

Implements Prof::Metric::IDBExpr.

Reimplemented in Prof::Metric::RStdDev, Prof::Metric::CoefVar, and Prof::Metric::StdDev.

Definition at line 165 of file Metric-AExpr.hpp.

◆ combineString2StdDev()

std::string Prof::Metric::IDBExpr::combineString2StdDev ( ) const
inlineinherited

Definition at line 170 of file Metric-IDBExpr.hpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ddump()

void Prof::Metric::IDBExpr::ddump ( ) const
inherited

Definition at line 85 of file Metric-IDBExpr.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ dump()

virtual std::ostream& Prof::Metric::AExpr::dump ( std::ostream &  os = std::cout) const
inlinevirtualinherited

Reimplemented from Prof::Metric::IDBExpr.

Definition at line 240 of file Metric-AExpr.hpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ dump_opands()

void Prof::Metric::AExpr::dump_opands ( std::ostream &  os,
AExpr **  opands,
uint  sz,
const char *  sep = ", " 
)
staticprotectedinherited

Definition at line 105 of file Metric-AExpr.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ dumpMe()

std::ostream & Prof::Metric::Power::dumpMe ( std::ostream &  os = std::cout) const
virtual

Implements Prof::Metric::AExpr.

Definition at line 181 of file Metric-AExpr.cpp.

◆ eval()

double Prof::Metric::Power::eval ( const Metric::IData mdata) const
virtual

Implements Prof::Metric::AExpr.

Definition at line 169 of file Metric-AExpr.cpp.

◆ evalMean()

static double Prof::Metric::AExpr::evalMean ( const Metric::IData mdata,
AExpr **  opands,
uint  sz 
)
inlinestaticprotectedinherited

Definition at line 284 of file Metric-AExpr.hpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ evalNF()

virtual double Prof::Metric::AExpr::evalNF ( Metric::IData mdata) const
inlinevirtualinherited

Reimplemented in Prof::Metric::RStdDev, Prof::Metric::CoefVar, Prof::Metric::StdDev, and Prof::Metric::Mean.

Definition at line 143 of file Metric-AExpr.hpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ evalStdDevNF()

double Prof::Metric::AExpr::evalStdDevNF ( Metric::IData mdata,
AExpr **  opands,
uint  sz 
) const
inlineprotectedinherited

Definition at line 311 of file Metric-AExpr.hpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ evalSum()

static double Prof::Metric::AExpr::evalSum ( const Metric::IData mdata,
AExpr **  opands,
uint  sz 
)
inlinestaticprotectedinherited

Definition at line 258 of file Metric-AExpr.hpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ evalSumSquares()

static std::pair<double, double> Prof::Metric::AExpr::evalSumSquares ( const Metric::IData mdata,
AExpr **  opands,
uint  sz 
)
inlinestaticprotectedinherited

Definition at line 270 of file Metric-AExpr.hpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ evalVariance()

static std::pair<double, double> Prof::Metric::AExpr::evalVariance ( const Metric::IData mdata,
AExpr **  opands,
uint  sz 
)
inlinestaticprotectedinherited

Definition at line 294 of file Metric-AExpr.hpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ finalizeString()

virtual std::string Prof::Metric::AExpr::finalizeString ( ) const
inlinevirtualinherited

◆ finalizeStringCoefVar()

std::string Prof::Metric::IDBExpr::finalizeStringCoefVar ( ) const
inlineinherited

Definition at line 233 of file Metric-IDBExpr.hpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ finalizeStringMax()

std::string Prof::Metric::IDBExpr::finalizeStringMax ( ) const
inlineinherited

Definition at line 157 of file Metric-IDBExpr.hpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ finalizeStringMean()

std::string Prof::Metric::IDBExpr::finalizeStringMean ( ) const
inlineinherited

Definition at line 200 of file Metric-IDBExpr.hpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ finalizeStringMin()

std::string Prof::Metric::IDBExpr::finalizeStringMin ( ) const
inlineinherited

Definition at line 144 of file Metric-IDBExpr.hpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ finalizeStringNumSource()

std::string Prof::Metric::IDBExpr::finalizeStringNumSource ( ) const
inlineinherited

Definition at line 262 of file Metric-IDBExpr.hpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ finalizeStringRStdDev()

std::string Prof::Metric::IDBExpr::finalizeStringRStdDev ( ) const
inlineinherited

Definition at line 243 of file Metric-IDBExpr.hpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ finalizeStringStdDev()

std::string Prof::Metric::IDBExpr::finalizeStringStdDev ( std::string *  meanRet = NULL) const
inlineinherited

Definition at line 214 of file Metric-IDBExpr.hpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ finalizeStringSum()

std::string Prof::Metric::IDBExpr::finalizeStringSum ( ) const
inlineinherited

Definition at line 187 of file Metric-IDBExpr.hpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ hasNumSrcVar()

virtual bool Prof::Metric::AExpr::hasNumSrcVar ( ) const
inlinevirtualinherited

◆ isok()

static bool Prof::Metric::AExpr::isok ( double  x)
inlinestaticinherited

Definition at line 152 of file Metric-AExpr.hpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ numAccum()

virtual uint Prof::Metric::AExpr::numAccum ( ) const
inlinevirtualinherited

Implements Prof::Metric::IDBExpr.

Reimplemented in Prof::Metric::CoefVar, and Prof::Metric::StdDev.

Definition at line 191 of file Metric-AExpr.hpp.

◆ numSrcFxd()

virtual uint Prof::Metric::Power::numSrcFxd ( ) const
inlinevirtual

Reimplemented from Prof::Metric::AExpr.

Definition at line 499 of file Metric-AExpr.hpp.

Here is the call graph for this function:

◆ numSrcFxdStr()

std::string Prof::Metric::IDBExpr::numSrcFxdStr ( ) const
inlineinherited

Definition at line 302 of file Metric-IDBExpr.hpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ numSrcStr()

std::string Prof::Metric::IDBExpr::numSrcStr ( ) const
inlineinherited

Definition at line 294 of file Metric-IDBExpr.hpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ numSrcVarId() [1/2]

virtual uint Prof::Metric::AExpr::numSrcVarId ( ) const
inlinevirtualinherited

Implements Prof::Metric::IDBExpr.

Definition at line 210 of file Metric-AExpr.hpp.

◆ numSrcVarId() [2/2]

void Prof::Metric::AExpr::numSrcVarId ( uint  x)
inlineinherited

Definition at line 214 of file Metric-AExpr.hpp.

◆ numSrcVarStr()

std::string Prof::Metric::IDBExpr::numSrcVarStr ( ) const
inlineinherited

Definition at line 310 of file Metric-IDBExpr.hpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ toString()

std::string Prof::Metric::AExpr::toString ( ) const
virtualinherited

Reimplemented from Prof::Metric::IDBExpr.

Definition at line 96 of file Metric-AExpr.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ var()

static double& Prof::Metric::AExpr::var ( Metric::IData mdata,
uint  mId 
)
inlinestaticinherited

Definition at line 223 of file Metric-AExpr.hpp.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ m_accumId

uint Prof::Metric::AExpr::m_accumId[maxAccums]
protectedinherited

Definition at line 327 of file Metric-AExpr.hpp.

◆ m_base

AExpr* Prof::Metric::Power::m_base
private

Definition at line 514 of file Metric-AExpr.hpp.

◆ m_exponent

AExpr* Prof::Metric::Power::m_exponent
private

Definition at line 515 of file Metric-AExpr.hpp.

◆ m_numSrcVarId

uint Prof::Metric::AExpr::m_numSrcVarId
protectedinherited

Definition at line 328 of file Metric-AExpr.hpp.


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