class NamedValue
Defined at line 178 of file ../../zircon/system/ulib/inspect/include/lib/inspect/cpp/hierarchy.h
Internal class associating a name with one of several types of value.
Functions
NamedValue<TypeVariant, FormatType>
public void NamedValue<TypeVariant, FormatType>(
basic_string
name, T value)
Defined at line 182 of file ../../zircon/system/ulib/inspect/include/lib/inspect/cpp/hierarchy.h
Constructs a NamedValue associating the given name with the value.
Contains
public bool Contains()
Defined at line 189 of file ../../zircon/system/ulib/inspect/include/lib/inspect/cpp/hierarchy.h
Checks if this NamedValue contains the templated type.
Get
public const T & Get()
Defined at line 196 of file ../../zircon/system/ulib/inspect/include/lib/inspect/cpp/hierarchy.h
Gets the value by type. If this NamedValue does not contain the given type, this method panics.
GetOrNull
public const T * GetOrNull()
Defined at line 203 of file ../../zircon/system/ulib/inspect/include/lib/inspect/cpp/hierarchy.h
Gets the value by type. If this NamedValue does not contain the given type, this method returns nullptr.
name
public const std::string & name()
Defined at line 212 of file ../../zircon/system/ulib/inspect/include/lib/inspect/cpp/hierarchy.h
Gets the name of this NamedValue.
format
public FormatType format()
Defined at line 215 of file ../../zircon/system/ulib/inspect/include/lib/inspect/cpp/hierarchy.h
Gets the format of the wrapped value.