Flops Class Reference

Helper Class for FlopCounter Accumulates occurance of VariantT given in constructor. More...

#include <Flops.h>

List of all members.

Public Member Functions

 Flops ()
 Flops (const Flops &f)
 Flops (VariantT opName, size_t count)
Flopsoperator= (const Flops &f)
Flopsoperator+= (const Flops &f)
void add (VariantT opType, size_t count)
void set_inherited (VariantT opName)
size_t operator() (VariantT opName=V_SgNode) const
void print (std::ostream &out) const
std::string toString ()

Private Types

typedef std::map< VariantT,
size_t > 
BinaryOpFlops

Private Member Functions

void swap (Flops &f) throw ()

Private Attributes

BinaryOpFlops count_
size_t inherited_


Detailed Description

Helper Class for FlopCounter Accumulates occurance of VariantT given in constructor.

Definition at line 17 of file Flops.h.


Member Typedef Documentation

typedef std::map< VariantT, size_t > Flops::BinaryOpFlops [private]

Definition at line 37 of file Flops.h.


Constructor & Destructor Documentation

Flops::Flops (  ) 

Definition at line 6 of file Flops.cpp.

Flops::Flops ( const Flops f  ) 

Definition at line 11 of file Flops.cpp.

Flops::Flops ( VariantT  opName,
size_t  count 
)

Definition at line 16 of file Flops.cpp.


Member Function Documentation

void Flops::add ( VariantT  opType,
size_t  count 
)

Definition at line 51 of file Flops.cpp.

Referenced by FlopCounter::evaluateSynthesizedAttribute().

Here is the caller graph for this function:

size_t Flops::operator() ( VariantT  opName = V_SgNode  )  const

Definition at line 67 of file Flops.cpp.

Flops & Flops::operator+= ( const Flops f  ) 

Definition at line 30 of file Flops.cpp.

Flops & Flops::operator= ( const Flops f  ) 

Definition at line 22 of file Flops.cpp.

Here is the call graph for this function:

void Flops::print ( std::ostream &  out  )  const

Definition at line 99 of file Flops.cpp.

Referenced by operator<<(), and toString().

Here is the caller graph for this function:

void Flops::set_inherited ( VariantT  opName  ) 

void Flops::swap ( Flops f  )  throw () [private]

Definition at line 94 of file Flops.cpp.

Referenced by operator=().

Here is the caller graph for this function:

std::string Flops::toString (  ) 

Definition at line 111 of file Flops.cpp.

Here is the call graph for this function:


Member Data Documentation

BinaryOpFlops Flops::count_ [private]

Definition at line 41 of file Flops.h.

Referenced by add(), Flops(), operator()(), operator+=(), and print().

size_t Flops::inherited_ [private]

Definition at line 42 of file Flops.h.


The documentation for this class was generated from the following files:
Generated on Tue Sep 15 14:48:49 2009 for RoseQtWidgets by  doxygen 1.4.7