Essentia
2.1-beta6-dev
|
#include <multiratebuffer.h>
Public Member Functions | |
virtual | ~MultiRateBuffer () |
virtual void | setBufferType (BufferUsage::BufferUsageType type)=0 |
virtual BufferInfo | bufferInfo () const =0 |
virtual void | setBufferInfo (const BufferInfo &info)=0 |
virtual ReaderID | addReader (bool startFromZero=false)=0 |
virtual void | removeReader (ReaderID id)=0 |
virtual int | numberReaders () const =0 |
virtual bool | acquireForRead (ReaderID id, int requested)=0 |
virtual void | releaseForRead (ReaderID id, int released)=0 |
virtual bool | acquireForWrite (int requested)=0 |
virtual void | releaseForWrite (int released)=0 |
virtual int | availableForRead (ReaderID id) const =0 |
virtual int | availableForWrite (bool contiguous=true) const =0 |
virtual int | totalTokensRead (ReaderID id) const =0 |
virtual int | totalTokensWritten () const =0 |
virtual const T & | lastTokenProduced () const =0 |
void | readerConsume (ReaderID id, int requested) |
void | readerProduce (ReaderID id, int released) |
void | writerConsume (int requested) |
void | writerProduce (int released) |
virtual const std::vector< T > & | readView (ReaderID id) const =0 |
virtual std::vector< T > & | writeView ()=0 |
virtual void | reset ()=0 |
virtual void | resize (int size, int phantomSize)=0 |
|
inlinevirtual |
|
pure virtual |
Implemented in PhantomBuffer< T >.
Referenced by Sink< TokenType >::acquire(), and MultiRateBuffer< T >::readerConsume().
|
pure virtual |
Implemented in PhantomBuffer< T >.
Referenced by Source< TokenType >::acquire(), and MultiRateBuffer< T >::writerConsume().
|
pure virtual |
Implemented in PhantomBuffer< T >.
Referenced by Source< TokenType >::addReader(), and AbsoluteSource< TokenType >::addReader().
|
pure virtual |
Implemented in PhantomBuffer< T >.
Referenced by Sink< TokenType >::available(), and SinkProxy< TokenType >::available().
|
pure virtual |
Implemented in PhantomBuffer< T >.
Referenced by Source< TokenType >::available(), and SourceProxy< TokenType >::available().
|
pure virtual |
Implemented in PhantomBuffer< T >.
Referenced by Source< TokenType >::bufferInfo().
|
pure virtual |
Implemented in PhantomBuffer< T >.
Referenced by Sink< TokenType >::lastTokenProduced(), and Source< TokenType >::lastTokenProduced().
|
pure virtual |
Implemented in PhantomBuffer< T >.
|
inline |
References MultiRateBuffer< T >::acquireForRead().
|
inline |
References MultiRateBuffer< T >::releaseForRead().
|
pure virtual |
Implemented in PhantomBuffer< T >.
Referenced by Sink< TokenType >::firstToken(), and Sink< TokenType >::tokens().
|
pure virtual |
Implemented in PhantomBuffer< T >.
Referenced by MultiRateBuffer< T >::readerProduce(), and Sink< TokenType >::release().
|
pure virtual |
Implemented in PhantomBuffer< T >.
Referenced by Source< TokenType >::release(), and MultiRateBuffer< T >::writerProduce().
|
pure virtual |
Implemented in PhantomBuffer< T >.
Referenced by Source< TokenType >::removeReader().
|
pure virtual |
Implemented in PhantomBuffer< T >.
Referenced by Source< TokenType >::reset().
|
pure virtual |
Implemented in PhantomBuffer< T >.
|
pure virtual |
Implemented in PhantomBuffer< T >.
Referenced by Source< TokenType >::setBufferInfo().
|
pure virtual |
Implemented in PhantomBuffer< T >.
Referenced by Source< TokenType >::setBufferType().
|
pure virtual |
Implemented in PhantomBuffer< T >.
|
pure virtual |
Implemented in PhantomBuffer< T >.
Referenced by Source< TokenType >::totalProduced().
|
inline |
References MultiRateBuffer< T >::acquireForWrite().
|
inline |
References MultiRateBuffer< T >::releaseForWrite().
|
pure virtual |
Implemented in PhantomBuffer< T >.
Referenced by Source< TokenType >::firstToken(), and Source< TokenType >::tokens().