Portals0.7.0 · dev (544a5c68c72e · 2026-11-28 UTC)
Loading...
Searching...
No Matches
portals::style::ct::CompactSheet< RuleCapacity, ClassCapacity, DeclarationCapacity, ByteCapacity > Class Template Reference

Immutable owning scalar stylesheet; its public type contains only numeric capacities. More...

#include <pss_compact.hpp>

Public Member Functions

constexpr CompactSheet ()=default
 Construct a valid empty owning description.
constexpr std::span< const detail::PssCompactRule > rules () const noexcept
constexpr std::span< const detail::PssText > classes () const noexcept
constexpr std::span< const detail::PssCompactDeclaration > declarations () const noexcept
constexpr std::string_view text (detail::PssText range) const noexcept
constexpr std::string_view sourceName () const noexcept
constexpr PssOriginKind originKind () const noexcept
constexpr std::size_t ownedTextBytes () const noexcept

Friends

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

Detailed Description

template<std::size_t RuleCapacity, std::size_t ClassCapacity, std::size_t DeclarationCapacity, std::size_t ByteCapacity>
class portals::style::ct::CompactSheet< RuleCapacity, ClassCapacity, DeclarationCapacity, ByteCapacity >

Immutable owning scalar stylesheet; its public type contains only numeric capacities.

Template Parameters
RuleCapacityMaximum stored rules, bounded by MAX_CT_PSS_RULES.
ClassCapacityMaximum global class references, bounded by MAX_CT_PSS_CLASSES.
DeclarationCapacityMaximum global occurrences, bounded by MAX_CT_PSS_DECLARATIONS.
ByteCapacityOne owning text arena, bounded by MAX_CT_PSS_TEXT_BYTES. Snapshot materialization uses the existing cascade; parameter reactivity remains the CT-002 LiveTheme API.

Member Function Documentation

◆ classes()

template<std::size_t RuleCapacity, std::size_t ClassCapacity, std::size_t DeclarationCapacity, std::size_t ByteCapacity>
std::span< const detail::PssText > portals::style::ct::CompactSheet< RuleCapacity, ClassCapacity, DeclarationCapacity, ByteCapacity >::classes ( ) const
inlineconstexprnoexcept
Returns
Global immutable class references into this object's text arena.

◆ declarations()

template<std::size_t RuleCapacity, std::size_t ClassCapacity, std::size_t DeclarationCapacity, std::size_t ByteCapacity>
std::span< const detail::PssCompactDeclaration > portals::style::ct::CompactSheet< RuleCapacity, ClassCapacity, DeclarationCapacity, ByteCapacity >::declarations ( ) const
inlineconstexprnoexcept
Returns
All immutable source declaration occurrences, including overwritten duplicates.

◆ originKind()

template<std::size_t RuleCapacity, std::size_t ClassCapacity, std::size_t DeclarationCapacity, std::size_t ByteCapacity>
PssOriginKind portals::style::ct::CompactSheet< RuleCapacity, ClassCapacity, DeclarationCapacity, ByteCapacity >::originKind ( ) const
inlineconstexprnoexcept
Returns
Whether metadata describes actual PSS bytes or synthetic typed ordinals.

◆ ownedTextBytes()

template<std::size_t RuleCapacity, std::size_t ClassCapacity, std::size_t DeclarationCapacity, std::size_t ByteCapacity>
std::size_t portals::style::ct::CompactSheet< RuleCapacity, ClassCapacity, DeclarationCapacity, ByteCapacity >::ownedTextBytes ( ) const
inlineconstexprnoexcept
Returns
Populated shared text bytes, excluding unused conservative capacity.

◆ rules()

template<std::size_t RuleCapacity, std::size_t ClassCapacity, std::size_t DeclarationCapacity, std::size_t ByteCapacity>
std::span< const detail::PssCompactRule > portals::style::ct::CompactSheet< RuleCapacity, ClassCapacity, DeclarationCapacity, ByteCapacity >::rules ( ) const
inlineconstexprnoexcept
Returns
Stored rules as borrowed immutable data, valid for this object's lifetime.

◆ sourceName()

template<std::size_t RuleCapacity, std::size_t ClassCapacity, std::size_t DeclarationCapacity, std::size_t ByteCapacity>
std::string_view portals::style::ct::CompactSheet< RuleCapacity, ClassCapacity, DeclarationCapacity, ByteCapacity >::sourceName ( ) const
inlineconstexprnoexcept
Returns
Owned caller-supplied source identity, or empty for anonymous input.

◆ text()

template<std::size_t RuleCapacity, std::size_t ClassCapacity, std::size_t DeclarationCapacity, std::size_t ByteCapacity>
std::string_view portals::style::ct::CompactSheet< RuleCapacity, ClassCapacity, DeclarationCapacity, ByteCapacity >::text ( detail::PssText range) const
inlineconstexprnoexcept
Parameters
rangeAdmitted reference obtained from this descriptor's immutable records.
Returns
Borrowed owned bytes; the reference must belong to this descriptor.

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