location__table_8hh_source.html 11.5 KB
Newer Older
garciay's avatar
garciay committed
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
<!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>ETSI STF525 / Internal Testing test suite: /home/vagrant/TriesAndDelete/etsi_its/framework/include/location_table.hh 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="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.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="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">ETSI STF525 / Internal Testing test suite
   </div>
   <div id="projectbrief">This project provides an internal testing test suite and its associated Test Adapter/Codec</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_644e041c3a6521da7b27eba0e4eb2b95.html">framework</a></li><li class="navelem"><a class="el" href="dir_dd40116cd1cfebdc77a7c7114b29912e.html">include</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">location_table.hh</div>  </div>
</div><!--header-->
<div class="contents">
<a href="location__table_8hh.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="l00011"></a><span class="lineno">   11</span>&#160;<span class="preprocessor">#pragma once</span></div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;</div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="preprocessor">#include &lt;map&gt;</span></div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="preprocessor">#include &lt;memory&gt;</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;<span class="keyword">class </span>OCTETSTRING;</div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;</div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespaceLibItsGeoNetworking____TypesAndValues.html">LibItsGeoNetworking__TypesAndValues</a> {</div><div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;  <span class="keyword">class </span>LongPosVector;</div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;}</div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;</div><div class="line"><a name="l00028"></a><span class="lineno"><a class="line" href="classlocation__table.html">   28</a></span>&#160;<span class="keyword">class </span><a class="code" href="classlocation__table.html">location_table</a> {</div><div class="line"><a name="l00029"></a><span class="lineno"><a class="line" href="classlocation__table.html#a67078ead032a6fa8ff4049e35462bae0">   29</a></span>&#160;  std::map&lt;const unsigned long, std::shared_ptr&lt;LibItsGeoNetworking__TypesAndValues::LongPosVector&gt; &gt; <a class="code" href="classlocation__table.html#a67078ead032a6fa8ff4049e35462bae0">_entries_by_times</a>;</div><div class="line"><a name="l00030"></a><span class="lineno"><a class="line" href="classlocation__table.html#ac22fe53a353073d7fd09ea24eaabd25f">   30</a></span>&#160;  std::map&lt;const std::string, std::shared_ptr&lt;LibItsGeoNetworking__TypesAndValues::LongPosVector&gt; &gt; <a class="code" href="classlocation__table.html#ac22fe53a353073d7fd09ea24eaabd25f">_entries_by_mids</a>;</div><div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;</div><div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;<span class="keyword">public</span>: </div><div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;</div><div class="line"><a name="l00036"></a><span class="lineno"><a class="line" href="classlocation__table.html#a5741938d15d192c0d68d0e8b2dbedc34">   36</a></span>&#160;  <span class="keyword">explicit</span> <a class="code" href="classlocation__table.html#a5741938d15d192c0d68d0e8b2dbedc34">location_table</a>() : _entries_by_times(), _entries_by_mids() { };</div><div class="line"><a name="l00040"></a><span class="lineno"><a class="line" href="classlocation__table.html#a0980f4cb9e594b06d92516e9f760628e">   40</a></span>&#160;  <span class="keyword">virtual</span> <a class="code" href="classlocation__table.html#a0980f4cb9e594b06d92516e9f760628e">~location_table</a>() { }; <span class="comment">// std::shared_ptr provides memory free process</span></div><div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;</div><div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;  <span class="keyword">const</span> <span class="keywordtype">bool</span> has_entry(<span class="keyword">const</span> OCTETSTRING&amp; p_mid) <span class="keyword">const</span>;</div><div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;  <span class="keywordtype">void</span> add_entry(<span class="keyword">const</span> LibItsGeoNetworking__TypesAndValues::LongPosVector&amp; p_long_pos_vector);</div><div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;  <span class="keyword">const</span> LibItsGeoNetworking__TypesAndValues::LongPosVector* get_entry(<span class="keyword">const</span> OCTETSTRING &amp; p_mid) <span class="keyword">const</span>;</div><div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;  </div><div class="line"><a name="l00068"></a><span class="lineno"><a class="line" href="classlocation__table.html#ac6453ec438f79427d251f500c9b6a92a">   68</a></span>&#160;  <span class="keyword">inline</span> <span class="keyword">const</span> <span class="keywordtype">bool</span> <a class="code" href="classlocation__table.html#ac6453ec438f79427d251f500c9b6a92a">empty</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> _entries_by_mids.empty(); };</div><div class="line"><a name="l00074"></a><span class="lineno"><a class="line" href="classlocation__table.html#a346324a7e626919232625743cade8d57">   74</a></span>&#160;  <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classlocation__table.html#a346324a7e626919232625743cade8d57">reset</a>() { _entries_by_mids.clear(); _entries_by_times.clear(); };</div><div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;}; <span class="comment">// End of class location_table</span></div><div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;</div><div class="ttc" id="classlocation__table_html_a346324a7e626919232625743cade8d57"><div class="ttname"><a href="classlocation__table.html#a346324a7e626919232625743cade8d57">location_table::reset</a></div><div class="ttdeci">void reset()</div><div class="ttdoc">Purge the location table. </div><div class="ttdef"><b>Definition:</b> location_table.hh:74</div></div>
<div class="ttc" id="classlocation__table_html_a5741938d15d192c0d68d0e8b2dbedc34"><div class="ttname"><a href="classlocation__table.html#a5741938d15d192c0d68d0e8b2dbedc34">location_table::location_table</a></div><div class="ttdeci">location_table()</div><div class="ttdoc">Default constructor. </div><div class="ttdef"><b>Definition:</b> location_table.hh:36</div></div>
<div class="ttc" id="namespaceLibItsGeoNetworking____TypesAndValues_html"><div class="ttname"><a href="namespaceLibItsGeoNetworking____TypesAndValues.html">LibItsGeoNetworking__TypesAndValues</a></div><div class="ttdef"><b>Definition:</b> geonetworking_layer.hh:32</div></div>
<div class="ttc" id="classlocation__table_html"><div class="ttname"><a href="classlocation__table.html">location_table</a></div><div class="ttdoc">This class provides description of GeoNetworking table. </div><div class="ttdef"><b>Definition:</b> location_table.hh:28</div></div>
<div class="ttc" id="classlocation__table_html_ac6453ec438f79427d251f500c9b6a92a"><div class="ttname"><a href="classlocation__table.html#ac6453ec438f79427d251f500c9b6a92a">location_table::empty</a></div><div class="ttdeci">const bool empty() const</div><div class="ttdoc">Indicates if the table is empty. </div><div class="ttdef"><b>Definition:</b> location_table.hh:68</div></div>
<div class="ttc" id="classlocation__table_html_ac22fe53a353073d7fd09ea24eaabd25f"><div class="ttname"><a href="classlocation__table.html#ac22fe53a353073d7fd09ea24eaabd25f">location_table::_entries_by_mids</a></div><div class="ttdeci">std::map&lt; const std::string, std::shared_ptr&lt; LibItsGeoNetworking__TypesAndValues::LongPosVector &gt; &gt; _entries_by_mids</div><div class="ttdef"><b>Definition:</b> location_table.hh:30</div></div>
<div class="ttc" id="classlocation__table_html_a67078ead032a6fa8ff4049e35462bae0"><div class="ttname"><a href="classlocation__table.html#a67078ead032a6fa8ff4049e35462bae0">location_table::_entries_by_times</a></div><div class="ttdeci">std::map&lt; const unsigned long, std::shared_ptr&lt; LibItsGeoNetworking__TypesAndValues::LongPosVector &gt; &gt; _entries_by_times</div><div class="ttdef"><b>Definition:</b> location_table.hh:29</div></div>
<div class="ttc" id="classlocation__table_html_a0980f4cb9e594b06d92516e9f760628e"><div class="ttname"><a href="classlocation__table.html#a0980f4cb9e594b06d92516e9f760628e">location_table::~location_table</a></div><div class="ttdeci">virtual ~location_table()</div><div class="ttdoc">Default destructor. </div><div class="ttdef"><b>Definition:</b> location_table.hh:40</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
81
Generated on Wed Apr 4 2018 14:16:23 for ETSI STF525 / Internal Testing test suite by &#160;<a href="http://www.doxygen.org/index.html">
garciay's avatar
garciay committed
82 83 84 85 86
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.13
</small></address>
</body>
</html>