tess 0.4.0
Performance-first tile and path simulation substrate
Loading...
Searching...
No Matches
tess::diagnostics::BufferedWarningSink< Capacity > Class Template Reference

#include <tess/diagnostics/warning_sink.h>

Public Member Functions

void warn (const Warning &warning) noexcept
auto size () const noexcept -> std::size_t
bool empty () const noexcept
bool full () const noexcept
auto dropped () const noexcept -> std::uint64_t
auto operator[] (std::size_t index) const noexcept -> const Warning &
void clear () noexcept

Static Public Member Functions

static constexpr auto capacity () noexcept -> std::size_t

Detailed Description

template<std::size_t Capacity>
class tess::diagnostics::BufferedWarningSink< Capacity >

Fixed-capacity, allocation-free ring retaining the most recent warnings.

A full sink overwrites its oldest entry and counts the loss. Indexing is oldest-first and requires an index smaller than size().


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