Skip to content

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
MetricAttribute
MetricAttribute(); [constructor]
Constructors
attribute_class_name
virtual std::string attribute_class_name() const override; [virtual]
copy
virtual AstAttribute* copy() const override; [virtual]
getValue
virtual double getValue() const; [virtual]
isDerived
virtual 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
setValue
virtual void setValue(double newVal); [virtual]
toString
virtual std::string toString() override; [virtual]

Protected Data Members

Name
is_derived_
value_

Created with MrDocs