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>
9  const KnowledgeBase& knowledge, Args&&... args)
10  : guard_(knowledge.get_context(), std::forward<Args>(args)...)
11 {
12 }
13 
14 template<typename... Args>
16  const ThreadSafeContext& context, Args&&... args)
17  : guard_(context, std::forward<Args>(args)...)
18 {
19 }
20 }
21 }
std::unique_ptr< ContextGuard > guard_
ContextGuard(const KnowledgeBase &knowledge, Args &&... args)
Constructor.
Definition: ContextGuard.inl:8
This class provides a distributed knowledge base to users.
Definition: KnowledgeBase.h:45
This class stores variables and their values for use by any entity needing state information in a thr...
Provides functions and classes for the distributed knowledge base.
Copyright(c) 2020 Galois.