Portals0.7.0 · dev (544a5c68c72e · 2026-11-28 UTC)
Loading...
Searching...
No Matches
portals::style::ct::detail::PssCountSink Struct Reference

Allocation-free counting sink with the same limits as the storing sink. More...

#include <pss_compact.hpp>

Public Member Functions

constexpr std::expected< void, PssError > beginRule (PssLocation location)
constexpr std::expected< void, PssError > type (PssSpan span, PssLocation location)
constexpr std::expected< void, PssError > id (PssSpan span, PssLocation location)
constexpr std::expected< void, PssError > className (PssSpan span, PssLocation location)
constexpr std::expected< void, PssError > readOnly ()
constexpr std::expected< void, PssError > state (StyleState state)
constexpr std::expected< void, PssError > declaration (PssProperty property, PssValue value, PssLocation location)
constexpr std::expected< void, PssError > endRule ()
constexpr std::expected< void, PssError > text (std::size_t bytes, PssLocation location)

Public Attributes

PssCounts counts
 Current admitted counts.

Detailed Description

Allocation-free counting sink with the same limits as the storing sink.

Member Function Documentation

◆ beginRule()

std::expected< void, PssError > portals::style::ct::detail::PssCountSink::beginRule ( PssLocation location)
inlineconstexpr
Parameters
locationRule source coordinates.
Returns
Admission result.

◆ className()

std::expected< void, PssError > portals::style::ct::detail::PssCountSink::className ( PssSpan span,
PssLocation location )
inlineconstexpr
Parameters
spanSource class text span.
locationOriginal source coordinates.
Returns
Admission result.

◆ declaration()

std::expected< void, PssError > portals::style::ct::detail::PssCountSink::declaration ( PssProperty property,
PssValue value,
PssLocation location )
inlineconstexpr
Parameters
propertyValidated destination.
valueValidated scalar.
locationOriginal property coordinates.
Returns
Admission result counting every occurrence.

◆ endRule()

std::expected< void, PssError > portals::style::ct::detail::PssCountSink::endRule ( )
inlineconstexpr
Returns
Successful complete-rule admission.

◆ id()

std::expected< void, PssError > portals::style::ct::detail::PssCountSink::id ( PssSpan span,
PssLocation location )
inlineconstexpr
Parameters
spanSource ID text span.
locationOriginal source coordinates.
Returns
Admission result.

◆ readOnly()

std::expected< void, PssError > portals::style::ct::detail::PssCountSink::readOnly ( )
inlineconstexpr
Returns
Admission of the storage-free orthogonal predicate.

◆ state()

std::expected< void, PssError > portals::style::ct::detail::PssCountSink::state ( StyleState state)
inlineconstexpr
Parameters
stateValidated state, which consumes no additional record.
Returns
Successful admission.

◆ text()

std::expected< void, PssError > portals::style::ct::detail::PssCountSink::text ( std::size_t bytes,
PssLocation location )
inlineconstexpr
Parameters
bytesText bytes admitted into the one shared arena.
locationOriginal coordinates for a limit error.
Returns
Admission result with overflow-safe subtraction.

◆ type()

std::expected< void, PssError > portals::style::ct::detail::PssCountSink::type ( PssSpan span,
PssLocation location )
inlineconstexpr
Parameters
spanSource text span counted as owned bytes.
locationOriginal coordinates for overflow diagnostics.
Returns
Admission result.

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