Klang C++
Language Reference (draft)
Loading...
Searching...
No Matches
klang::ControlMap

Mapped UI control. More...

#include <klang.h>

Public Member Functions

 ControlMap ()
 
 ControlMap (Control &control)
 
 operator Control & ()
 
 operator signal & ()
 
 operator const signal & () const
 
 operator param () const
 
 operator float () const
 
signal smooth ()
 
template<typename TYPE >
Controloperator<< (TYPE &in)
 
template<typename TYPE >
Controloperator<< (const TYPE &in)
 

Public Attributes

Controlcontrol
 

Detailed Description

Definition at line 1042 of file klang.h.

Constructor & Destructor Documentation

◆ ControlMap() [1/2]

klang::ControlMap::ControlMap ( )
inline

Definition at line 1045 of file klang.h.

1045: control(nullptr) { };
Control * control
Definition klang.h:1043

References control.

◆ ControlMap() [2/2]

klang::ControlMap::ControlMap ( Control & control)
inline

Definition at line 1046 of file klang.h.

1046: control(&control) { };

References control.

Member Function Documentation

◆ operator const signal &()

klang::ControlMap::operator const signal & ( ) const
inline

Definition at line 1050 of file klang.h.

1050{ return control->value; }
signal value
Definition klang.h:993

References control, and klang::Control::value.

◆ operator Control &()

klang::ControlMap::operator Control & ( )
inline

Definition at line 1048 of file klang.h.

1048{ return *control; }

References control.

◆ operator float()

klang::ControlMap::operator float ( ) const
inline

Definition at line 1052 of file klang.h.

1052{ return control->value; }

References control, and klang::Control::value.

◆ operator param()

klang::ControlMap::operator param ( ) const
inline

Definition at line 1051 of file klang.h.

1051{ return control->value; }

References control, and klang::Control::value.

◆ operator signal &()

klang::ControlMap::operator signal & ( )
inline

Definition at line 1049 of file klang.h.

1049{ return control->value; }

References control, and klang::Control::value.

◆ operator<<() [1/2]

template<typename TYPE >
Control & klang::ControlMap::operator<< ( const TYPE & in)
inline

Definition at line 1056 of file klang.h.

1056{ control->value = in; return *control; } // assign to control without/after processing

◆ operator<<() [2/2]

template<typename TYPE >
Control & klang::ControlMap::operator<< ( TYPE & in)
inline

Definition at line 1055 of file klang.h.

1055{ control->value = in; return *control; } // assign to control with processing

◆ smooth()

signal klang::ControlMap::smooth ( )
inline

Definition at line 1053 of file klang.h.

1053{ return control->smooth(); }
signal smooth()
Definition klang.h:1002

References control, and klang::Control::smooth().

Member Data Documentation

◆ control