MapLibre Native Core
Main Page
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
z
Functions
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
z
Variables
a
b
c
d
e
f
g
i
k
l
m
n
o
p
r
s
t
v
Typedefs
a
c
d
e
f
g
i
l
m
n
o
p
s
t
u
v
Enumerations
a
b
c
e
f
h
i
k
l
m
n
o
r
s
t
v
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
l
m
n
o
p
q
r
s
t
u
v
w
~
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
Enumerations
Enumerator
Related Functions
a
b
e
i
m
o
s
t
Files
File List
File Members
All
Macros
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
work_task.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include <
mbgl/util/noncopyable.hpp
>
4
5
#include <memory>
6
7
namespace
mbgl
{
8
12
class
WorkTask
:
private
util::noncopyable
{
13
public
:
14
virtual
~WorkTask
() =
default
;
15
16
virtual
void
operator()
() = 0;
17
virtual
void
cancel
() = 0;
18
19
template
<
class
Fn,
class
... Args>
20
static
std::shared_ptr<WorkTask>
make
(Fn&&, Args&&...);
21
};
22
23
}
// namespace mbgl
mbgl::WorkTask
Definition:
work_task.hpp:12
mbgl::WorkTask::cancel
virtual void cancel()=0
mbgl::WorkTask::make
static std::shared_ptr< WorkTask > make(Fn &&, Args &&...)
mbgl::WorkTask::operator()
virtual void operator()()=0
mbgl::WorkTask::~WorkTask
virtual ~WorkTask()=default
mbgl::util::non_copyable_::noncopyable
Definition:
noncopyable.hpp:9
mbgl
Definition:
actor.hpp:15
noncopyable.hpp
include
mbgl
util
work_task.hpp
MapLibre website
|
GitHub repository