class SampleReady
Defined at line 922 of file fidling/gen/sdk/fidl/fuchsia.diagnostics/fuchsia.diagnostics/cpp/fidl/fuchsia.diagnostics/cpp/natural_types.h
`SampleReady` carries the data for a ready-to-consume sample.
Public Methods
void SampleReady (Storage_ storage)
bool IsEmpty ()
void SampleReady ()
Defined at line 927 of file fidling/gen/sdk/fidl/fuchsia.diagnostics/fuchsia.diagnostics/cpp/fidl/fuchsia.diagnostics/cpp/natural_types.h
void SampleReady (SampleReady && )
Defined at line 928 of file fidling/gen/sdk/fidl/fuchsia.diagnostics/fuchsia.diagnostics/cpp/fidl/fuchsia.diagnostics/cpp/natural_types.h
const std::optional< ::fidl::ClientEnd< ::fuchsia_diagnostics::BatchIterator>> & batch_iter ()
`batch_iter` is the `BatchIterator` over the set of data.
::std::optional< ::fidl::ClientEnd< ::fuchsia_diagnostics::BatchIterator>> & batch_iter ()
`batch_iter` is the `BatchIterator` over the set of data.
SampleReady & batch_iter (std::optional< ::fidl::ClientEnd< ::fuchsia_diagnostics::BatchIterator>> value)
`batch_iter` is the `BatchIterator` over the set of data.
SampleReady & operator= (SampleReady && )
Defined at line 929 of file fidling/gen/sdk/fidl/fuchsia.diagnostics/fuchsia.diagnostics/cpp/fidl/fuchsia.diagnostics/cpp/natural_types.h
const std::optional<int64_t> & seconds_since_start ()
`seconds_since_start` is `ticks * interval_secs` for the current
polling period.
This can be used to check whether a value in the batch corresponds
to a `SampleDatum`, assuming you have not registered the same selector
with different `SampleStrategy` types. The procedure is:
1) Resolve `batch_iter` into a set of Inspect hierarchies.
2) Filter the set of `SampleDatum`s committed to this server with
the predicate `seconds_since_start % datum.interval_secs == 0`.
3) Any selector from the filtered `SampleDatum`s that matches data
in the resolved Inspect hierarchies is valid.
If you DO have one selector registered twice with different strategies,
you must maintain a local cache and check the value yourself.
::std::optional<int64_t> & seconds_since_start ()
`seconds_since_start` is `ticks * interval_secs` for the current
polling period.
This can be used to check whether a value in the batch corresponds
to a `SampleDatum`, assuming you have not registered the same selector
with different `SampleStrategy` types. The procedure is:
1) Resolve `batch_iter` into a set of Inspect hierarchies.
2) Filter the set of `SampleDatum`s committed to this server with
the predicate `seconds_since_start % datum.interval_secs == 0`.
3) Any selector from the filtered `SampleDatum`s that matches data
in the resolved Inspect hierarchies is valid.
If you DO have one selector registered twice with different strategies,
you must maintain a local cache and check the value yourself.
SampleReady & seconds_since_start (std::optional<int64_t> value)
`seconds_since_start` is `ticks * interval_secs` for the current
polling period.
This can be used to check whether a value in the batch corresponds
to a `SampleDatum`, assuming you have not registered the same selector
with different `SampleStrategy` types. The procedure is:
1) Resolve `batch_iter` into a set of Inspect hierarchies.
2) Filter the set of `SampleDatum`s committed to this server with
the predicate `seconds_since_start % datum.interval_secs == 0`.
3) Any selector from the filtered `SampleDatum`s that matches data
in the resolved Inspect hierarchies is valid.
If you DO have one selector registered twice with different strategies,
you must maintain a local cache and check the value yourself.
void SampleReady (::fidl::internal::DefaultConstructPossiblyInvalidObjectTag )
Friends
class MemberVisitor
class NaturalTableCodingTraits