Raven Core
3.0.0
P2P Digital Currency
Main Page
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
v
z
+
Functions
b
c
d
f
g
h
i
m
o
p
q
s
v
Variables
Typedefs
Enumerations
Enumerator
+
Classes
Class List
Class Index
Class Hierarchy
+
Class Members
+
All
_
a
b
c
d
e
f
g
h
i
j
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
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
~
+
Variables
_
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
+
Typedefs
a
b
c
d
f
i
k
l
m
o
p
r
s
t
v
+
Enumerations
b
c
d
e
f
m
n
o
r
s
t
u
v
w
+
Enumerator
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
Properties
+
Related Functions
a
c
d
f
o
p
t
u
v
w
+
Files
File List
+
File Members
+
All
_
a
b
c
d
e
f
g
h
i
j
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
j
k
l
m
n
o
p
q
r
s
t
u
v
w
z
+
Variables
a
b
c
d
e
f
g
h
i
l
m
n
p
r
s
t
u
v
w
z
+
Typedefs
b
c
h
i
k
m
n
r
s
t
u
v
w
+
Enumerations
a
b
c
d
e
f
g
h
i
j
m
n
o
q
r
s
t
w
+
Enumerator
a
b
c
d
e
f
g
h
i
j
l
m
n
o
r
s
t
u
+
Macros
_
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
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
src
qt
callback.h
Go to the documentation of this file.
1
#ifndef RAVEN_QT_CALLBACK_H
2
#define RAVEN_QT_CALLBACK_H
3
4
#include <QObject>
5
6
class
Callback
:
public
QObject
7
{
8
Q_OBJECT
9
public
Q_SLOTS:
10
virtual
void
call
() = 0;
11
};
12
13
template
<
typename
F>
14
class
FunctionCallback
:
public
Callback
15
{
16
F
f
;
17
18
public
:
19
explicit
FunctionCallback
(F f_) : f(
std
::move(f_)) {}
20
~FunctionCallback
()
override
{}
21
void
call
()
override
{ f(
this
); }
22
};
23
24
template
<
typename
F>
25
FunctionCallback<F>
*
makeCallback
(F f)
26
{
27
return
new
FunctionCallback<F>
(std::move(f));
28
}
29
30
#endif // RAVEN_QT_CALLBACK_H
std
Callback
Definition:
callback.h:6
FunctionCallback::f
F f
Definition:
callback.h:16
FunctionCallback::call
void call() override
Definition:
callback.h:21
Callback::call
virtual void call()=0
FunctionCallback::FunctionCallback
FunctionCallback(F f_)
Definition:
callback.h:19
makeCallback
FunctionCallback< F > * makeCallback(F f)
Definition:
callback.h:25
FunctionCallback::~FunctionCallback
~FunctionCallback() override
Definition:
callback.h:20
FunctionCallback
Definition:
callback.h:14
Generated on Mon Jul 29 2019 02:32:19 for Raven Core by
1.8.13