|
JUCE-7.0.12-0-g4f43011b96 JUCE-7.0.12-0-g4f43011b96
JUCE — C++ application framework with suport for VST, VST3, LV2 audio plug-ins
« « « Anklang Documentation |
Class for a scoped reader/writer. More...
#include "juce_AbstractFifo.h"
Public Member Functions | |
| ScopedReadWrite ()=default | |
| Construct an unassigned reader/writer. | |
| ScopedReadWrite (AbstractFifo &f, int num) noexcept | |
| Construct a reader/writer and immediately call prepareRead/prepareWrite on the abstractFifo which was passed in. | |
| ScopedReadWrite (const ScopedReadWrite &)=delete | |
| ScopedReadWrite (ScopedReadWrite &&) noexcept | |
| ScopedReadWrite & | operator= (const ScopedReadWrite &)=delete |
| ScopedReadWrite & | operator= (ScopedReadWrite &&) noexcept |
| ~ScopedReadWrite () noexcept | |
| Calls finishedRead or finishedWrite if this is a non-null scoped reader/writer. | |
| 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. | |
Public Attributes | |
| int | startIndex1 |
| int | blockSize1 |
| int | startIndex2 |
| int | blockSize2 |
Class for a scoped reader/writer.
Definition at line 202 of file juce_AbstractFifo.h.
|
default |
Construct an unassigned reader/writer.
Doesn't do anything upon destruction.
|
noexcept |
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.
Definition at line 213 of file juce_AbstractFifo.h.
|
noexcept |
Definition at line 133 of file juce_AbstractFifo.cpp.
|
noexcept |
Calls finishedRead or finishedWrite if this is a non-null scoped reader/writer.
Definition at line 227 of file juce_AbstractFifo.h.
| void juce::AbstractFifo::ScopedReadWrite< mode >::forEach | ( | FunctionToApply && | func | ) | const |
Calls the passed function with each index that was deemed valid for the current read/write operation.
Definition at line 237 of file juce_AbstractFifo.h.
|
noexcept |
Definition at line 144 of file juce_AbstractFifo.cpp.
| int juce::AbstractFifo::ScopedReadWrite< mode >::blockSize1 |
Definition at line 243 of file juce_AbstractFifo.h.
| int juce::AbstractFifo::ScopedReadWrite< mode >::blockSize2 |
Definition at line 243 of file juce_AbstractFifo.h.
| int juce::AbstractFifo::ScopedReadWrite< mode >::startIndex1 |
Definition at line 243 of file juce_AbstractFifo.h.
| int juce::AbstractFifo::ScopedReadWrite< mode >::startIndex2 |
Definition at line 243 of file juce_AbstractFifo.h.