class NumericProperty

Defined at line 94 of file ../../zircon/system/ulib/inspect/include/lib/inspect/cpp/vmo/types.h

A property containing a templated numeric type. All methods wrap the corresponding functionality on |State|, and concrete implementations are available only for int64_t, uint64_t and double.

Functions

NumericProperty<T>

public void NumericProperty<T>()

Defined at line 98 of file ../../zircon/system/ulib/inspect/include/lib/inspect/cpp/vmo/types.h

Construct a default numeric metric. Operations on this metric are no-ops.

NumericProperty<T>

public void NumericProperty<T>(const NumericProperty<T> & other)

Defined at line 102 of file ../../zircon/system/ulib/inspect/include/lib/inspect/cpp/vmo/types.h

Allow moving, disallow copying.

NumericProperty<T>

public void NumericProperty<T>(NumericProperty<T> && other)

Defined at line 103 of file ../../zircon/system/ulib/inspect/include/lib/inspect/cpp/vmo/types.h

operator=

public NumericProperty<T> & operator=(const NumericProperty<T> & other)

Defined at line 104 of file ../../zircon/system/ulib/inspect/include/lib/inspect/cpp/vmo/types.h

~NumericProperty<T>

public void ~NumericProperty<T>()

operator=

public NumericProperty<T> & operator=(NumericProperty<T> && other)

Set

public void Set(T value)

Set the value of this numeric metric to the given value.

Add

public void Add(T value)

Add the given value to the value of this numeric metric.

Subtract

public void Subtract(T value)

Subtract the given value from the value of this numeric metric.

operator bool

public bool operator bool()

Defined at line 117 of file ../../zircon/system/ulib/inspect/include/lib/inspect/cpp/vmo/types.h

Return true if this metric is stored in a buffer. False otherwise.