From 73b86fb0d8ce0a201934405b155e90e1224c0afc Mon Sep 17 00:00:00 2001 From: TravisBot <> Date: Thu, 16 Nov 2017 22:04:20 +0000 Subject: Rebuilding documentation --- active_8h_source.html | 90 ++++++++++++++++++++++++++++----------------------- 1 file changed, 49 insertions(+), 41 deletions(-) (limited to 'active_8h_source.html') diff --git a/active_8h_source.html b/active_8h_source.html index d35279b9..cad4d77a 100644 --- a/active_8h_source.html +++ b/active_8h_source.html @@ -108,56 +108,64 @@ $(document).ready(function(){initNavTree('active_8h_source.html','');});
active.h
-Go to the documentation of this file.
1 #ifndef YAGE_UTIL_ACTIVE_H
-
2 #define YAGE_UTIL_ACTIVE_H
-
3 
-
4 #include "syncqueue.h"
-
5 
-
6 #include <functional>
-
7 #include <memory>
-
8 #include <thread>
-
9 
-
10 namespace yage
-
11 {
-
12 
-
13 class Active
-
14 {
-
15 public:
-
16  typedef std::function<void()> Callback;
+Go to the documentation of this file.
1 /* ----------------------------------------------------------------------------
+
2  * active.h
+
3  *
+
4  * Copyright (c) 2017 Yann Herklotz Grave <ymherklotz@gmail.com>
+
5  * MIT License, see LICENSE file for more details.
+
6  * ----------------------------------------------------------------------------
+
7  */
+
8 
+
9 #ifndef YAGE_UTIL_ACTIVE_H
+
10 #define YAGE_UTIL_ACTIVE_H
+
11 
+
12 #include "syncqueue.h"
+
13 
+
14 #include <functional>
+
15 #include <memory>
+
16 #include <thread>
17 
-
18  Active(const Active &) = delete;
-
19  Active &operator=(const Active &) = delete;
+
18 namespace yage
+
19 {
20 
-
21  ~Active();
-
22 
-
23  static std::unique_ptr<Active> create();
-
24 
-
25  void send(Callback message);
-
26 
-
27 private:
-
28  Active();
-
29  void run();
+
21 class Active
+
22 {
+
23 public:
+
24  typedef std::function<void()> Callback;
+
25 
+
26  Active(const Active &) = delete;
+
27  Active &operator=(const Active &) = delete;
+
28 
+
29  ~Active();
30 
-
31  bool running_;
- -
33  std::thread thread_;
-
34 };
-
35 
-
36 } // namespace yage
-
37 
-
38 #endif
+
31  static std::unique_ptr<Active> create();
+
32 
+
33  void send(Callback message);
+
34 
+
35 private:
+
36  Active();
+
37  void run();
+
38 
+
39  bool running_;
+ +
41  std::thread thread_;
+
42 };
+
43 
+
44 } // namespace yage
+
45 
+
46 #endif
void run()
Definition: active.cpp:36
void send(Callback message)
Definition: active.cpp:31
-
Definition: active.h:13
-
std::function< void()> Callback
Definition: active.h:16
+
Definition: active.h:21
+
std::function< void()> Callback
Definition: active.h:24
Active & operator=(const Active &)=delete
Active()
Definition: active.cpp:14
~Active()
Definition: active.cpp:16
-
std::thread thread_
Definition: active.h:33
+
std::thread thread_
Definition: active.h:41
static std::unique_ptr< Active > create()
Definition: active.cpp:22
-
bool running_
Definition: active.h:31
+
bool running_
Definition: active.h:39
-
SyncQueue< Callback > queue_
Definition: active.h:32
+
SyncQueue< Callback > queue_
Definition: active.h:40
@@ -165,7 +173,7 @@ $(document).ready(function(){initNavTree('active_8h_source.html','');});