Essentia
2.1-beta6-dev
|
#include <sourceproxy.h>
Public Member Functions | |
SourceProxyBase (Algorithm *parent=0, const std::string &name="unnamed") | |
SourceProxyBase (const std::string &name) | |
~SourceProxyBase () | |
SourceBase * | proxiedSource () |
const void * | buffer () const |
void * | buffer () |
virtual void | setBufferType (BufferUsage::BufferUsageType type) |
virtual BufferInfo | bufferInfo () const |
virtual void | setBufferInfo (const BufferInfo &info) |
void | acquire () |
virtual bool | acquire (int n) |
virtual int | acquireSize () const |
void | release () |
virtual void | release (int n) |
virtual int | releaseSize () const |
void | detach () |
virtual void | connect (SinkBase &sink) |
virtual void | disconnect (SinkBase &sink) |
Public Member Functions inherited from SourceBase | |
SourceBase (Algorithm *parent=0, const std::string &name="unnamed") | |
SourceBase (const std::string &name) | |
~SourceBase () | |
virtual int | totalProduced () const =0 |
const std::vector< SinkBase * > & | sinks () const |
std::vector< SinkBase * > & | sinks () |
virtual void * | getTokens ()=0 |
virtual void * | getFirstToken ()=0 |
bool | isProxied () const |
const std::vector< SinkBase * > & | proxiedSinks () const |
template<typename TokenType > | |
void | push (const TokenType &value) |
Public Member Functions inherited from Connector | |
Connector (Algorithm *parent=0, const std::string &name="Unnamed") | |
Connector (const std::string &name) | |
const Algorithm * | parent () const |
Algorithm * | parent () |
void | setParent (Algorithm *parent) |
std::string | parentName () const |
std::string | fullName () const |
Public Member Functions inherited from TypeProxy | |
TypeProxy () | |
TypeProxy (const std::string &name) | |
virtual | ~TypeProxy () |
const std::string & | name () const |
void | setName (const std::string &name) |
void | checkType (const std::type_info &received, const std::type_info &expected) const |
template<typename Type > | |
void | checkType () const |
void | checkSameTypeAs (const TypeProxy &obj) const |
void | checkVectorSameTypeAs (const TypeProxy &obj) const |
virtual const std::type_info & | typeInfo () const =0 |
virtual const std::type_info & | vectorTypeInfo () const =0 |
Public Member Functions inherited from StreamConnector | |
StreamConnector () | |
virtual | ~StreamConnector () |
virtual int | available () const =0 |
bool | acquire () |
void | release () |
virtual void | setAcquireSize (int n) |
virtual void | setReleaseSize (int n) |
virtual void | reset ()=0 |
Protected Member Functions | |
void | attach (SourceBase *source) |
void | detach (SourceBase *source) |
Protected Member Functions inherited from SourceBase | |
virtual ReaderID | addReader ()=0 |
virtual void | removeReader (ReaderID id)=0 |
void | attachProxy (SourceProxyBase *sproxy) |
void | detachProxy (SourceProxyBase *sproxy) |
Protected Attributes | |
SourceBase * | _proxiedSource |
Protected Attributes inherited from SourceBase | |
std::vector< SinkBase * > | _sinks |
SourceProxyBase * | _sproxy |
Protected Attributes inherited from Connector | |
Algorithm * | _parent |
Protected Attributes inherited from TypeProxy | |
std::string | _name |
Protected Attributes inherited from StreamConnector | |
int | _acquireSize |
int | _releaseSize |
Friends | |
class | SourceBase |
void | attach (SourceBase &innerSource, SourceProxyBase &proxy) |
void | detach (SourceBase &innerSource, SourceProxyBase &proxy) |
Non template base class for the proxy source, contains a pointer to the actual Source being proxied.
|
inline |
|
inline |
|
inline |
|
inline |
References StreamConnector::acquire().
|
inlinevirtual |
Acquire (consume) the requested number of tokens.
Implements StreamConnector.
References Connector::fullName().
|
inlinevirtual |
Returns the default number of tokens to be acquired.
Reimplemented from StreamConnector.
References SourceProxyBase::_proxiedSource, StreamConnector::acquireSize(), and Connector::fullName().
|
inlineprotected |
Set to which SourceBase we should proxy the SourceBase calls
References SourceProxyBase::_proxiedSource, TypeProxy::checkSameTypeAs(), E_DEBUG, essentia::EConnectors, and Connector::fullName().
|
inlinevirtual |
Implements SourceBase.
References SourceProxyBase::_proxiedSource, SourceBase::buffer(), and Connector::fullName().
|
inline |
References SourceProxyBase::_proxiedSource, SourceBase::buffer(), and Connector::fullName().
Referenced by SourceProxy< TokenType >::typedBuffer().
|
inlinevirtual |
Implements SourceBase.
References SourceProxyBase::_proxiedSource, and SourceBase::bufferInfo().
|
inlinevirtual |
Reimplemented from SourceBase.
References SourceProxyBase::_proxiedSource, SourceBase::connect(), E_DEBUG, essentia::EConnectors, and Connector::fullName().
|
inline |
References SourceProxyBase::_proxiedSource, and essentia::streaming::detach().
|
inlineprotected |
References SourceProxyBase::_proxiedSource, E_DEBUG, E_WARNING, essentia::EConnectors, and Connector::fullName().
|
inlinevirtual |
Reimplemented from SourceBase.
References SourceProxyBase::_proxiedSource, SourceBase::disconnect(), E_DEBUG, essentia::EConnectors, and Connector::fullName().
|
inline |
References SourceProxyBase::_proxiedSource.
|
inline |
References StreamConnector::release().
|
inlinevirtual |
Release (produce) the requested number of tokens.
Implements StreamConnector.
References Connector::fullName().
|
inlinevirtual |
Returns the default number of tokens to be released.
Reimplemented from StreamConnector.
References SourceProxyBase::_proxiedSource, Connector::fullName(), and StreamConnector::releaseSize().
|
inlinevirtual |
Implements SourceBase.
References SourceProxyBase::_proxiedSource, and SourceBase::setBufferInfo().
|
inlinevirtual |
Implements SourceBase.
References SourceProxyBase::_proxiedSource, and SourceBase::setBufferType().
|
friend |
|
friend |
|
friend |
|
protected |
Referenced by SourceProxyBase::acquireSize(), SourceProxyBase::attach(), SourceProxyBase::buffer(), SourceProxyBase::bufferInfo(), SourceProxyBase::connect(), SourceProxyBase::detach(), SourceProxyBase::disconnect(), SourceProxyBase::proxiedSource(), SourceProxyBase::releaseSize(), SourceProxy< TokenType >::reset(), SourceProxyBase::setBufferInfo(), SourceProxyBase::setBufferType(), SourceProxy< TokenType >::totalProduced(), and SourceProxyBase::~SourceProxyBase().