NeoPZ
Public Member Functions | Public Attributes | List of all members
TPZCounter Struct Reference

Implements a counter by operations. Common. More...

#include <pzreal.h>

Public Member Functions

 TPZCounter ()
 Counter constructor. More...
 
TPZCounter operator- (const TPZCounter &other)
 
TPZCounteroperator+= (const TPZCounter &other)
 
TPZCounteroperator-= (const TPZCounter &other)
 
TPZCountercopy (const TPZCounter &other)
 
TPZCounterclear ()
 
void Print (std::ostream &out=std::cout) const
 

Public Attributes

uint64_t fCount [gNumOp]
 

Detailed Description

Implements a counter by operations. Common.

Definition at line 111 of file pzreal.h.

Constructor & Destructor Documentation

◆ TPZCounter()

TPZCounter::TPZCounter ( )
inline

Counter constructor.

Definition at line 117 of file pzreal.h.

Member Function Documentation

◆ clear()

TPZCounter& TPZCounter::clear ( )
inline

Definition at line 147 of file pzreal.h.

References atan(), cos(), fabs(), gNumOp, operator<<(), sin(), and sqrt().

◆ copy()

TPZCounter& TPZCounter::copy ( const TPZCounter other)
inline

Definition at line 141 of file pzreal.h.

References fCount, and gNumOp.

Referenced by RunStat::~RunStat().

◆ operator+=()

TPZCounter& TPZCounter::operator+= ( const TPZCounter other)
inline

Definition at line 129 of file pzreal.h.

References fCount, and gNumOp.

◆ operator-()

TPZCounter TPZCounter::operator- ( const TPZCounter other)
inline

Definition at line 122 of file pzreal.h.

References fCount, and gNumOp.

◆ operator-=()

TPZCounter& TPZCounter::operator-= ( const TPZCounter other)
inline

Definition at line 135 of file pzreal.h.

References fCount, and gNumOp.

◆ Print()

void TPZCounter::Print ( std::ostream &  out = std::cout) const

Definition at line 32 of file pzreal.cpp.

References gNumOp, and names.

Referenced by PrintInfo().

Member Data Documentation

◆ fCount

uint64_t TPZCounter::fCount[gNumOp]

Vector of counters by operation: sum, product, division, square root, power,
Cosine, Sine, Arc cosine, arc Sine, arc Tangent, Exponencial and logarithm.

Definition at line 114 of file pzreal.h.

Referenced by acos(), asin(), atan(), atan2(), copy(), cos(), exp(), log(), log10(), TPZFlopCounter::operator*(), TPZFlopCounter::operator*=(), TPZFlopCounter::operator+(), operator+=(), TPZFlopCounter::operator+=(), operator-(), TPZFlopCounter::operator-(), operator-=(), TPZFlopCounter::operator-=(), TPZFlopCounter::operator/(), TPZFlopCounter::operator/=(), operator<<(), pow(), sin(), and sqrt().


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