Class for a scoped reader/writer. More...
#include <juce_AbstractFifo.h>
Public Member Functions | |
ScopedReadWrite ()=default | |
Construct an unassigned reader/writer. More... | |
ScopedReadWrite (AbstractFifo &f, int num) noexcept | |
Construct a reader/writer and immediately call prepareRead/prepareWrite on the abstractFifo which was passed in. More... | |
ScopedReadWrite (const ScopedReadWrite &)=delete | |
ScopedReadWrite (ScopedReadWrite &&) noexcept | |
~ScopedReadWrite () noexcept | |
Calls finishedRead or finishedWrite if this is a non-null scoped reader/writer. More... | |
template<typename FunctionToApply > | |
void | forEach (FunctionToApply &&func) const |
Calls the passed function with each index that was deemed valid for the current read/write operation. More... | |
ScopedReadWrite & | operator= (const ScopedReadWrite &)=delete |
ScopedReadWrite & | operator= (ScopedReadWrite &&) noexcept |
Public Attributes | |
int | blockSize1 |
int | blockSize2 |
int | startIndex1 |
int | startIndex2 |
Private Member Functions | |
void | finish (AbstractFifo &f, int num) noexcept |
void | finish (AbstractFifo &f, int num) noexcept |
void | prepare (AbstractFifo &, int) noexcept |
void | prepare (AbstractFifo &f, int num) noexcept |
void | prepare (AbstractFifo &f, int num) noexcept |
void | swap (ScopedReadWrite &) noexcept |
Static Private Member Functions | |
static void | finish (AbstractFifo &, int) noexcept |
Private Attributes | |
AbstractFifo * | fifo = nullptr |
Class for a scoped reader/writer.
|
default |
Construct an unassigned reader/writer.
Doesn't do anything upon destruction.
|
inlinenoexcept |
Construct a reader/writer and immediately call prepareRead/prepareWrite on the abstractFifo which was passed in.
This object will hold a pointer back to the fifo, so make sure that the fifo outlives this object.
References juce::gl::num.
|
delete |
|
noexcept |
|
inlinenoexcept |
Calls finishedRead or finishedWrite if this is a non-null scoped reader/writer.
|
staticprivatenoexcept |
|
inlineprivatenoexcept |
References juce::gl::f, and juce::gl::num.
|
inlineprivatenoexcept |
References juce::gl::f, and juce::gl::num.
|
inline |
Calls the passed function with each index that was deemed valid for the current read/write operation.
References juce::gl::func.
|
delete |
|
noexcept |
|
privatenoexcept |
|
inlineprivatenoexcept |
References juce::gl::f, and juce::gl::num.
|
inlineprivatenoexcept |
References juce::gl::f, and juce::gl::num.
|
privatenoexcept |
int juce::AbstractFifo::ScopedReadWrite< mode >::blockSize1 |
int juce::AbstractFifo::ScopedReadWrite< mode >::blockSize2 |
|
private |
int juce::AbstractFifo::ScopedReadWrite< mode >::startIndex1 |
int juce::AbstractFifo::ScopedReadWrite< mode >::startIndex2 |