Essentia
2.1-beta6-dev
|
#include <types.h>
Public Member Functions | |
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 |
Protected Attributes | |
std::string | _name |
Subclasses of this interface have the ability to check their type against another one.
|
inline |
|
inline |
|
inlinevirtual |
|
inline |
References TypeProxy::checkType(), and TypeProxy::typeInfo().
Referenced by SinkProxyBase::attach(), SourceProxyBase::attach(), and SinkProxy< TokenType >::connect().
|
inline |
References TypeProxy::typeInfo().
Referenced by TypeProxy::checkSameTypeAs(), and TypeProxy::checkVectorSameTypeAs().
|
inline |
References essentia::nameOfType(), and essentia::sameType().
|
inline |
References TypeProxy::checkType(), TypeProxy::typeInfo(), and TypeProxy::vectorTypeInfo().
|
inline |
References TypeProxy::_name.
Referenced by InputBase::fullName(), OutputBase::fullName(), and TypeProxy::setName().
|
inline |
References TypeProxy::_name, and TypeProxy::name().
|
pure virtual |
Implemented in SourceProxy< TokenType >, Source< TokenType >, Source< Real >, SinkProxy< TokenType >, Sink< TokenType >, Sink< T >, Sink< std::vector< Real > >, Sink< Real >, Output< Type >, and Input< Type >.
Referenced by TypeProxy::checkSameTypeAs(), TypeProxy::checkType(), TypeProxy::checkVectorSameTypeAs(), essentia::nameOfType(), and essentia::sameType().
|
pure virtual |
Implemented in SourceProxy< TokenType >, Source< TokenType >, Source< Real >, SinkProxy< TokenType >, Sink< TokenType >, Sink< T >, Sink< std::vector< Real > >, Sink< Real >, Output< Type >, and Input< Type >.
Referenced by TypeProxy::checkVectorSameTypeAs().
|
protected |
Referenced by TypeProxy::name(), and TypeProxy::setName().