diff options
Diffstat (limited to 'doc/html/Register__Implement_8hpp_source.html')
-rw-r--r-- | doc/html/Register__Implement_8hpp_source.html | 101 |
1 files changed, 101 insertions, 0 deletions
diff --git a/doc/html/Register__Implement_8hpp_source.html b/doc/html/Register__Implement_8hpp_source.html new file mode 100644 index 0000000..f82d747 --- /dev/null +++ b/doc/html/Register__Implement_8hpp_source.html @@ -0,0 +1,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 +  <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> </div> +<div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="preprocessor">#include <map></span></div> +<div class="line"><a name="l00003"></a><span class="lineno"> 3</span> </div> +<div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <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>  <span class="keyword">template</span><<span class="keyword">class</span> T> <span class="keyword">inline</span> <a class="code" href="classmeow_1_1RegisterInterface.html#ac18ca2aeac72ece9f85c3632436426d5">RegisterInterface<T>::RegisterInterface</a>()</div> +<div class="line"><a name="l00006"></a><span class="lineno"> 6</span>  { }</div> +<div class="line"><a name="l00007"></a><span class="lineno"><a class="line" href="classmeow_1_1RegisterInterface.html#ab94831367f6f8226f668886ceaa99b2c"> 7</a></span>  <span class="keyword">template</span><<span class="keyword">class</span> T> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="classmeow_1_1RegisterInterface.html#ab94831367f6f8226f668886ceaa99b2c">RegisterInterface<T>::regImplement</a>(</div> +<div class="line"><a name="l00008"></a><span class="lineno"> 8</span>  <a class="code" href="classmeow_1_1ImplementInterface.html">ImplementInterface<T></a>* imp){</div> +<div class="line"><a name="l00009"></a><span class="lineno"> 9</span>  <span class="keywordflow">if</span>(implements.find(imp-><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>  <span class="keywordflow">return</span> <span class="keyword">false</span>;</div> +<div class="line"><a name="l00011"></a><span class="lineno"> 11</span>  }</div> +<div class="line"><a name="l00012"></a><span class="lineno"> 12</span>  implements[imp-><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>  <span class="keywordflow">return</span> <span class="keyword">true</span>;</div> +<div class="line"><a name="l00014"></a><span class="lineno"> 14</span>  }</div> +<div class="line"><a name="l00015"></a><span class="lineno"> 15</span>  <span class="keyword">template</span><<span class="keyword">class</span> T> <span class="keyword">inline</span> <a class="code" href="classmeow_1_1ImplementInterface.html">ImplementInterface<T></a>* <a class="code" href="classmeow_1_1RegisterInterface.html#aa0f73c861a4b917085eed724e61661cf">RegisterInterface<T>::</a></div> +<div class="line"><a name="l00016"></a><span class="lineno"><a class="line" href="classmeow_1_1RegisterInterface.html#aa0f73c861a4b917085eed724e61661cf"> 16</a></span> <a class="code" href="classmeow_1_1RegisterInterface.html#aa0f73c861a4b917085eed724e61661cf"> getImplement</a>(T <span class="keyword">const</span>& identify){</div> +<div class="line"><a name="l00017"></a><span class="lineno"> 17</span>  <span class="keywordflow">if</span>(implements.find(identify) == implements.end()){</div> +<div class="line"><a name="l00018"></a><span class="lineno"> 18</span>  <span class="keywordflow">return</span> NULL;</div> +<div class="line"><a name="l00019"></a><span class="lineno"> 19</span>  }</div> +<div class="line"><a name="l00020"></a><span class="lineno"> 20</span>  <span class="keywordflow">return</span> implements[identify];</div> +<div class="line"><a name="l00021"></a><span class="lineno"> 21</span>  }</div> +<div class="line"><a name="l00022"></a><span class="lineno"> 22</span> }</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< T > * getImplement(T const &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< T > *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 & 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> |