Skip to main content
Pigweed's logo Pigweed
code_xml
  1. Home
  2. Reference
  3. C/C++
  4. Observability
  5. pw_metric
  6. pw::metric::TokenValue Struct Reference
Loading...
Searching...
No Matches
pw::metric::TokenValue Struct Reference

Overview

A wrapper type representing a 32-bit tokenized string value.

TokenValue is used to specialize TypedMetric<TokenValue>, allowing a metric to store a tokenized string hash (such as a string tokenized with PW_TOKENIZE_STRING) rather than a raw numerical uint32_t integer.

Public Member Functions

constexpr TokenValue (uint32_t val)
 
constexpr operator uint32_t () const
 

Public Attributes

uint32_t value
 

The documentation for this struct was generated from the following file: