Essentia  2.1-beta6-dev
Sink< TokenType > Class Template Reference

#include <sink.h>

Inheritance diagram for Sink< TokenType >:
SinkBase Connector TypeProxy StreamConnector

Public Member Functions

 Sink (Algorithm *parent=0, const std::string &name="unnamed")
 
 Sink (const std::string &name)
 
const MultiRateBuffer< TokenType > & buffer () const
 
MultiRateBuffer< TokenType > & buffer ()
 
const std::vector< TokenType > & tokens () const
 
const TokenType & firstToken () const
 
const TokenType & lastTokenProduced () const
 
virtual const void * getTokens () const
 
virtual const void * getFirstToken () const
 
void acquire ()
 
virtual bool acquire (int n)
 
void release ()
 
virtual void release (int n)
 
virtual int available () const
 
virtual void reset ()
 
TokenType pop ()
 
- Public Member Functions inherited from SinkBase
 SinkBase (Algorithm *parent=0, const std::string &name="unnamed")
 
 SinkBase (const std::string &name)
 
 ~SinkBase ()
 
const SourceBasesource () const
 
SourceBasesource ()
 
virtual void setSource (SourceBase *source)
 
ReaderID id () const
 
virtual void setId (ReaderID id)
 
- Public Member Functions inherited from Connector
 Connector (Algorithm *parent=0, const std::string &name="Unnamed")
 
 Connector (const std::string &name)
 
const Algorithmparent () const
 
Algorithmparent ()
 
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
 
- Public Member Functions inherited from StreamConnector
 StreamConnector ()
 
virtual ~StreamConnector ()
 
bool acquire ()
 
void release ()
 
virtual int acquireSize () const
 
virtual int releaseSize () const
 
virtual void setAcquireSize (int n)
 
virtual void setReleaseSize (int n)
 

Private Member Functions

virtual const std::type_info & typeInfo () const
 
virtual const std::type_info & vectorTypeInfo () const
 

Additional Inherited Members

- Protected Member Functions inherited from SinkBase
virtual void connect (SourceBase &source)
 
virtual void disconnect (SourceBase &source)
 
void attachProxy (SinkProxyBase *sproxy)
 
void detachProxy (SinkProxyBase *sproxy)
 
- Protected Attributes inherited from SinkBase
SourceBase_source
 
ReaderID _id
 
SinkProxyBase_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
 

Constructor & Destructor Documentation

◆ Sink() [1/2]

Sink ( Algorithm parent = 0,
const std::string &  name = "unnamed" 
)
inline

◆ Sink() [2/2]

Sink ( const std::string &  name)
inline

Member Function Documentation

◆ acquire() [1/2]

void acquire ( )
inline

◆ acquire() [2/2]

virtual bool acquire ( int  n)
inlinevirtual

◆ available()

virtual int available ( ) const
inlinevirtual

◆ buffer() [1/2]

◆ buffer() [2/2]

◆ firstToken()

const TokenType& firstToken ( ) const
inline

◆ getFirstToken()

virtual const void* getFirstToken ( ) const
inlinevirtual

Implements SinkBase.

References Sink< TokenType >::firstToken().

Referenced by Sink< TokenType >::pop().

◆ getTokens()

virtual const void* getTokens ( ) const
inlinevirtual

Implements SinkBase.

References Sink< TokenType >::tokens().

◆ lastTokenProduced()

const TokenType& lastTokenProduced ( ) const
inline

◆ pop()

◆ release() [1/2]

void release ( )
inline

◆ release() [2/2]

virtual void release ( int  n)
inlinevirtual

◆ reset()

virtual void reset ( )
inlinevirtual

Resets the state of this StreamConnector

Implements StreamConnector.

◆ tokens()

const std::vector<TokenType>& tokens ( ) const
inline

◆ typeInfo()

virtual const std::type_info& typeInfo ( ) const
inlineprivatevirtual

Implements TypeProxy.

◆ vectorTypeInfo()

virtual const std::type_info& vectorTypeInfo ( ) const
inlineprivatevirtual

Implements TypeProxy.


The documentation for this class was generated from the following file: