|
| class Consumer | Consumer () |
| | Consumer that shares this Producer's Ring.
|
| | Producer () |
| | Create a Producer and a new shared Ring.
|
| | Producer (const Consumer &consumer) |
| | Share the Ring of a Consumer.
|
| | Producer (const Producer &other) |
| | Copy a Producer.
|
| | Producer (Producer &&other) noexcept |
| | Take a Producer.
|
| | ~Producer () noexcept override |
| | Destroy the Producer.
|
| Producer & | operator= (const Producer &other) |
| | Copy-assign a Producer.
|
| Producer & | operator= (Producer &&other) noexcept |
| | Move-assign a Producer.
|
| bool | operator== (const Producer &other) const noexcept |
| | Compare two Producers.
|
| bool | operator!= (const Producer &other) const noexcept |
| | Compare two Producers.
|
| void | Close () noexcept override |
| | Close the shared Ring for further writes and notify waiters.
|
| void | SetError () noexcept override |
| | Put the shared Ring in a permanent error state and notify waiters.
|
| bool | IsWritable () const noexcept override |
| | Whether the shared Ring still accepts writes.
|
| StormByte::ByteSize | Size () const noexcept override |
| | Bytes stored in the shared Ring.
|
| bool | Write (const StormByte::ByteSize &count, const StormByte::Safe::Binary &data) noexcept override |
| | Append bytes from owned storage (copy).
|
| bool | Write (const StormByte::Safe::Binary &data) noexcept |
| | Append an entire owned buffer (copy).
|
| bool | Write (const StormByte::ByteSize &count, StormByte::Safe::Binary &&data) noexcept override |
| | Append bytes from owned storage (move).
|
| bool | Write (StormByte::Safe::Binary &&data) noexcept |
| | Append an entire owned buffer (move).
|
| bool | Write (const StormByte::ByteSize &count, const ReadOnly &data) noexcept override |
| | Append bytes from a readable buffer (copy).
|
| bool | Write (const StormByte::ByteSize &count, ReadOnly &&data) noexcept override |
| | Append bytes from a readable buffer (extract path).
|
| bool | Write (const ReadOnly &data) noexcept |
| | Bring the WriteOnly convenience Write overloads into scope.
|
| bool | Write (ReadOnly &&data) noexcept |
| | Bring the WriteOnly convenience Write overloads into scope.
|
| bool | Write (std::string_view sv) noexcept |
| | Bring the WriteOnly convenience Write overloads into scope.
|
| bool | Write (const char *s) noexcept |
| | Bring the WriteOnly convenience Write overloads into scope.
|
| bool | Write (const StormByte::ByteSize &count, std::string_view sv) noexcept |
| | Bring the WriteOnly convenience Write overloads into scope.
|
| bool | Write (const StormByte::ByteSize &count, const char *s) noexcept |
| | Bring the WriteOnly convenience Write overloads into scope.
|
| template<std::size_t N> |
| bool | Write (const char(&s)[N]) noexcept |
| | Bring the WriteOnly convenience Write overloads into scope.
|
| template<Type::ByteInputRange R> |
| STORMBYTE_FORCE_INLINE bool | Write (const R &r) noexcept |
| | Bring the WriteOnly convenience Write overloads into scope.
|
| template<Type::ByteInputRange Rw> |
| STORMBYTE_FORCE_INLINE bool | Write (const StormByte::ByteSize &count, const Rw &r) noexcept |
| | Bring the WriteOnly convenience Write overloads into scope.
|
| template<Type::ByteInputRange Rrw> |
| STORMBYTE_FORCE_INLINE bool | Write (const StormByte::ByteSize &count, Rrw &&r) noexcept |
| | Bring the WriteOnly convenience Write overloads into scope.
|
| template<Type::ByteInputRange Rr> |
| STORMBYTE_FORCE_INLINE bool | Write (Rr &&r) noexcept |
| | Bring the WriteOnly convenience Write overloads into scope.
|
template<Type::ByteInputIterator I, typename S>
requires Type::SentinelFor<S, I> |
| STORMBYTE_FORCE_INLINE bool | Write (I first, S last) noexcept |
| | Bring the WriteOnly convenience Write overloads into scope.
|
template<Type::ByteInputIterator I2, typename S2>
requires Type::SentinelFor<S2, I2> |
| STORMBYTE_FORCE_INLINE bool | Write (const StormByte::ByteSize &count, I2 first, S2 last) noexcept |
| | Bring the WriteOnly convenience Write overloads into scope.
|
| | WriteOnly () noexcept |
| | Default constructor.
|
| | WriteOnly (const WriteOnly &other) noexcept |
| | Copy constructor.
|
| | WriteOnly (WriteOnly &&other) noexcept |
| | Move constructor.
|
| virtual | ~WriteOnly () noexcept |
| | Destructor.
|
| WriteOnly & | operator= (const WriteOnly &other) noexcept |
| | Copy assignment.
|
| WriteOnly & | operator= (WriteOnly &&other) noexcept |
| | Move assignment.
|
| bool | Write (const ReadOnly &data) noexcept |
| | Append all available bytes from a ReadOnly (copy).
|
| bool | Write (ReadOnly &&data) noexcept |
| | Append all available bytes from a ReadOnly (extract).
|
| bool | Write (std::string_view sv) noexcept |
| | Write a string view.
|
| bool | Write (const char *s) noexcept |
| | Write a C string.
|
| bool | Write (const StormByte::ByteSize &count, std::string_view sv) noexcept |
| | Write up to count characters of a string view.
|
| bool | Write (const StormByte::ByteSize &count, const char *s) noexcept |
| | Write up to count characters of a C string.
|
| template<std::size_t N> |
| bool | Write (const char(&s)[N]) noexcept |
| | Write a string literal without the trailing NUL.
|
| template<Type::ByteInputRange R> |
| STORMBYTE_FORCE_INLINE bool | Write (const R &r) noexcept |
| | Write all elements from an input range.
|
| template<Type::ByteInputRange Rw> |
| STORMBYTE_FORCE_INLINE bool | Write (const StormByte::ByteSize &count, const Rw &r) noexcept |
| | Write up to count elements from an input range.
|
| template<Type::ByteInputRange Rrw> |
| STORMBYTE_FORCE_INLINE bool | Write (const StormByte::ByteSize &count, Rrw &&r) noexcept |
| | Write up to count elements from an rvalue range.
|
| template<Type::ByteInputRange Rr> |
| STORMBYTE_FORCE_INLINE bool | Write (Rr &&r) noexcept |
| | Write all elements from an rvalue range.
|
template<Type::ByteInputIterator I, typename S>
requires Type::SentinelFor<S, I> |
| STORMBYTE_FORCE_INLINE bool | Write (I first, S last) noexcept |
| | Write all elements from an iterator pair.
|
template<Type::ByteInputIterator I2, typename S2>
requires Type::SentinelFor<S2, I2> |
| STORMBYTE_FORCE_INLINE bool | Write (const StormByte::ByteSize &count, I2 first, S2 last) noexcept |
| | Write up to count elements from an iterator pair.
|
| | Generic () noexcept |
| | Default constructor.
|
| | Generic (const Generic &other) noexcept |
| | Copy constructor.
|
| | Generic (Generic &&other) noexcept |
| | Move constructor.
|
| virtual | ~Generic () noexcept=0 |
| | Pure virtual destructor.
|
| Generic & | operator= (const Generic &other) noexcept |
| | Copy assignment.
|
| Generic & | operator= (Generic &&other) noexcept |
| | Move assignment.
|
Write-only handle over a shared Ring.
Several Producer instances may share the same Ring. Writes are thread-safe. Occupancy is Generic::Size of that Ring. Consumer() returns a matching reader on the same store.
- See also
- Consumer, Ring, WriteOnly