aboutsummaryrefslogtreecommitdiffstats
path: root/doc/html/Register__Implement_8hpp_source.html
blob: f82d747070b622d07ed5bb9acce2aac1c8942c13 (plain) (blame)
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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
<!-- HTML header for doxygen 1.8.3.1-->
<!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.6"/>
<title>Templates -- Meow: meowpp/oo/Register_Implement.hpp 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>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="stylesheet.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="logo.png"/></td>
  <td style="padding-left: 0.5em;">
   <div id="projectname">Templates -- Meow
   &#160;<span id="projectnumber">1.1.4</span>
   </div>
   <div id="projectbrief">A C++ template which is unable and also not allowed to compile to obj-file first.</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.6 -->
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('Register__Implement_8hpp_source.html','');});
</script>
<div id="doc-content">
<div class="header">
  <div class="headertitle">
<div class="title">Register_Implement.hpp</div>  </div>
</div><!--header-->
<div class="contents">
<a href="Register__Implement_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;</div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="preprocessor">#include &lt;map&gt;</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;</div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="keyword">namespace </span>meow{</div>
<div class="line"><a name="l00005"></a><span class="lineno"><a class="line" href="classmeow_1_1RegisterInterface.html#ac18ca2aeac72ece9f85c3632436426d5">    5</a></span>&#160;    <span class="keyword">template</span>&lt;<span class="keyword">class</span> T&gt; <span class="keyword">inline</span> <a class="code" href="classmeow_1_1RegisterInterface.html#ac18ca2aeac72ece9f85c3632436426d5">RegisterInterface&lt;T&gt;::RegisterInterface</a>()</div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;    { }</div>
<div class="line"><a name="l00007"></a><span class="lineno"><a class="line" href="classmeow_1_1RegisterInterface.html#ab94831367f6f8226f668886ceaa99b2c">    7</a></span>&#160;    <span class="keyword">template</span>&lt;<span class="keyword">class</span> T&gt; <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="classmeow_1_1RegisterInterface.html#ab94831367f6f8226f668886ceaa99b2c">RegisterInterface&lt;T&gt;::regImplement</a>(</div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;            <a class="code" href="classmeow_1_1ImplementInterface.html">ImplementInterface&lt;T&gt;</a>* imp){</div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;        <span class="keywordflow">if</span>(implements.find(imp-&gt;<a class="code" href="classmeow_1_1ImplementInterface.html#af9de10bbb43c81258baeecccbc3f1431">identify</a>()) != implements.end()){</div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;            <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;        }</div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;        implements[imp-&gt;<a class="code" href="classmeow_1_1ImplementInterface.html#af9de10bbb43c81258baeecccbc3f1431">identify</a>()] = imp;</div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;        <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;    }</div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;    <span class="keyword">template</span>&lt;<span class="keyword">class</span> T&gt; <span class="keyword">inline</span> <a class="code" href="classmeow_1_1ImplementInterface.html">ImplementInterface&lt;T&gt;</a>* <a class="code" href="classmeow_1_1RegisterInterface.html#aa0f73c861a4b917085eed724e61661cf">RegisterInterface&lt;T&gt;::</a></div>
<div class="line"><a name="l00016"></a><span class="lineno"><a class="line" href="classmeow_1_1RegisterInterface.html#aa0f73c861a4b917085eed724e61661cf">   16</a></span>&#160;<a class="code" href="classmeow_1_1RegisterInterface.html#aa0f73c861a4b917085eed724e61661cf">    getImplement</a>(T <span class="keyword">const</span>&amp; identify){</div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;        <span class="keywordflow">if</span>(implements.find(identify) == implements.end()){</div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;            <span class="keywordflow">return</span> NULL;</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="keywordflow">return</span> implements[identify];</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="ttc" id="classmeow_1_1RegisterInterface_html_aa0f73c861a4b917085eed724e61661cf"><div class="ttname"><a href="classmeow_1_1RegisterInterface.html#aa0f73c861a4b917085eed724e61661cf">meow::RegisterInterface::getImplement</a></div><div class="ttdeci">virtual ImplementInterface&lt; T &gt; * getImplement(T const &amp;identify)</div><div class="ttdef"><b>Definition:</b> <a href="Register__Implement_8hpp_source.html#l00016">Register_Implement.hpp:16</a></div></div>
<div class="ttc" id="classmeow_1_1RegisterInterface_html_ac18ca2aeac72ece9f85c3632436426d5"><div class="ttname"><a href="classmeow_1_1RegisterInterface.html#ac18ca2aeac72ece9f85c3632436426d5">meow::RegisterInterface::RegisterInterface</a></div><div class="ttdeci">RegisterInterface()</div><div class="ttdef"><b>Definition:</b> <a href="Register__Implement_8hpp_source.html#l00005">Register_Implement.hpp:5</a></div></div>
<div class="ttc" id="classmeow_1_1ImplementInterface_html"><div class="ttname"><a href="classmeow_1_1ImplementInterface.html">meow::ImplementInterface</a></div><div class="ttdef"><b>Definition:</b> <a href="Register__Implement_8h_source.html#l00007">Register_Implement.h:7</a></div></div>
<div class="ttc" id="classmeow_1_1RegisterInterface_html_ab94831367f6f8226f668886ceaa99b2c"><div class="ttname"><a href="classmeow_1_1RegisterInterface.html#ab94831367f6f8226f668886ceaa99b2c">meow::RegisterInterface::regImplement</a></div><div class="ttdeci">virtual bool regImplement(ImplementInterface&lt; T &gt; *imp)</div><div class="ttdef"><b>Definition:</b> <a href="Register__Implement_8hpp_source.html#l00007">Register_Implement.hpp:7</a></div></div>
<div class="ttc" id="classmeow_1_1ImplementInterface_html_af9de10bbb43c81258baeecccbc3f1431"><div class="ttname"><a href="classmeow_1_1ImplementInterface.html#af9de10bbb43c81258baeecccbc3f1431">meow::ImplementInterface::identify</a></div><div class="ttdeci">T const &amp; identify() const </div><div class="ttdef"><b>Definition:</b> <a href="Register__Implement_8h_source.html#l00013">Register_Implement.h:13</a></div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- HTML footer for doxygen 1.8.3.1-->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_92fecd8d02dd5e7a67429447fdf0f60f.html">meowpp</a></li><li class="navelem"><a class="el" href="dir_540a4c8f2977878a343351220ffba92b.html">oo</a></li><li class="navelem"><a class="el" href="Register__Implement_8hpp.html">Register_Implement.hpp</a></li>
    <li class="footer">Generated on Mon Jun 23 2014 17:02:02 for Templates -- Meow by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.6 </li>
  </ul>
</div>
</body>
</html>