20 #ifndef ESSENTIA_SINK_H
21 #define ESSENTIA_SINK_H
30 template <
typename TokenType>
34 template <
typename TokenType>
93 ", which has not been connected.");
const std::string & name() const
Definition: types.h:284
Definition: streamingalgorithm.h:140
std::string fullName() const
const Algorithm * parent() const
Definition: connector.h:53
virtual const std::vector< T > & readView(ReaderID id) const =0
virtual void releaseForRead(ReaderID id, int released)=0
virtual int availableForRead(ReaderID id) const =0
virtual bool acquireForRead(ReaderID id, int requested)=0
virtual const T & lastTokenProduced() const =0
Definition: sinkbase.h:52
SinkProxyBase * _sproxy
Definition: sinkbase.h:57
ReaderID _id
Definition: sinkbase.h:55
SourceBase * _source
Definition: sinkbase.h:54
void release()
Definition: sinkproxy.h:86
const void * buffer() const
Definition: sinkproxy.h:46
void acquire()
Definition: sinkproxy.h:73
const std::vector< TokenType > & tokens() const
Definition: sink.h:60
virtual bool acquire(int n)
Definition: sink.h:69
void release()
Definition: sink.h:79
virtual int available() const
Definition: sink.h:88
TokenType pop()
Definition: sink.h:98
virtual void reset()
Definition: sink.h:96
MultiRateBuffer< TokenType > & buffer()
Definition: sink.h:52
const TokenType & firstToken() const
Definition: sink.h:61
const TokenType & lastTokenProduced() const
Definition: sink.h:62
const MultiRateBuffer< TokenType > & buffer() const
Definition: sink.h:45
Sink(const std::string &name)
Definition: sink.h:43
virtual void release(int n)
Definition: sink.h:81
virtual const void * getFirstToken() const
Definition: sink.h:65
Sink(Algorithm *parent=0, const std::string &name="unnamed")
Definition: sink.h:40
void acquire()
Definition: sink.h:67
virtual const void * getTokens() const
Definition: sink.h:64
virtual void * buffer()=0
void release()
Definition: streamconnector.h:59
bool acquire()
Definition: streamconnector.h:49
virtual int available() const =0
Definition: algorithm.h:28
#define USE_TYPE_INFO(TokenType)
Definition: types.h:332