ROSE
0.9.6a
|
Attribute corresponding to a metric. More...
#include <AstAttributeMechanism.h>
Public Member Functions | |
MetricAttribute () | |
MetricAttribute (double value, bool is_derived=false) | |
MetricAttribute & | operator+= (const MetricAttribute &other) |
MetricAttribute & | operator-= (const MetricAttribute &other) |
MetricAttribute & | operator*= (const MetricAttribute &other) |
MetricAttribute & | operator/= (const MetricAttribute &other) |
virtual AstAttribute * | constructor () |
virtual AstAttribute * | copy () |
virtual std::string | attribute_class_name () |
virtual int | packed_size () |
virtual char * | packed_data () |
virtual void | unpacked_data (int size, char *data) |
virtual bool | isDerived () const |
virtual double | getValue () const |
virtual void | setValue (double newVal) |
virtual std::string | toString () |
Public Member Functions inherited from AstAttribute | |
AstAttribute () | |
virtual | ~AstAttribute () |
AstAttribute * | constructor () |
std::string | attribute_class_name () |
virtual std::string | additionalNodeOptions () |
virtual std::vector < AttributeEdgeInfo > | additionalEdgeInfo () |
virtual std::vector < AttributeNodeInfo > | additionalNodeInfo () |
virtual bool | commentOutNodeInGraph () |
Protected Attributes | |
bool | is_derived_ |
double | value_ |
Attribute corresponding to a metric.
A metric attribute represents a numeric value obtained by either dynamic analysis (gprof or hpct) or static analysis (for example number of flop operations in a function) It MetricAttribute can be a raw (observed), or a propagated (derived) count It containes no name-string, because the attribute is stored in an AttributeMechanism-map, where the name is the key
Definition at line 141 of file AstAttributeMechanism.h.
MetricAttribute::MetricAttribute | ( | ) |
MetricAttribute::MetricAttribute | ( | double | value, |
bool | is_derived = false |
||
) |
MetricAttribute& MetricAttribute::operator+= | ( | const MetricAttribute & | other) |
MetricAttribute& MetricAttribute::operator-= | ( | const MetricAttribute & | other) |
MetricAttribute& MetricAttribute::operator*= | ( | const MetricAttribute & | other) |
MetricAttribute& MetricAttribute::operator/= | ( | const MetricAttribute & | other) |
|
virtual |
|
virtual |
Reimplemented from AstAttribute.
|
virtual |
|
virtual |
Reimplemented from AstAttribute.
|
virtual |
Reimplemented from AstAttribute.
|
virtual |
Reimplemented from AstAttribute.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
This function is used by other components to print the value of an attribute. For example the pdf generation calls this function to print the value of an attribute in the pdf file. The default implementation is to return an empty string.
Reimplemented from AstAttribute.
|
protected |
Definition at line 167 of file AstAttributeMechanism.h.
|
protected |
Definition at line 168 of file AstAttributeMechanism.h.