|
tess 0.4.0
Performance-first tile and path simulation substrate
|
#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 |
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().