Control Surface
main
MIDI Control Surface library for Arduino
Toggle main menu visibility
Main Page
User Manual
Related Pages
Topics
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
z
Functions
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
u
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
z
Typedefs
a
b
c
k
m
n
p
t
Enumerations
Enumerator
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
x
~
Variables
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
i
l
m
p
r
s
t
v
w
Enumerations
Enumerator
a
b
d
f
h
i
l
m
n
o
p
r
s
v
w
Related Symbols
Files
File List
File Members
All
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
Functions
a
b
c
d
e
g
i
l
m
o
p
s
u
v
Variables
c
e
f
h
i
l
m
n
o
p
s
u
v
Typedefs
a
b
c
e
f
i
k
m
n
p
s
t
u
v
Enumerations
Enumerator
Macros
a
b
c
d
e
f
h
i
n
u
Examples
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
Loading...
Searching...
No Matches
src
MIDI_Parsers
LambdaPuller.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include <AH/STL/utility>
// std::forward
4
#include <Settings/NamespaceSettings.hpp>
5
6
BEGIN_CS_NAMESPACE
7
12
template
<
class
Lambda>
13
class
LambdaPuller_
{
14
public
:
15
LambdaPuller_
(Lambda &&
lambda
) :
lambda
(std::forward<Lambda>(
lambda
)) {}
16
17
template
<
class
T>
18
bool
pull
(T &packet) {
19
return
lambda
(packet);
20
}
18
bool
pull
(T &packet) {
…
}
21
22
private
:
23
Lambda
lambda
;
24
};
13
class
LambdaPuller_
{
…
};
25
26
template
<
class
Lambda>
27
LambdaPuller_<Lambda>
LambdaPuller
(Lambda &&lambda) {
28
return
std::forward<Lambda>(lambda);
29
}
27
LambdaPuller_<Lambda>
LambdaPuller
(Lambda &&lambda) {
…
}
30
31
END_CS_NAMESPACE
LambdaPuller
LambdaPuller_< Lambda > LambdaPuller(Lambda &&lambda)
Definition
LambdaPuller.hpp:27
END_CS_NAMESPACE
#define END_CS_NAMESPACE
Definition
Settings/NamespaceSettings.hpp:14
BEGIN_CS_NAMESPACE
#define BEGIN_CS_NAMESPACE
Definition
Settings/NamespaceSettings.hpp:11
LambdaPuller_
Helper to turn a lambda function into a puller.
Definition
LambdaPuller.hpp:13
LambdaPuller_::lambda
Lambda lambda
Definition
LambdaPuller.hpp:23
LambdaPuller_::pull
bool pull(T &packet)
Definition
LambdaPuller.hpp:18
LambdaPuller_::LambdaPuller_
LambdaPuller_(Lambda &&lambda)
Definition
LambdaPuller.hpp:15
Generated by
1.10.0