MADARA
3.4.1
ContextGuard.inl
Go to the documentation of this file.
1
#include "
ContextGuard.h
"
2
3
namespace
madara
4
{
5
namespace
knowledge
6
{
7
template
<
typename
... Args>
8
inline
ContextGuard::ContextGuard
(
9
const
KnowledgeBase
&
knowledge
, Args&&... args)
10
:
guard_
(
knowledge
.get_context(), std::forward<Args>(args)...)
11
{
12
}
13
14
template
<
typename
... Args>
15
inline
ContextGuard::ContextGuard
(
16
const
ThreadSafeContext
& context, Args&&... args)
17
:
guard_
(context, std::forward<Args>(args)...)
18
{
19
}
20
}
21
}
ContextGuard.h
guard_
std::unique_ptr< ContextGuard > guard_
Definition:
ThreadSafeContext.cpp:2518
madara::knowledge::ContextGuard::ContextGuard
ContextGuard(const KnowledgeBase &knowledge, Args &&... args)
Constructor.
Definition:
ContextGuard.inl:8
madara::knowledge::KnowledgeBase
This class provides a distributed knowledge base to users.
Definition:
KnowledgeBase.h:45
madara::knowledge::ThreadSafeContext
This class stores variables and their values for use by any entity needing state information in a thr...
Definition:
ThreadSafeContext.h:76
madara::knowledge
Provides functions and classes for the distributed knowledge base.
Definition:
AggregateFilter.h:33
madara
Copyright(c) 2020 Galois.
Definition:
AggregateFilter.h:31
include
madara
knowledge
ContextGuard.inl
Generated on Sat Jan 20 2024 00:40:27 for MADARA by
1.9.1