MetricAttribute¶
Attribute corresponding to a metric.
Synopsis¶
Declared in <src/midend/astProcessing/AstAttributeMechanism.h>
class [[visibility("default")]] MetricAttribute
: public AstAttribute Description¶
A metric attribute stores an observed or derived numeric value. The attribute container holds its name separately.
Base Classes¶
| Name | Description |
|---|---|
AstAttribute | Base class for all IR node attribute values. |
Member Functions¶
| Name | Description |
|---|---|
MetricAttributeMetricAttribute(); [constructor] | Constructors |
attribute_class_namevirtual std::string attribute_class_name() const override; [virtual] | |
copyvirtual AstAttribute* copy() const override; [virtual] | |
getValuevirtual double getValue() const; [virtual] | |
isDerivedvirtual bool isDerived() const; [virtual] | |
operator*=MetricAttribute& operator*=(MetricAttribute const& other); | Multiplication assignment operator |
operator+=MetricAttribute& operator+=(MetricAttribute const& other); | Addition assignment operator |
operator-=MetricAttribute& operator-=(MetricAttribute const& other); | Subtraction assignment operator |
operator/=MetricAttribute& operator/=(MetricAttribute const& other); | Division assignment operator |
setValuevirtual void setValue(double newVal); [virtual] | |
toStringvirtual std::string toString() override; [virtual] |
Protected Data Members¶
| Name |
|---|
is_derived_ |
value_ |
Created with MrDocs