-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_message_manager_8h_source.html
82 lines (82 loc) · 25.1 KB
/
_message_manager_8h_source.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Gamedev Framework (gf): MessageManager.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
extensions: ["tex2jax.js"],
jax: ["input/TeX","output/HTML-CSS"],
});
</script><script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="custom.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectlogo"><img alt="Logo" src="gf_logo.png"/></td>
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">Gamedev Framework (gf)
 <span id="projectnumber">0.11.0</span>
</div>
<div id="projectbrief">A C++14 framework for 2D games</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
initMenu('',false,false,'search.php','Search');
});
</script>
<div id="main-nav"></div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="dir_6d069d519ae9d12fa11dd8e685586b60.html">gf</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">MessageManager.h</div> </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">/*</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment"> * Gamedev Framework (gf)</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment"> * Copyright (C) 2016-2018 Julien Bernard</span></div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment"> *</span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment"> * This software is provided 'as-is', without any express or implied</span></div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment"> * warranty. In no event will the authors be held liable for any damages</span></div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment"> * arising from the use of this software.</span></div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment"> *</span></div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment"> * Permission is granted to anyone to use this software for any purpose,</span></div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment"> * including commercial applications, and to alter it and redistribute it</span></div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment"> * freely, subject to the following restrictions:</span></div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="comment"> *</span></div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="comment"> * 1. The origin of this software must not be misrepresented; you must not</span></div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="comment"> * claim that you wrote the original software. If you use this software</span></div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="comment"> * in a product, an acknowledgment in the product documentation would be</span></div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="comment"> * appreciated but is not required.</span></div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="comment"> * 2. Altered source versions must be plainly marked as such, and must not be</span></div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="comment"> * misrepresented as being the original software.</span></div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="comment"> * 3. This notice may not be removed or altered from any source distribution.</span></div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="comment"> */</span></div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="preprocessor">#ifndef GF_MESSAGE_MANAGER_H</span></div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="preprocessor">#define GF_MESSAGE_MANAGER_H</span></div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span> </div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="preprocessor">#include <cstdint></span></div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="preprocessor">#include <map></span></div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span> <span class="preprocessor">#include <type_traits></span></div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="preprocessor">#include <vector></span></div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span> </div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span> <span class="preprocessor">#include "ArrayRef.h"</span></div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span> <span class="preprocessor">#include "Message.h"</span></div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span> <span class="preprocessor">#include "Portability.h"</span></div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span> </div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span> <span class="keyword">namespace </span><a class="code" href="namespacegf.html">gf</a> {</div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span> <span class="preprocessor">#ifndef DOXYGEN_SHOULD_SKIP_THIS</span></div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span> <span class="keyword">inline</span> <span class="keyword">namespace </span>v1 {</div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span> <span class="preprocessor">#endif</span></div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span> </div><div class="line"><a name="l00044"></a><span class="lineno"><a class="line" href="group__game.html#ga6c620c63dd07ac6064f87f0ddafd1e87"> 44</a></span>  <span class="keyword">using</span> <a class="code" href="group__game.html#ga6c620c63dd07ac6064f87f0ddafd1e87">MessageHandlerId</a> = uint64_t;</div><div class="line"><a name="l00045"></a><span class="lineno"> 45</span> </div><div class="line"><a name="l00075"></a><span class="lineno"><a class="line" href="classgf_1_1_message_manager.html"> 75</a></span>  <span class="keyword">class </span>GF_API <a class="code" href="classgf_1_1_message_manager.html">MessageManager</a> {</div><div class="line"><a name="l00076"></a><span class="lineno"> 76</span>  <span class="keyword">public</span>:</div><div class="line"><a name="l00080"></a><span class="lineno"> 80</span>  <a class="code" href="classgf_1_1_message_manager.html">MessageManager</a>();</div><div class="line"><a name="l00081"></a><span class="lineno"> 81</span> </div><div class="line"><a name="l00106"></a><span class="lineno"> 106</span>  <a class="code" href="group__game.html#ga6c620c63dd07ac6064f87f0ddafd1e87">MessageHandlerId</a> registerHandler(<a class="code" href="group__core.html#ga375ce9d7d861b67c78398d51c1769410">Id</a> type, <a class="code" href="group__game.html#ga9b1ccf87c23efeaf78584eb75a631bcd">MessageHandler</a> handler);</div><div class="line"><a name="l00107"></a><span class="lineno"> 107</span> </div><div class="line"><a name="l00126"></a><span class="lineno"> 126</span>  <span class="keyword">template</span><<span class="keyword">typename</span> E></div><div class="line"><a name="l00127"></a><span class="lineno"><a class="line" href="classgf_1_1_message_manager.html#a84b2cf96187cb4f65f78263333ca0488"> 127</a></span>  <a class="code" href="group__game.html#ga6c620c63dd07ac6064f87f0ddafd1e87">MessageHandlerId</a> <a class="code" href="classgf_1_1_message_manager.html#a84b2cf96187cb4f65f78263333ca0488">registerHandler</a>(<a class="code" href="group__game.html#ga9b1ccf87c23efeaf78584eb75a631bcd">MessageHandler</a> handler) {</div><div class="line"><a name="l00128"></a><span class="lineno"> 128</span>  static_assert(std::is_base_of<Message, E>::value, <span class="stringliteral">"E must be an Message"</span>);</div><div class="line"><a name="l00129"></a><span class="lineno"> 129</span>  static_assert(E::type != <a class="code" href="group__core.html#ga63cc77139085fae86503ed552b1c52ee">InvalidId</a>, <span class="stringliteral">"E must define its type"</span>);</div><div class="line"><a name="l00130"></a><span class="lineno"> 130</span>  <span class="keywordflow">return</span> registerHandler(E::type, handler);</div><div class="line"><a name="l00131"></a><span class="lineno"> 131</span>  }</div><div class="line"><a name="l00132"></a><span class="lineno"> 132</span> </div><div class="line"><a name="l00160"></a><span class="lineno"> 160</span>  <span class="keyword">template</span><<span class="keyword">typename</span> R, <span class="keyword">typename</span> T></div><div class="line"><a name="l00161"></a><span class="lineno"><a class="line" href="classgf_1_1_message_manager.html#ab1352125393df11fa1d6cf6c3058d4c3"> 161</a></span>  <a class="code" href="group__game.html#ga6c620c63dd07ac6064f87f0ddafd1e87">MessageHandlerId</a> <a class="code" href="classgf_1_1_message_manager.html#ab1352125393df11fa1d6cf6c3058d4c3">registerHandler</a>(<a class="code" href="group__core.html#ga375ce9d7d861b67c78398d51c1769410">Id</a> type, <a class="code" href="group__window.html#gga795d7d5e2f2a4f38b16b95e0e78cb626ae1e1d3d40573127e9ee0480caf1283d6">R</a> <a class="code" href="group__window.html#gga795d7d5e2f2a4f38b16b95e0e78cb626ab9ece18c950afbfa6b0fdbfa4ff731d3">T</a>::*pm, <a class="code" href="group__window.html#gga795d7d5e2f2a4f38b16b95e0e78cb626ab9ece18c950afbfa6b0fdbfa4ff731d3">T</a> *obj) {</div><div class="line"><a name="l00162"></a><span class="lineno"> 162</span>  <span class="keywordflow">return</span> registerHandler(type, [pm, obj](<a class="code" href="group__core.html#ga375ce9d7d861b67c78398d51c1769410">Id</a> <span class="keywordtype">id</span>, <a class="code" href="structgf_1_1_message.html">Message</a> *msg) {</div><div class="line"><a name="l00163"></a><span class="lineno"> 163</span>  <span class="keywordflow">return</span> (obj->*pm)(<span class="keywordtype">id</span>, msg);</div><div class="line"><a name="l00164"></a><span class="lineno"> 164</span>  });</div><div class="line"><a name="l00165"></a><span class="lineno"> 165</span>  }</div><div class="line"><a name="l00166"></a><span class="lineno"> 166</span> </div><div class="line"><a name="l00193"></a><span class="lineno"> 193</span>  <span class="keyword">template</span><<span class="keyword">typename</span> E, <span class="keyword">typename</span> R, <span class="keyword">typename</span> T></div><div class="line"><a name="l00194"></a><span class="lineno"><a class="line" href="classgf_1_1_message_manager.html#a012a264f993371610ef28002b0399b66"> 194</a></span>  <a class="code" href="group__game.html#ga6c620c63dd07ac6064f87f0ddafd1e87">MessageHandlerId</a> <a class="code" href="classgf_1_1_message_manager.html#a012a264f993371610ef28002b0399b66">registerHandler</a>(<a class="code" href="group__window.html#gga795d7d5e2f2a4f38b16b95e0e78cb626ae1e1d3d40573127e9ee0480caf1283d6">R</a> <a class="code" href="group__window.html#gga795d7d5e2f2a4f38b16b95e0e78cb626ab9ece18c950afbfa6b0fdbfa4ff731d3">T</a>::*pm, <a class="code" href="group__window.html#gga795d7d5e2f2a4f38b16b95e0e78cb626ab9ece18c950afbfa6b0fdbfa4ff731d3">T</a> *obj) {</div><div class="line"><a name="l00195"></a><span class="lineno"> 195</span>  static_assert(std::is_base_of<Message, E>::value, <span class="stringliteral">"E must be an Message"</span>);</div><div class="line"><a name="l00196"></a><span class="lineno"> 196</span>  static_assert(E::type != <a class="code" href="group__core.html#ga63cc77139085fae86503ed552b1c52ee">InvalidId</a>, <span class="stringliteral">"E must define its type"</span>);</div><div class="line"><a name="l00197"></a><span class="lineno"> 197</span>  <span class="keywordflow">return</span> registerHandler(E::type, [pm, obj](<a class="code" href="group__core.html#ga375ce9d7d861b67c78398d51c1769410">Id</a> <span class="keywordtype">id</span>, <a class="code" href="structgf_1_1_message.html">Message</a> *msg) {</div><div class="line"><a name="l00198"></a><span class="lineno"> 198</span>  <span class="keywordflow">return</span> (obj->*pm)(<span class="keywordtype">id</span>, msg);</div><div class="line"><a name="l00199"></a><span class="lineno"> 199</span>  });</div><div class="line"><a name="l00200"></a><span class="lineno"> 200</span>  }</div><div class="line"><a name="l00201"></a><span class="lineno"> 201</span> </div><div class="line"><a name="l00214"></a><span class="lineno"> 214</span>  <span class="keywordtype">void</span> removeHandler(<a class="code" href="group__game.html#ga6c620c63dd07ac6064f87f0ddafd1e87">MessageHandlerId</a> <span class="keywordtype">id</span>);</div><div class="line"><a name="l00215"></a><span class="lineno"> 215</span> </div><div class="line"><a name="l00221"></a><span class="lineno"><a class="line" href="classgf_1_1_message_manager.html#af15bb3fab26df9b0abd005e40d96626c"> 221</a></span>  <span class="keywordtype">void</span> <a class="code" href="classgf_1_1_message_manager.html#af15bb3fab26df9b0abd005e40d96626c">removeHandlers</a>(<a class="code" href="classgf_1_1_array_ref.html">ArrayRef<MessageHandlerId></a> ids) {</div><div class="line"><a name="l00222"></a><span class="lineno"> 222</span>  <span class="keywordflow">for</span> (<span class="keyword">auto</span> <span class="keywordtype">id</span> : ids) {</div><div class="line"><a name="l00223"></a><span class="lineno"> 223</span>  removeHandler(<span class="keywordtype">id</span>);</div><div class="line"><a name="l00224"></a><span class="lineno"> 224</span>  }</div><div class="line"><a name="l00225"></a><span class="lineno"> 225</span>  }</div><div class="line"><a name="l00226"></a><span class="lineno"> 226</span> </div><div class="line"><a name="l00257"></a><span class="lineno"> 257</span>  <span class="keywordtype">void</span> sendMessage(<a class="code" href="group__core.html#ga375ce9d7d861b67c78398d51c1769410">Id</a> type, <a class="code" href="structgf_1_1_message.html">Message</a> *message);</div><div class="line"><a name="l00258"></a><span class="lineno"> 258</span> </div><div class="line"><a name="l00281"></a><span class="lineno"> 281</span>  <span class="keyword">template</span><<span class="keyword">typename</span> E></div><div class="line"><a name="l00282"></a><span class="lineno"><a class="line" href="classgf_1_1_message_manager.html#af978ecb7e47992436ded66f6dc11a408"> 282</a></span>  <span class="keywordtype">void</span> <a class="code" href="classgf_1_1_message_manager.html#af978ecb7e47992436ded66f6dc11a408">sendMessage</a>(<a class="code" href="group__window.html#gga795d7d5e2f2a4f38b16b95e0e78cb626a3a3ea00cfc35332cedf6e5e9a32e94da">E</a> *message) {</div><div class="line"><a name="l00283"></a><span class="lineno"> 283</span>  static_assert(std::is_base_of<Message, E>::value, <span class="stringliteral">"E must be an Message"</span>);</div><div class="line"><a name="l00284"></a><span class="lineno"> 284</span>  static_assert(E::type != <a class="code" href="group__core.html#ga63cc77139085fae86503ed552b1c52ee">InvalidId</a>, <span class="stringliteral">"E must define its type"</span>);</div><div class="line"><a name="l00285"></a><span class="lineno"> 285</span>  sendMessage(E::type, message);</div><div class="line"><a name="l00286"></a><span class="lineno"> 286</span>  }</div><div class="line"><a name="l00287"></a><span class="lineno"> 287</span> </div><div class="line"><a name="l00290"></a><span class="lineno"> 290</span>  <span class="keyword">private</span>:</div><div class="line"><a name="l00291"></a><span class="lineno"> 291</span>  <span class="keyword">struct </span>Handler {</div><div class="line"><a name="l00292"></a><span class="lineno"> 292</span>  <a class="code" href="group__game.html#ga6c620c63dd07ac6064f87f0ddafd1e87">MessageHandlerId</a> id;</div><div class="line"><a name="l00293"></a><span class="lineno"> 293</span>  <a class="code" href="group__game.html#ga9b1ccf87c23efeaf78584eb75a631bcd">MessageHandler</a> handler;</div><div class="line"><a name="l00294"></a><span class="lineno"> 294</span>  };</div><div class="line"><a name="l00295"></a><span class="lineno"> 295</span> </div><div class="line"><a name="l00296"></a><span class="lineno"> 296</span>  <a class="code" href="group__game.html#ga6c620c63dd07ac6064f87f0ddafd1e87">MessageHandlerId</a> m_currentId;</div><div class="line"><a name="l00297"></a><span class="lineno"> 297</span>  std::map<Id, std::vector<Handler>> m_handlers;</div><div class="line"><a name="l00298"></a><span class="lineno"> 298</span>  };</div><div class="line"><a name="l00299"></a><span class="lineno"> 299</span> </div><div class="line"><a name="l00300"></a><span class="lineno"> 300</span> <span class="preprocessor">#ifndef DOXYGEN_SHOULD_SKIP_THIS</span></div><div class="line"><a name="l00301"></a><span class="lineno"> 301</span> }</div><div class="line"><a name="l00302"></a><span class="lineno"> 302</span> <span class="preprocessor">#endif</span></div><div class="line"><a name="l00303"></a><span class="lineno"> 303</span> }</div><div class="line"><a name="l00304"></a><span class="lineno"> 304</span> </div><div class="line"><a name="l00305"></a><span class="lineno"> 305</span> <span class="preprocessor">#endif // GF_MESSAGE_MANAGER_H</span></div><div class="ttc" id="group__game_html_ga9b1ccf87c23efeaf78584eb75a631bcd"><div class="ttname"><a href="group__game.html#ga9b1ccf87c23efeaf78584eb75a631bcd">gf::MessageHandler</a></div><div class="ttdeci">std::function< MessageStatus(Id, Message *)> MessageHandler</div><div class="ttdoc">A message handler. </div><div class="ttdef"><b>Definition:</b> Message.h:121</div></div>
<div class="ttc" id="classgf_1_1_message_manager_html_a84b2cf96187cb4f65f78263333ca0488"><div class="ttname"><a href="classgf_1_1_message_manager.html#a84b2cf96187cb4f65f78263333ca0488">gf::MessageManager::registerHandler</a></div><div class="ttdeci">MessageHandlerId registerHandler(MessageHandler handler)</div><div class="ttdoc">Register a message handler for a type of message. </div><div class="ttdef"><b>Definition:</b> MessageManager.h:127</div></div>
<div class="ttc" id="group__window_html_gga795d7d5e2f2a4f38b16b95e0e78cb626ab9ece18c950afbfa6b0fdbfa4ff731d3"><div class="ttname"><a href="group__window.html#gga795d7d5e2f2a4f38b16b95e0e78cb626ab9ece18c950afbfa6b0fdbfa4ff731d3">gf::Scancode::T</a></div></div>
<div class="ttc" id="classgf_1_1_message_manager_html_af978ecb7e47992436ded66f6dc11a408"><div class="ttname"><a href="classgf_1_1_message_manager.html#af978ecb7e47992436ded66f6dc11a408">gf::MessageManager::sendMessage</a></div><div class="ttdeci">void sendMessage(E *message)</div><div class="ttdoc">Send a message. </div><div class="ttdef"><b>Definition:</b> MessageManager.h:282</div></div>
<div class="ttc" id="group__core_html_ga375ce9d7d861b67c78398d51c1769410"><div class="ttname"><a href="group__core.html#ga375ce9d7d861b67c78398d51c1769410">gf::Id</a></div><div class="ttdeci">uint64_t Id</div><div class="ttdoc">An identifier. </div><div class="ttdef"><b>Definition:</b> Id.h:39</div></div>
<div class="ttc" id="classgf_1_1_message_manager_html"><div class="ttname"><a href="classgf_1_1_message_manager.html">gf::MessageManager</a></div><div class="ttdoc">A message manager. </div><div class="ttdef"><b>Definition:</b> MessageManager.h:75</div></div>
<div class="ttc" id="group__game_html_ga6c620c63dd07ac6064f87f0ddafd1e87"><div class="ttname"><a href="group__game.html#ga6c620c63dd07ac6064f87f0ddafd1e87">gf::MessageHandlerId</a></div><div class="ttdeci">uint64_t MessageHandlerId</div><div class="ttdoc">An identifier for a message handler. </div><div class="ttdef"><b>Definition:</b> MessageManager.h:44</div></div>
<div class="ttc" id="classgf_1_1_message_manager_html_a012a264f993371610ef28002b0399b66"><div class="ttname"><a href="classgf_1_1_message_manager.html#a012a264f993371610ef28002b0399b66">gf::MessageManager::registerHandler</a></div><div class="ttdeci">MessageHandlerId registerHandler(R T::*pm, T *obj)</div><div class="ttdoc">Register a message handler for a type of message. </div><div class="ttdef"><b>Definition:</b> MessageManager.h:194</div></div>
<div class="ttc" id="group__window_html_gga795d7d5e2f2a4f38b16b95e0e78cb626a3a3ea00cfc35332cedf6e5e9a32e94da"><div class="ttname"><a href="group__window.html#gga795d7d5e2f2a4f38b16b95e0e78cb626a3a3ea00cfc35332cedf6e5e9a32e94da">gf::Scancode::E</a></div></div>
<div class="ttc" id="namespacegf_html"><div class="ttname"><a href="namespacegf.html">gf</a></div><div class="ttdoc">The namespace for gf classes. </div><div class="ttdef"><b>Definition:</b> Action.h:35</div></div>
<div class="ttc" id="classgf_1_1_array_ref_html"><div class="ttname"><a href="classgf_1_1_array_ref.html">gf::ArrayRef</a></div><div class="ttdoc">A constant reference to an array and its size. </div><div class="ttdef"><b>Definition:</b> ArrayRef.h:42</div></div>
<div class="ttc" id="classgf_1_1_message_manager_html_ab1352125393df11fa1d6cf6c3058d4c3"><div class="ttname"><a href="classgf_1_1_message_manager.html#ab1352125393df11fa1d6cf6c3058d4c3">gf::MessageManager::registerHandler</a></div><div class="ttdeci">MessageHandlerId registerHandler(Id type, R T::*pm, T *obj)</div><div class="ttdoc">Register a message handler for a type of message. </div><div class="ttdef"><b>Definition:</b> MessageManager.h:161</div></div>
<div class="ttc" id="structgf_1_1_message_html"><div class="ttname"><a href="structgf_1_1_message.html">gf::Message</a></div><div class="ttdoc">The base class for all messages. </div><div class="ttdef"><b>Definition:</b> Message.h:53</div></div>
<div class="ttc" id="group__window_html_gga795d7d5e2f2a4f38b16b95e0e78cb626ae1e1d3d40573127e9ee0480caf1283d6"><div class="ttname"><a href="group__window.html#gga795d7d5e2f2a4f38b16b95e0e78cb626ae1e1d3d40573127e9ee0480caf1283d6">gf::Scancode::R</a></div></div>
<div class="ttc" id="classgf_1_1_message_manager_html_af15bb3fab26df9b0abd005e40d96626c"><div class="ttname"><a href="classgf_1_1_message_manager.html#af15bb3fab26df9b0abd005e40d96626c">gf::MessageManager::removeHandlers</a></div><div class="ttdeci">void removeHandlers(ArrayRef< MessageHandlerId > ids)</div><div class="ttdoc">Remove a list of handlers. </div><div class="ttdef"><b>Definition:</b> MessageManager.h:221</div></div>
<div class="ttc" id="group__core_html_ga63cc77139085fae86503ed552b1c52ee"><div class="ttname"><a href="group__core.html#ga63cc77139085fae86503ed552b1c52ee">gf::InvalidId</a></div><div class="ttdeci">constexpr Id InvalidId</div><div class="ttdoc">The invalid id (which is 0) </div><div class="ttdef"><b>Definition:</b> Id.h:45</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by  <a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.13
</small></address>
</body>
</html>