template <typename T>
class ArrayValue
Defined at line 139 of file ../../zircon/system/ulib/inspect/include/lib/inspect/cpp/vmo/types.h
A value containing an array of numeric types. All methods wrap the
corresponding functionality on |State|, and concrete
implementations are available only for int64_t, uint64_t and double.
Public Methods
void ArrayValue<T> ()
Construct a default array value. Operations on this value are
no-ops.
Defined at line 143 of file ../../zircon/system/ulib/inspect/include/lib/inspect/cpp/vmo/types.h
void ArrayValue<T> (const ArrayValue<T> & other)
Allow moving, disallow copying.
Defined at line 147 of file ../../zircon/system/ulib/inspect/include/lib/inspect/cpp/vmo/types.h
void ArrayValue<T> (ArrayValue<T> && other)
Defined at line 148 of file ../../zircon/system/ulib/inspect/include/lib/inspect/cpp/vmo/types.h
ArrayValue<T> & operator= (const ArrayValue<T> & other)
Defined at line 149 of file ../../zircon/system/ulib/inspect/include/lib/inspect/cpp/vmo/types.h
void ~ArrayValue<T> ()
ArrayValue<T> & operator= (ArrayValue<T> && other)
void Set (size_t index, T value)
Set the value of the given index of this array.
template <typename X = T, typename = std::enable_if_t<!std::is_same<X, std::string_view>::value>>
void Add (size_t index, T value)
Add the given value to the value of this numeric metric.
template <typename X = T, typename = std::enable_if_t<!std::is_same<X, std::string_view>::value>>
void Subtract (size_t index, 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 164 of file ../../zircon/system/ulib/inspect/include/lib/inspect/cpp/vmo/types.h
Friends
template <typename T>
class State