Portals0.7.0 · dev (544a5c68c72e · 2026-11-28 UTC)
Loading...
Searching...
No Matches
portals::style::ct::detail::PssCompactSink< R, C, D, B > Class Template Reference

Allocation-free storing sink writing one bounded owning descriptor. More...

#include <pss_compact.hpp>

Public Member Functions

constexpr PssCompactSink (std::string_view source, CompactSheet< R, C, D, B > &sheet)
constexpr std::expected< void, PssError > sourceName (std::string_view name)
constexpr void originKind (PssOriginKind kind)
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 > typeName (std::string_view bytes, PssLocation location)
constexpr std::expected< void, PssError > idName (std::string_view bytes, PssLocation location)
constexpr std::expected< void, PssError > classBytes (std::string_view bytes, PssLocation location)
constexpr std::expected< void, PssError > readOnly ()
constexpr std::expected< void, PssError > state (StyleState value)
constexpr std::expected< void, PssError > declaration (PssProperty property, PssValue value, PssLocation location)
constexpr std::expected< void, PssError > endRule ()
constexpr std::expected< void, PssError > copyText (std::string_view bytes, PssLocation location, PssText &destination)
template<std::size_t SourceR, std::size_t SourceC, std::size_t SourceD, std::size_t SourceB>
constexpr std::expected< void, PssError > copyFrom (const CompactSheet< SourceR, SourceC, SourceD, SourceB > &source)

Detailed Description

template<std::size_t R, std::size_t C, std::size_t D, std::size_t B>
class portals::style::ct::detail::PssCompactSink< R, C, D, B >

Allocation-free storing sink writing one bounded owning descriptor.

Template Parameters
RNumeric rule capacity.
CNumeric class-reference capacity.
DNumeric declaration-occurrence capacity.
BNumeric owning-text capacity.

Constructor & Destructor Documentation

◆ PssCompactSink()

template<std::size_t R, std::size_t C, std::size_t D, std::size_t B>
portals::style::ct::detail::PssCompactSink< R, C, D, B >::PssCompactSink ( std::string_view source,
CompactSheet< R, C, D, B > & sheet )
inlineconstexpr
Parameters
sourceBorrowed original source spans, retained only during construction.
sheetOwning output destination, borrowed for this synchronous operation.

Member Function Documentation

◆ beginRule()

template<std::size_t R, std::size_t C, std::size_t D, std::size_t B>
std::expected< void, PssError > portals::style::ct::detail::PssCompactSink< R, C, D, B >::beginRule ( PssLocation location)
inlineconstexpr
Parameters
locationOriginal selector start.
Returns
Admission result before any rule storage is accessed.

◆ classBytes()

template<std::size_t R, std::size_t C, std::size_t D, std::size_t B>
std::expected< void, PssError > portals::style::ct::detail::PssCompactSink< R, C, D, B >::classBytes ( std::string_view bytes,
PssLocation location )
inlineconstexpr
Parameters
bytesStatic typed or original parsed class, copied before returning.
locationSource coordinates for admission errors.
Returns
Owning class admission result.

◆ className()

template<std::size_t R, std::size_t C, std::size_t D, std::size_t B>
std::expected< void, PssError > portals::style::ct::detail::PssCompactSink< R, C, D, B >::className ( PssSpan span,
PssLocation location )
inlineconstexpr
Parameters
spanOriginal class-name bytes.
locationSource coordinates for admission errors.
Returns
Owning reference admission result.

◆ copyFrom()

template<std::size_t R, std::size_t C, std::size_t D, std::size_t B>
template<std::size_t SourceR, std::size_t SourceC, std::size_t SourceD, std::size_t SourceB>
std::expected< void, PssError > portals::style::ct::detail::PssCompactSink< R, C, D, B >::copyFrom ( const CompactSheet< SourceR, SourceC, SourceD, SourceB > & source)
inlineconstexpr
Template Parameters
SourceRAdmitted source rule capacity.
SourceCAdmitted source class capacity.
SourceDAdmitted source occurrence capacity.
SourceBAdmitted source text capacity.
Parameters
sourceAlready validated owning staging description.
Returns
Checked copy into exact capacities, without another grammar pass or borrowed source retention.

◆ copyText()

template<std::size_t R, std::size_t C, std::size_t D, std::size_t B>
std::expected< void, PssError > portals::style::ct::detail::PssCompactSink< R, C, D, B >::copyText ( std::string_view bytes,
PssLocation location,
PssText & destination )
inlineconstexpr
Parameters
bytesBorrowed name bytes copied before returning.
locationOriginal coordinates for an arena error.
destinationStored owning-arena reference populated on success.
Returns
Overflow-safe text admission result.

◆ declaration()

template<std::size_t R, std::size_t C, std::size_t D, std::size_t B>
std::expected< void, PssError > portals::style::ct::detail::PssCompactSink< R, C, D, B >::declaration ( PssProperty property,
PssValue value,
PssLocation location )
inlineconstexpr
Parameters
propertyValidated property destination.
valueValidated single scalar declaration.
locationOriginal property start.
Returns
Occurrence admission and last-winner index storage result.

◆ endRule()

template<std::size_t R, std::size_t C, std::size_t D, std::size_t B>
std::expected< void, PssError > portals::style::ct::detail::PssCompactSink< R, C, D, B >::endRule ( )
inlineconstexpr
Returns
Successful complete-rule publication within the private CT construction.

◆ id()

template<std::size_t R, std::size_t C, std::size_t D, std::size_t B>
std::expected< void, PssError > portals::style::ct::detail::PssCompactSink< R, C, D, B >::id ( PssSpan span,
PssLocation location )
inlineconstexpr
Parameters
spanOriginal ID bytes.
locationSource coordinates for admission errors.
Returns
Owning text-copy result.

◆ idName()

template<std::size_t R, std::size_t C, std::size_t D, std::size_t B>
std::expected< void, PssError > portals::style::ct::detail::PssCompactSink< R, C, D, B >::idName ( std::string_view bytes,
PssLocation location )
inlineconstexpr
Parameters
bytesStatic typed or original parsed ID, copied before returning.
locationSource coordinates for admission errors.
Returns
Owning text admission result.

◆ originKind()

template<std::size_t R, std::size_t C, std::size_t D, std::size_t B>
void portals::style::ct::detail::PssCompactSink< R, C, D, B >::originKind ( PssOriginKind kind)
inlineconstexpr
Parameters
kindHonest coordinate interpretation for the stored source metadata.

◆ readOnly()

template<std::size_t R, std::size_t C, std::size_t D, std::size_t B>
std::expected< void, PssError > portals::style::ct::detail::PssCompactSink< R, C, D, B >::readOnly ( )
inlineconstexpr
Returns
Successful orthogonal predicate storage.

◆ sourceName()

template<std::size_t R, std::size_t C, std::size_t D, std::size_t B>
std::expected< void, PssError > portals::style::ct::detail::PssCompactSink< R, C, D, B >::sourceName ( std::string_view name)
inlineconstexpr
Parameters
nameValidated source identity copied into the shared arena.
Returns
Admission result.

◆ state()

template<std::size_t R, std::size_t C, std::size_t D, std::size_t B>
std::expected< void, PssError > portals::style::ct::detail::PssCompactSink< R, C, D, B >::state ( StyleState value)
inlineconstexpr
Parameters
valueValidated existing presentation state.
Returns
Successful scalar storage.

◆ type()

template<std::size_t R, std::size_t C, std::size_t D, std::size_t B>
std::expected< void, PssError > portals::style::ct::detail::PssCompactSink< R, C, D, B >::type ( PssSpan span,
PssLocation location )
inlineconstexpr
Parameters
spanOriginal type-name bytes.
locationSource coordinates for admission errors.
Returns
Owning text-copy result.

◆ typeName()

template<std::size_t R, std::size_t C, std::size_t D, std::size_t B>
std::expected< void, PssError > portals::style::ct::detail::PssCompactSink< R, C, D, B >::typeName ( std::string_view bytes,
PssLocation location )
inlineconstexpr
Parameters
bytesStatic typed or original parsed type identity, copied before returning.
locationSource coordinates for admission errors.
Returns
Owning text admission result.

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