coriolis/katabatic/doc/html/Observer_8h_source.html

77 lines
26 KiB
HTML

<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.0//EN'>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>Katabatic Documentation</title>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="SoC.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head>
<h1 id="pagetop" class="header">Katabatic - Routing Toolbox</h1>
<!--
<center class="header">
<table class="header">
<tr>
<td><a href="customSummary.html">Summary</a></td>
<td><a href="namespaces.html">Namespaces</a></td>
<td><a href="customHierarchy.html">Class Hierarchy</a></td>
<td><a href="annotated.html">Classes</a></td>
<td><a href="functions.html">Member Index</a></td>
</tr>
</table>
</center>
-->
<br>
<body onload="javascript:toggleLevel(1)">
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
initMenu('',false,false,'search.php','Search');
});
/* @license-end */</script>
<div id="main-nav"></div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_46a5d811a0c60e95b7acaa92d73c003a.html">katabatic</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">Observer.h</div> </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span>&#160;<span class="comment">// -*- C++ -*-</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span>&#160;<span class="comment">//</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span>&#160;<span class="comment">// This file is part of the Coriolis Software.</span></div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span>&#160;<span class="comment">// Copyright (c) UPMC 2008-2018, All Rights Reserved</span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span>&#160;<span class="comment">//</span></div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span>&#160;<span class="comment">// +-----------------------------------------------------------------+</span></div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span>&#160;<span class="comment">// | C O R I O L I S |</span></div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span>&#160;<span class="comment">// | K a t a b a t i c - Routing Toolbox |</span></div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span>&#160;<span class="comment">// | |</span></div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span>&#160;<span class="comment">// | Author : Jean-Paul CHAPUT |</span></div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span>&#160;<span class="comment">// | E-mail : Jean-Paul.Chaput@lip6.fr |</span></div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span>&#160;<span class="comment">// | =============================================================== |</span></div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span>&#160;<span class="comment">// | C++ Header : &quot;./katabatic/Observer.h&quot; |</span></div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span>&#160;<span class="comment">// +-----------------------------------------------------------------+</span></div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span>&#160;</div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span>&#160;</div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span>&#160;<span class="preprocessor">#ifndef KATABATIC_OBSERVER_H</span></div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span>&#160;<span class="preprocessor">#define KATABATIC_OBSERVER_H</span></div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span>&#160;</div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span>&#160;<span class="preprocessor">#include &quot;hurricane/Error.h&quot;</span></div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span>&#160;</div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span>&#160;</div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespaceKatabatic.html">Katabatic</a> {</div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span>&#160;</div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span>&#160;</div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span>&#160;<span class="comment">// -------------------------------------------------------------------</span></div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span>&#160;<span class="comment">// Classes : &quot;BaseObserver&quot; &amp; &quot;Observer&quot;.</span></div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span>&#160;</div><div class="line"><a name="l00029"></a><span class="lineno"><a class="line" href="classKatabatic_1_1BaseObserver.html"> 29</a></span>&#160; <span class="keyword">class </span><a class="code" href="classKatabatic_1_1BaseObserver.html">BaseObserver</a> {</div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span>&#160; <span class="keyword">public</span>:</div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span>&#160; <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classKatabatic_1_1BaseObserver.html#a52e577fb0c4f2e3650928334fb621c2f">notify</a> ( <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> flags );</div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span>&#160; };</div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span>&#160;</div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span>&#160;</div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span>&#160; <span class="keyword">template</span>&lt; <span class="keyword">typename</span> T&gt;</div><div class="line"><a name="l00036"></a><span class="lineno"><a class="line" href="classKatabatic_1_1Observer.html"> 36</a></span>&#160; <span class="keyword">class </span><a class="code" href="classKatabatic_1_1Observer.html">Observer</a> : <span class="keyword">public</span> <a class="code" href="classKatabatic_1_1BaseObserver.html">BaseObserver</a> {</div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span>&#160; <span class="keyword">public</span>:</div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span>&#160; <span class="keyword">inline</span> <a class="code" href="classKatabatic_1_1Observer.html#ab05ec12517c51952960dd4f324499b44">Observer</a> ( <span class="keyword">const</span> T* owner );</div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span>&#160; <span class="keyword">inline</span> T* <a class="code" href="classKatabatic_1_1Observer.html#ac29b8f99d632058c95784fd7233b8474">getOwner</a> () <span class="keyword">const</span>;</div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span>&#160; <span class="keyword">private</span>:</div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span>&#160; <a class="code" href="classKatabatic_1_1Observer.html#ab05ec12517c51952960dd4f324499b44">Observer</a> ( <span class="keyword">const</span> <a class="code" href="classKatabatic_1_1Observer.html">Observer</a>&amp; );</div><div class="line"><a name="l00042"></a><span class="lineno"> 42</span>&#160; <span class="keyword">private</span>:</div><div class="line"><a name="l00043"></a><span class="lineno"> 43</span>&#160; <span class="keyword">static</span> <span class="keywordtype">int</span> _ownerOffset;</div><div class="line"><a name="l00044"></a><span class="lineno"> 44</span>&#160; };</div><div class="line"><a name="l00045"></a><span class="lineno"> 45</span>&#160;</div><div class="line"><a name="l00046"></a><span class="lineno"> 46</span>&#160;</div><div class="line"><a name="l00047"></a><span class="lineno"> 47</span>&#160; <span class="keyword">template</span>&lt; <span class="keyword">typename</span> T&gt;</div><div class="line"><a name="l00048"></a><span class="lineno"> 48</span>&#160; <span class="keywordtype">int</span> <a class="code" href="classKatabatic_1_1Observer.html">Observer&lt;T&gt;::_ownerOffset</a> = -1;</div><div class="line"><a name="l00049"></a><span class="lineno"> 49</span>&#160;</div><div class="line"><a name="l00050"></a><span class="lineno"> 50</span>&#160; <span class="keyword">template</span>&lt; <span class="keyword">typename</span> T&gt;</div><div class="line"><a name="l00051"></a><span class="lineno"><a class="line" href="classKatabatic_1_1Observer.html#ab05ec12517c51952960dd4f324499b44"> 51</a></span>&#160; <span class="keyword">inline</span> <a class="code" href="classKatabatic_1_1Observer.html#ab05ec12517c51952960dd4f324499b44">Observer&lt;T&gt;::Observer</a> ( <span class="keyword">const</span> T* owner )</div><div class="line"><a name="l00052"></a><span class="lineno"> 52</span>&#160; : <a class="code" href="classKatabatic_1_1BaseObserver.html">BaseObserver</a>()</div><div class="line"><a name="l00053"></a><span class="lineno"> 53</span>&#160; {</div><div class="line"><a name="l00054"></a><span class="lineno"> 54</span>&#160; <span class="keywordflow">if</span> (owner == NULL)</div><div class="line"><a name="l00055"></a><span class="lineno"> 55</span>&#160; <span class="keywordflow">throw</span> <a class="codeRef" doxygen="/dsk/l1/jpc/coriolis-2.x/src/coriolis/hurricane/doc/hurricane/html/hurricane.tag:../hurricane/" href="../hurricane/classHurricane_1_1Error.html">Hurricane::Error</a>( <span class="stringliteral">&quot;Observer::Observer(), attempt to create with NULL owner.&quot;</span> );</div><div class="line"><a name="l00056"></a><span class="lineno"> 56</span>&#160;</div><div class="line"><a name="l00057"></a><span class="lineno"> 57</span>&#160; <span class="keywordflow">if</span> (_ownerOffset &lt; 0)</div><div class="line"><a name="l00058"></a><span class="lineno"> 58</span>&#160; _ownerOffset = (<span class="keywordtype">unsigned</span> long)<span class="keyword">this</span> - (<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span>)owner;</div><div class="line"><a name="l00059"></a><span class="lineno"> 59</span>&#160; }</div><div class="line"><a name="l00060"></a><span class="lineno"> 60</span>&#160;</div><div class="line"><a name="l00061"></a><span class="lineno"> 61</span>&#160;</div><div class="line"><a name="l00062"></a><span class="lineno"> 62</span>&#160; <span class="keyword">template</span>&lt; <span class="keyword">typename</span> T&gt;</div><div class="line"><a name="l00063"></a><span class="lineno"><a class="line" href="classKatabatic_1_1Observer.html#ac29b8f99d632058c95784fd7233b8474"> 63</a></span>&#160; <span class="keyword">inline</span> T* <a class="code" href="classKatabatic_1_1Observer.html#ac29b8f99d632058c95784fd7233b8474">Observer&lt;T&gt;::getOwner</a> ()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <span class="keyword">reinterpret_cast&lt;</span>T*<span class="keyword">&gt;</span>((<span class="keywordtype">unsigned</span> long)<span class="keyword">this</span> - _ownerOffset); }</div><div class="line"><a name="l00064"></a><span class="lineno"> 64</span>&#160;</div><div class="line"><a name="l00065"></a><span class="lineno"> 65</span>&#160;</div><div class="line"><a name="l00066"></a><span class="lineno"> 66</span>&#160;<span class="comment">// -------------------------------------------------------------------</span></div><div class="line"><a name="l00067"></a><span class="lineno"> 67</span>&#160;<span class="comment">// Class : &quot;Observable&quot;.</span></div><div class="line"><a name="l00068"></a><span class="lineno"> 68</span>&#160;</div><div class="line"><a name="l00069"></a><span class="lineno"><a class="line" href="classKatabatic_1_1Observable.html"> 69</a></span>&#160; <span class="keyword">class </span><a class="code" href="classKatabatic_1_1Observable.html">Observable</a> {</div><div class="line"><a name="l00070"></a><span class="lineno"> 70</span>&#160; <span class="keyword">public</span>:</div><div class="line"><a name="l00071"></a><span class="lineno"> 71</span>&#160; <span class="keyword">inline</span> <a class="code" href="classKatabatic_1_1Observable.html#a6438e92e07db169a97ed3eba36788dc4">Observable</a> ();</div><div class="line"><a name="l00072"></a><span class="lineno"> 72</span>&#160; <span class="keyword">template</span>&lt; <span class="keyword">typename</span> T &gt;</div><div class="line"><a name="l00073"></a><span class="lineno"> 73</span>&#160; <span class="keyword">inline</span> T* <a class="code" href="classKatabatic_1_1Observable.html#acc0b7276e09628f2b101ecf751aacd2a">getObserver</a> ();</div><div class="line"><a name="l00074"></a><span class="lineno"> 74</span>&#160; <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classKatabatic_1_1Observable.html#a783fda85eeabe9c660881f236f162767">addObserver</a> ( <a class="code" href="classKatabatic_1_1BaseObserver.html">BaseObserver</a>* );</div><div class="line"><a name="l00075"></a><span class="lineno"> 75</span>&#160; <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classKatabatic_1_1Observable.html#acaa5a7fc7fa631e3006a42006d753f43">removeObserver</a> ( <a class="code" href="classKatabatic_1_1BaseObserver.html">BaseObserver</a>* );</div><div class="line"><a name="l00076"></a><span class="lineno"> 76</span>&#160; <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classKatabatic_1_1Observable.html#a52e577fb0c4f2e3650928334fb621c2f">notify</a> ( <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> flags );</div><div class="line"><a name="l00077"></a><span class="lineno"> 77</span>&#160; <span class="keyword">private</span>:</div><div class="line"><a name="l00078"></a><span class="lineno"> 78</span>&#160; <a class="code" href="classKatabatic_1_1Observable.html#a6438e92e07db169a97ed3eba36788dc4">Observable</a> ( <span class="keyword">const</span> <a class="code" href="classKatabatic_1_1Observable.html">Observable</a>&amp; );</div><div class="line"><a name="l00079"></a><span class="lineno"> 79</span>&#160; <span class="keyword">private</span>:</div><div class="line"><a name="l00080"></a><span class="lineno"> 80</span>&#160; <a class="code" href="classKatabatic_1_1BaseObserver.html">BaseObserver</a>* _observer;</div><div class="line"><a name="l00081"></a><span class="lineno"> 81</span>&#160; };</div><div class="line"><a name="l00082"></a><span class="lineno"> 82</span>&#160;</div><div class="line"><a name="l00083"></a><span class="lineno"> 83</span>&#160;</div><div class="line"><a name="l00084"></a><span class="lineno"><a class="line" href="classKatabatic_1_1Observable.html#a6438e92e07db169a97ed3eba36788dc4"> 84</a></span>&#160; <span class="keyword">inline</span> <a class="code" href="classKatabatic_1_1Observable.html#a6438e92e07db169a97ed3eba36788dc4">Observable::Observable</a> ()</div><div class="line"><a name="l00085"></a><span class="lineno"> 85</span>&#160; : _observer(NULL)</div><div class="line"><a name="l00086"></a><span class="lineno"> 86</span>&#160; { }</div><div class="line"><a name="l00087"></a><span class="lineno"> 87</span>&#160;</div><div class="line"><a name="l00088"></a><span class="lineno"> 88</span>&#160;</div><div class="line"><a name="l00089"></a><span class="lineno"> 89</span>&#160; <span class="keyword">template</span>&lt; <span class="keyword">typename</span> T &gt;</div><div class="line"><a name="l00090"></a><span class="lineno"><a class="line" href="classKatabatic_1_1Observable.html#acc0b7276e09628f2b101ecf751aacd2a"> 90</a></span>&#160; T* <a class="code" href="classKatabatic_1_1Observable.html#acc0b7276e09628f2b101ecf751aacd2a">Observable::getObserver</a> ()</div><div class="line"><a name="l00091"></a><span class="lineno"> 91</span>&#160; {</div><div class="line"><a name="l00092"></a><span class="lineno"> 92</span>&#160; <span class="keywordflow">if</span> (_observer) <span class="keywordflow">return</span> (<span class="keyword">dynamic_cast&lt;</span> <a class="code" href="classKatabatic_1_1Observer.html">Observer&lt;T&gt;</a>* <span class="keyword">&gt;</span>( _observer ))-&gt;getOwner();</div><div class="line"><a name="l00093"></a><span class="lineno"> 93</span>&#160; <span class="keywordflow">return</span> NULL;</div><div class="line"><a name="l00094"></a><span class="lineno"> 94</span>&#160; }</div><div class="line"><a name="l00095"></a><span class="lineno"> 95</span>&#160;</div><div class="line"><a name="l00096"></a><span class="lineno"><a class="line" href="classKatabatic_1_1Observable.html#a783fda85eeabe9c660881f236f162767"> 96</a></span>&#160; <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classKatabatic_1_1Observable.html#a783fda85eeabe9c660881f236f162767">Observable::addObserver</a> ( <a class="code" href="classKatabatic_1_1BaseObserver.html">BaseObserver</a>* observer )</div><div class="line"><a name="l00097"></a><span class="lineno"> 97</span>&#160; {</div><div class="line"><a name="l00098"></a><span class="lineno"> 98</span>&#160; <span class="keywordflow">if</span> (_observer)</div><div class="line"><a name="l00099"></a><span class="lineno"> 99</span>&#160; <span class="keywordflow">throw</span> <a class="codeRef" doxygen="/dsk/l1/jpc/coriolis-2.x/src/coriolis/hurricane/doc/hurricane/html/hurricane.tag:../hurricane/" href="../hurricane/classHurricane_1_1Error.html">Hurricane::Error</a>( <span class="stringliteral">&quot;Observable::addObserver(), trying to add a second observer which is unsupported.&quot;</span> );</div><div class="line"><a name="l00100"></a><span class="lineno"> 100</span>&#160; _observer = observer;</div><div class="line"><a name="l00101"></a><span class="lineno"> 101</span>&#160; }</div><div class="line"><a name="l00102"></a><span class="lineno"> 102</span>&#160;</div><div class="line"><a name="l00103"></a><span class="lineno"><a class="line" href="classKatabatic_1_1Observable.html#acaa5a7fc7fa631e3006a42006d753f43"> 103</a></span>&#160; <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classKatabatic_1_1Observable.html#acaa5a7fc7fa631e3006a42006d753f43">Observable::removeObserver</a> ( <a class="code" href="classKatabatic_1_1BaseObserver.html">BaseObserver</a>* observer )</div><div class="line"><a name="l00104"></a><span class="lineno"> 104</span>&#160; {</div><div class="line"><a name="l00105"></a><span class="lineno"> 105</span>&#160; <span class="keywordflow">if</span> (_observer != observer)</div><div class="line"><a name="l00106"></a><span class="lineno"> 106</span>&#160; <span class="keywordflow">throw</span> <a class="codeRef" doxygen="/dsk/l1/jpc/coriolis-2.x/src/coriolis/hurricane/doc/hurricane/html/hurricane.tag:../hurricane/" href="../hurricane/classHurricane_1_1Error.html">Hurricane::Error</a>( <span class="stringliteral">&quot;Observable::removeObserver(), trying to remove wrong observer.&quot;</span> );</div><div class="line"><a name="l00107"></a><span class="lineno"> 107</span>&#160; _observer = NULL;</div><div class="line"><a name="l00108"></a><span class="lineno"> 108</span>&#160; }</div><div class="line"><a name="l00109"></a><span class="lineno"> 109</span>&#160;</div><div class="line"><a name="l00110"></a><span class="lineno"> 110</span>&#160;</div><div class="line"><a name="l00111"></a><span class="lineno"><a class="line" href="classKatabatic_1_1Observable.html#a52e577fb0c4f2e3650928334fb621c2f"> 111</a></span>&#160; <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classKatabatic_1_1Observable.html#a52e577fb0c4f2e3650928334fb621c2f">Observable::notify</a> ( <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> flags )</div><div class="line"><a name="l00112"></a><span class="lineno"> 112</span>&#160; {</div><div class="line"><a name="l00113"></a><span class="lineno"> 113</span>&#160; <span class="keywordflow">if</span> (_observer) _observer-&gt;<a class="code" href="classKatabatic_1_1BaseObserver.html#a52e577fb0c4f2e3650928334fb621c2f">notify</a>( flags );</div><div class="line"><a name="l00114"></a><span class="lineno"> 114</span>&#160; }</div><div class="line"><a name="l00115"></a><span class="lineno"> 115</span>&#160;</div><div class="line"><a name="l00116"></a><span class="lineno"> 116</span>&#160;</div><div class="line"><a name="l00117"></a><span class="lineno"> 117</span>&#160;} <span class="comment">// Katabatic namespace.</span></div><div class="line"><a name="l00118"></a><span class="lineno"> 118</span>&#160;</div><div class="line"><a name="l00119"></a><span class="lineno"> 119</span>&#160;<span class="preprocessor">#endif</span></div><div class="ttc" id="classKatabatic_1_1Observable_html_acaa5a7fc7fa631e3006a42006d753f43"><div class="ttname"><a href="classKatabatic_1_1Observable.html#acaa5a7fc7fa631e3006a42006d753f43">Katabatic::Observable::removeObserver</a></div><div class="ttdeci">void removeObserver(BaseObserver *)</div><div class="ttdef"><b>Definition:</b> Observer.h:103</div></div>
<div class="ttc" id="classKatabatic_1_1BaseObserver_html_a52e577fb0c4f2e3650928334fb621c2f"><div class="ttname"><a href="classKatabatic_1_1BaseObserver.html#a52e577fb0c4f2e3650928334fb621c2f">Katabatic::BaseObserver::notify</a></div><div class="ttdeci">virtual void notify(unsigned int flags)</div><div class="ttdef"><b>Definition:</b> Observer.cpp:26</div></div>
<div class="ttc" id="classHurricane_1_1Error_html"><div class="ttname"><a href="../hurricane/classHurricane_1_1Error.html">Hurricane::Error</a></div></div>
<div class="ttc" id="classKatabatic_1_1Observable_html"><div class="ttname"><a href="classKatabatic_1_1Observable.html">Katabatic::Observable</a></div><div class="ttdoc">Observer Design Pattern, Subject part. </div><div class="ttdef"><b>Definition:</b> Observer.h:69</div></div>
<div class="ttc" id="classKatabatic_1_1Observable_html_a6438e92e07db169a97ed3eba36788dc4"><div class="ttname"><a href="classKatabatic_1_1Observable.html#a6438e92e07db169a97ed3eba36788dc4">Katabatic::Observable::Observable</a></div><div class="ttdeci">Observable()</div><div class="ttdef"><b>Definition:</b> Observer.h:84</div></div>
<div class="ttc" id="namespaceKatabatic_html"><div class="ttname"><a href="namespaceKatabatic.html">Katabatic</a></div><div class="ttdoc">The namespace dedicated to Katabatic. </div><div class="ttdef"><b>Definition:</b> Katabatic.dox:13</div></div>
<div class="ttc" id="classKatabatic_1_1Observer_html_ab05ec12517c51952960dd4f324499b44"><div class="ttname"><a href="classKatabatic_1_1Observer.html#ab05ec12517c51952960dd4f324499b44">Katabatic::Observer::Observer</a></div><div class="ttdeci">Observer(const T *owner)</div><div class="ttdef"><b>Definition:</b> Observer.h:51</div></div>
<div class="ttc" id="classKatabatic_1_1Observable_html_a52e577fb0c4f2e3650928334fb621c2f"><div class="ttname"><a href="classKatabatic_1_1Observable.html#a52e577fb0c4f2e3650928334fb621c2f">Katabatic::Observable::notify</a></div><div class="ttdeci">void notify(unsigned int flags)</div><div class="ttdef"><b>Definition:</b> Observer.h:111</div></div>
<div class="ttc" id="classKatabatic_1_1Observer_html_ac29b8f99d632058c95784fd7233b8474"><div class="ttname"><a href="classKatabatic_1_1Observer.html#ac29b8f99d632058c95784fd7233b8474">Katabatic::Observer::getOwner</a></div><div class="ttdeci">T * getOwner() const</div><div class="ttdef"><b>Definition:</b> Observer.h:63</div></div>
<div class="ttc" id="classKatabatic_1_1Observable_html_a783fda85eeabe9c660881f236f162767"><div class="ttname"><a href="classKatabatic_1_1Observable.html#a783fda85eeabe9c660881f236f162767">Katabatic::Observable::addObserver</a></div><div class="ttdeci">void addObserver(BaseObserver *)</div><div class="ttdef"><b>Definition:</b> Observer.h:96</div></div>
<div class="ttc" id="classKatabatic_1_1BaseObserver_html"><div class="ttname"><a href="classKatabatic_1_1BaseObserver.html">Katabatic::BaseObserver</a></div><div class="ttdoc">Observer Design Pattern, Observer part. </div><div class="ttdef"><b>Definition:</b> Observer.h:29</div></div>
<div class="ttc" id="classKatabatic_1_1Observer_html"><div class="ttname"><a href="classKatabatic_1_1Observer.html">Katabatic::Observer</a></div><div class="ttdoc">Observer Design Pattern, Observer part. </div><div class="ttdef"><b>Definition:</b> Observer.h:36</div></div>
<div class="ttc" id="classKatabatic_1_1Observable_html_acc0b7276e09628f2b101ecf751aacd2a"><div class="ttname"><a href="classKatabatic_1_1Observable.html#acc0b7276e09628f2b101ecf751aacd2a">Katabatic::Observable::getObserver</a></div><div class="ttdeci">T * getObserver()</div><div class="ttdef"><b>Definition:</b> Observer.h:90</div></div>
</div><!-- fragment --></div><!-- contents -->
<br>
<hr>
<table class="footer1">
<tr>
<td class="LFooter"><small>Generated by doxygen 1.8.14 on Sun Nov 21 2021</small></td>
<td class="RFooter"><a href='#pagetop'><small>Return to top of page</small></a></td>
</tr>
</table>
<table class="footer2">
<tr>
<td class="LFooter">Katabatic - Routing Toolbox</td>
<td class="RFooter"><small>Copyright &#169; 2008-2020 Sorbonne Universite. All rights reserved</small></td>
</tr>
</table>
</body>
</html>