Essentia  2.1-beta6-dev
TypeProxy Class Referenceabstract

#include <types.h>

Inheritance diagram for TypeProxy:
InputBase OutputBase Connector Input< Type > Output< Type > SinkBase SourceBase Sink< T > Sink< std::vector< Real > > Sink< Real > Sink< TokenType > SinkProxyBase Source< Real > Source< TokenType > SourceProxyBase

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
 

Detailed Description

Subclasses of this interface have the ability to check their type against another one.

Constructor & Destructor Documentation

◆ TypeProxy() [1/2]

TypeProxy ( )
inline

◆ TypeProxy() [2/2]

TypeProxy ( const std::string &  name)
inline

◆ ~TypeProxy()

virtual ~TypeProxy ( )
inlinevirtual

Member Function Documentation

◆ checkSameTypeAs()

void checkSameTypeAs ( const TypeProxy obj) const
inline

◆ checkType() [1/2]

void checkType ( ) const
inline

◆ checkType() [2/2]

void checkType ( const std::type_info &  received,
const std::type_info &  expected 
) const
inline

◆ checkVectorSameTypeAs()

void checkVectorSameTypeAs ( const TypeProxy obj) const
inline

◆ name()

const std::string& name ( ) const
inline

◆ setName()

void setName ( const std::string &  name)
inline

◆ typeInfo()

◆ vectorTypeInfo()

Member Data Documentation

◆ _name

std::string _name
protected

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