|
| | CellBuffer (CellBuffer &&other) noexcept |
| | Transfer storage and leave a distinct source empty; no allocation or errors.
|
| CellBuffer & | operator= (CellBuffer &&other) noexcept |
| | Transfer storage, invalidate both objects' views and empty a distinct source.
|
|
| CellBuffer (const CellBuffer &)=delete |
| | Buffers have one owner; copying is disabled.
|
|
CellBuffer & | operator= (const CellBuffer &)=delete |
| | Buffers have one owner; copy assignment is disabled.
|
| CellSize | size () const noexcept |
| | Return owning normalized extents; no errors or allocation.
|
| WidthPolicy | policy () const noexcept |
| | Return the owning captured width policy; no errors or allocation.
|
| CellBufferLimits | limits () const noexcept |
| | Return the owning resource caps; no errors or allocation.
|
| std::span< const Cell > | cells () const noexcept |
| | Borrow row-major metadata until successful mutation/move/destruction; no errors.
|
| std::expected< CellView, CellBufferError > | at (CellPoint position) const noexcept |
| | Resolve by coordinate; no API accepts arbitrary glyph/style IDs.
|
| std::expected< void, CellBufferError > | put (CellPoint position, const GraphemeText &text, std::size_t grapheme_index, CellStyle style={}) noexcept |
| | Atomically write one complete grapheme, clearing every intersected old glyph.
|
|
void | clear () noexcept |
| | Reset to default blanks and reset intern counts; retain capacity, no errors/allocation.
|
| std::expected< void, CellBufferError > | resize (CellSize size) |
| | Allocate a new blank extent with the same policy/caps; discard old contents on success.
|
| CellBufferMemory | memory () const noexcept |
| | Return measured owned storage/counts, excluding allocator overhead; no errors/allocation.
|
Owning bounded cell framebuffer and immutable-width-policy intern pools.
No I/O, callbacks, worker threads or global storage. Any thread may own a buffer; the UI owner mutates it with caller synchronization. Concurrent reads of an unchanged buffer are safe. IDs are local output metadata, never accepted as lookup/write authority. put copies complete display bytes and style. Successful put/clear/resize/assignment invalidates borrowed views logically; failures preserve views, cells, intern counts and accounting. Moving invalidates source views and leaves a distinct source empty, with zero allocated storage; it can be cleared, resized, assigned and queried. Self-move is a no-op. No table eviction occurs: even overwritten entries remain until clear/resize.