HPCToolkit
Prof::Metric::AExpr Class Referenceabstract

#include <Metric-AExpr.hpp>

Inheritance diagram for Prof::Metric::AExpr:
Collaboration diagram for Prof::Metric::AExpr:

Public Types

typedef std::vector< AExpr * > AExprVec
 

Public Member Functions

 AExpr ()
 
virtual ~AExpr ()
 
virtual double eval (const Metric::IData &mdata) const =0
 
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 numSrcFxd () 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
 
virtual std::ostream & dumpMe (std::ostream &os=std::cout) const =0
 
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
 

Detailed Description

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

Member Typedef Documentation

◆ AExprVec

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

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

◆ AExpr()

Prof::Metric::AExpr::AExpr ( )
inline

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

◆ ~AExpr()

virtual Prof::Metric::AExpr::~AExpr ( )
inlinevirtual

Definition at line 130 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
inlinevirtual

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 
)
inline

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
inline

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
inlinevirtual

◆ 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
inlinevirtual

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
inlinevirtual

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 = ", " 
)
staticprotected

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()

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

◆ eval()

◆ evalMean()

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

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
inlinevirtual

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
inlineprotected

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 
)
inlinestaticprotected

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 
)
inlinestaticprotected

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 
)
inlinestaticprotected

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
inlinevirtual

◆ 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
inlinevirtual

◆ isok()

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

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
inlinevirtual

Implements Prof::Metric::IDBExpr.

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

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

◆ numSrcFxd()

◆ 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
inlinevirtual

Implements Prof::Metric::IDBExpr.

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

◆ numSrcVarId() [2/2]

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

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
virtual

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 
)
inlinestatic

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]
protected

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

◆ m_numSrcVarId

uint Prof::Metric::AExpr::m_numSrcVarId
protected

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


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