template <typename T>

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.

Public Methods

void NumericProperty<T> ()

Construct a default numeric metric. Operations on this metric are

no-ops.

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

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

Allow moving, disallow copying.

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

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

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

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

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

void ~NumericProperty<T> ()
NumericProperty<T> & operator= (NumericProperty<T> && other)
void Set (T value)

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

void Add (T value)

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

void Subtract (T value)

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

bool operator bool ()

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

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

Friends

template <typename T>
class State