Klang C++
Language Reference (draft)
Loading...
Searching...
No Matches
klang::Generic::Output< SIGNAL >abstract

Audio output object. More...

#include <klang.h>

+ Inheritance diagram for klang::Generic::Output< SIGNAL >:

Public Member Functions

virtual const SIGNAL & output () const
 
template<typename TYPE >
TYPE & operator>> (TYPE &destination)
 
virtual operator const SIGNAL & ()
 
virtual operator const SIGNAL & () const
 
template<typename TYPE >
SIGNAL operator+ (TYPE &other)
 
template<typename TYPE >
SIGNAL operator* (TYPE &other)
 
template<typename TYPE >
SIGNAL operator- (TYPE &other)
 
template<typename TYPE >
SIGNAL operator/ (TYPE &other)
 

Public Attributes

SIGNAL out = { 0.f }
 

Detailed Description

template<typename SIGNAL>
struct klang::Generic::Output< SIGNAL >

Definition at line 1356 of file klang.h.

Member Function Documentation

◆ operator const SIGNAL &() [1/2]

template<typename SIGNAL >
virtual klang::Generic::Output< SIGNAL >::operator const SIGNAL & ( )
inlinevirtual

◆ operator const SIGNAL &() [2/2]

template<typename SIGNAL >
virtual klang::Generic::Output< SIGNAL >::operator const SIGNAL & ( ) const
inlinevirtual

◆ operator*()

template<typename SIGNAL >
template<typename TYPE >
SIGNAL klang::Generic::Output< SIGNAL >::operator* ( TYPE & other)
inline

Definition at line 1372 of file klang.h.

1372{ process(); return out * (other); }

◆ operator+()

template<typename SIGNAL >
template<typename TYPE >
SIGNAL klang::Generic::Output< SIGNAL >::operator+ ( TYPE & other)
inline

Definition at line 1371 of file klang.h.

1371{ process(); return out + (other); }

◆ operator-()

template<typename SIGNAL >
template<typename TYPE >
SIGNAL klang::Generic::Output< SIGNAL >::operator- ( TYPE & other)
inline

Definition at line 1373 of file klang.h.

1373{ process(); return out - (other); }

◆ operator/()

template<typename SIGNAL >
template<typename TYPE >
SIGNAL klang::Generic::Output< SIGNAL >::operator/ ( TYPE & other)
inline

Definition at line 1374 of file klang.h.

1374{ process(); return out / (other); }

◆ operator>>()

template<typename SIGNAL >
template<typename TYPE >
TYPE & klang::Generic::Output< SIGNAL >::operator>> ( TYPE & destination)
inline

Definition at line 1364 of file klang.h.

1364{ process(); return destination = out; }

References klang::Generic::Output< SIGNAL >::out, and klang::Generic::Output< SIGNAL >::process().

◆ output()

template<typename SIGNAL >
virtual const SIGNAL & klang::Generic::Output< SIGNAL >::output ( ) const
inlinevirtual

Definition at line 1360 of file klang.h.

1360{ return out; }

References klang::Generic::Output< SIGNAL >::out.

◆ process()

Member Data Documentation

◆ out