Independent local bounds; absent means unlimited, engaged zero means zero capacity.
More...
#include <StormByte/buffer/byte_budget.hxx>
Independent local bounds; absent means unlimited, engaged zero means zero capacity.
◆ QueueLimits() [1/3]
Resolve optional limits into a non-owning value.
- Parameters
-
| elements | Optional item ceiling. |
| bytes | Optional logical-byte ceiling. |
◆ QueueLimits() [2/3]
| StormByte::Buffer::QueueLimits::QueueLimits |
( |
const QueueLimits & | other | ) |
|
|
defaultnoexcept |
Copy resolved bounds without allocation.
- Parameters
-
◆ QueueLimits() [3/3]
| StormByte::Buffer::QueueLimits::QueueLimits |
( |
QueueLimits && | other | ) |
|
|
defaultnoexcept |
Move resolved bounds without ownership.
- Parameters
-
◆ ~QueueLimits()
| StormByte::Buffer::QueueLimits::~QueueLimits |
( |
| ) |
|
|
defaultnoexcept |
Destroy non-owning bounds.
◆ Bytes()
Configured byte ceiling.
- Returns
- Bytes; meaningful only when BytesLimited is true.
◆ BytesLimited()
| bool StormByte::Buffer::QueueLimits::BytesLimited |
( |
| ) |
const |
|
inlineconstexprnoexcept |
Whether a byte ceiling is configured.
- Returns
- True for an engaged byte limit.
◆ Elements() [1/2]
Configured item ceiling.
- Returns
- Items; meaningful only when ElementsLimited is true.
◆ Elements() [2/2]
Engage an item ceiling without allocating an optional.
- Parameters
-
| elements | Item ceiling, including an explicit zero. |
◆ ElementsLimited()
| bool StormByte::Buffer::QueueLimits::ElementsLimited |
( |
| ) |
const |
|
inlineconstexprnoexcept |
Whether an item ceiling is configured.
- Returns
- True for an engaged element limit.
◆ operator=() [1/2]
Replace resolved bounds without allocation.
- Parameters
-
- Returns
- This value.
◆ operator=() [2/2]
Move-assign resolved bounds.
- Parameters
-
- Returns
- This value.
◆ UnlimitedElements()
| void StormByte::Buffer::QueueLimits::UnlimitedElements |
( |
| ) |
|
|
inlineconstexprnoexcept |
Remove only the item ceiling without changing byte limits.
The documentation for this class was generated from the following file: