Skip to navigation

holoscan::ClockId

Beta
View as MarkdownOpen in Claude

Identify one resolved clock domain within an admitted execution plan.

A nonzero value identifies a clock domain assigned during compilation or admission. The numeric value has no temporal ordering: consumers may compare or hash clock identifiers, but must use an admitted conversion to compare coordinates from different domains. Zero represents an invalid or unresolved domain.

ClockId is a fixed-width, standard-layout, trivially copyable value suitable for bounded runtime records and serialization. Its numeric assignment is plan-local and is not a durable process- or deployment-global identity. It carries no originating plan, clock-catalog, or registry-generation identity. Numeric equality and hashing have domain meaning only after the caller establishes that the values belong to the same immutable clock-catalog scope. A foreign or stale numeric value must not be interpreted through another registry merely because its number matches a local entry.

Persisted, trace, and transport records must carry the originating scope directly or inherit it unambiguously from a validated immutable plan, trace header, or catalog-bound endpoint. That scope must be validated before a numeric identifier is resolved or rebound locally. The value owns no resources, performs no allocation, and is safe to copy, hash, or compare concurrently.

#include <holoscan/time_point.hpp>

Methods

valid

bool holoscan::ClockId::valid() const noexcept

Return whether this value identifies a resolved clock domain.

A successful result establishes only representation validity. It does not prove that the identifier belongs to a particular plan, catalog, or registry generation.

Returns: true when value is nonzero; otherwise false.


Member variables

NameTypeDescription
valuestd::uint64_tNonzero plan-local clock-domain identifier, or zero when invalid.