代码拉取完成,页面将自动刷新
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://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.17"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Point Cloud Library (PCL): LRUCache< KeyT, CacheItemT > Class Template Reference</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">Point Cloud Library (PCL)
 <span id="projectnumber">1.11.1-dev</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.17 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<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&dn=gpl-2.0.txt GPL-v2 */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */</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><!-- top -->
<div class="header">
<div class="summary">
<a href="class_l_r_u_cache-members.html">List of all members</a> |
<a href="#pub-types">Public Types</a> |
<a href="#pub-methods">Public Member Functions</a> |
<a href="#pub-attribs">Public Attributes</a> </div>
<div class="headertitle">
<div class="title">LRUCache< KeyT, CacheItemT > Class Template Reference</div> </div>
</div><!--header-->
<div class="contents">
<p><code>#include <<a class="el" href="lru__cache_8hpp_source.html">pcl/outofcore/impl/lru_cache.hpp</a>></code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr class="memitem:a09bd04537a3ee566c432e6848c0b91f0"><td class="memItemLeft" align="right" valign="top">using </td><td class="memItemRight" valign="bottom"><a class="el" href="class_l_r_u_cache.html#a09bd04537a3ee566c432e6848c0b91f0">KeyIndex</a> = std::list< KeyT ></td></tr>
<tr class="separator:a09bd04537a3ee566c432e6848c0b91f0"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a6c0682fbf5735e45f4843e5817531194"><td class="memItemLeft" align="right" valign="top">using </td><td class="memItemRight" valign="bottom"><a class="el" href="class_l_r_u_cache.html#a6c0682fbf5735e45f4843e5817531194">KeyIndexIterator</a> = typename KeyIndex::iterator</td></tr>
<tr class="separator:a6c0682fbf5735e45f4843e5817531194"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a60462e620c4f736bee0babb4bb706fe2"><td class="memItemLeft" align="right" valign="top">using </td><td class="memItemRight" valign="bottom"><a class="el" href="class_l_r_u_cache.html#a60462e620c4f736bee0babb4bb706fe2">Cache</a> = std::map< KeyT, std::pair< CacheItemT, typename KeyIndex::iterator > ></td></tr>
<tr class="separator:a60462e620c4f736bee0babb4bb706fe2"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ac348f22b3e77ae91773b18ff647cbf2e"><td class="memItemLeft" align="right" valign="top">using </td><td class="memItemRight" valign="bottom"><a class="el" href="class_l_r_u_cache.html#ac348f22b3e77ae91773b18ff647cbf2e">CacheIterator</a> = typename Cache::iterator</td></tr>
<tr class="separator:ac348f22b3e77ae91773b18ff647cbf2e"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a9e781f20fa6faeef69e30d78849af521"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_l_r_u_cache.html#a9e781f20fa6faeef69e30d78849af521">LRUCache</a> (std::size_t c)</td></tr>
<tr class="separator:a9e781f20fa6faeef69e30d78849af521"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a159be4370b1641da09dca80973f0327f"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="class_l_r_u_cache.html#a159be4370b1641da09dca80973f0327f">hasKey</a> (const KeyT &k)</td></tr>
<tr class="separator:a159be4370b1641da09dca80973f0327f"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aa82467f57955e52020a7c26b0510df94"><td class="memItemLeft" align="right" valign="top">CacheItemT & </td><td class="memItemRight" valign="bottom"><a class="el" href="class_l_r_u_cache.html#aa82467f57955e52020a7c26b0510df94">get</a> (const KeyT &k)</td></tr>
<tr class="separator:aa82467f57955e52020a7c26b0510df94"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a55266cf5d77336a159cca1d5020ee101"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_l_r_u_cache.html#a55266cf5d77336a159cca1d5020ee101">touch</a> (const KeyT &key)</td></tr>
<tr class="separator:a55266cf5d77336a159cca1d5020ee101"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a071553bc4998d83fa872f3269a339b76"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="class_l_r_u_cache.html#a071553bc4998d83fa872f3269a339b76">insert</a> (const KeyT &key, const CacheItemT &value)</td></tr>
<tr class="separator:a071553bc4998d83fa872f3269a339b76"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a565cb37d4445cb93449572fd40453aae"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_l_r_u_cache.html#a565cb37d4445cb93449572fd40453aae">setCapacity</a> (std::size_t capacity)</td></tr>
<tr class="separator:a565cb37d4445cb93449572fd40453aae"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aaf8226fea4e5b65f5231561b00dd915e"><td class="memItemLeft" align="right" valign="top">CacheItemT & </td><td class="memItemRight" valign="bottom"><a class="el" href="class_l_r_u_cache.html#aaf8226fea4e5b65f5231561b00dd915e">tailItem</a> ()</td></tr>
<tr class="separator:aaf8226fea4e5b65f5231561b00dd915e"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a9f77b07aebbf0b2d206c8a9c08726ff7"><td class="memItemLeft" align="right" valign="top">std::size_t </td><td class="memItemRight" valign="bottom"><a class="el" href="class_l_r_u_cache.html#a9f77b07aebbf0b2d206c8a9c08726ff7">sizeOf</a> (const CacheItemT &value)</td></tr>
<tr class="separator:a9f77b07aebbf0b2d206c8a9c08726ff7"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ab67d50307bfc661fbef234eca6a0ad19"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="class_l_r_u_cache.html#ab67d50307bfc661fbef234eca6a0ad19">evict</a> (int item_count=1)</td></tr>
<tr class="separator:ab67d50307bfc661fbef234eca6a0ad19"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Public Attributes</h2></td></tr>
<tr class="memitem:a1693e510e85ae3e3e07321a2065f7580"><td class="memItemLeft" align="right" valign="top">std::size_t </td><td class="memItemRight" valign="bottom"><a class="el" href="class_l_r_u_cache.html#a1693e510e85ae3e3e07321a2065f7580">capacity_</a></td></tr>
<tr class="separator:a1693e510e85ae3e3e07321a2065f7580"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a8947022c987bb9e9c1e0c3d1905cebb7"><td class="memItemLeft" align="right" valign="top">std::size_t </td><td class="memItemRight" valign="bottom"><a class="el" href="class_l_r_u_cache.html#a8947022c987bb9e9c1e0c3d1905cebb7">size_</a></td></tr>
<tr class="separator:a8947022c987bb9e9c1e0c3d1905cebb7"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a5dd8d1a70adc93067461e18041891495"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_l_r_u_cache.html#a09bd04537a3ee566c432e6848c0b91f0">KeyIndex</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_l_r_u_cache.html#a5dd8d1a70adc93067461e18041891495">key_index_</a></td></tr>
<tr class="separator:a5dd8d1a70adc93067461e18041891495"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ad0e8775ad21d826842b0126b94bfde01"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_l_r_u_cache.html#a60462e620c4f736bee0babb4bb706fe2">Cache</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_l_r_u_cache.html#ad0e8775ad21d826842b0126b94bfde01">cache_</a></td></tr>
<tr class="separator:ad0e8775ad21d826842b0126b94bfde01"><td class="memSeparator" colspan="2"> </td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><h3>template<typename KeyT, typename CacheItemT><br />
class LRUCache< KeyT, CacheItemT ></h3>
<p class="definition">Definition at line <a class="el" href="lru__cache_8hpp_source.html#l00030">30</a> of file <a class="el" href="lru__cache_8hpp_source.html">lru_cache.hpp</a>.</p>
</div><h2 class="groupheader">Member Typedef Documentation</h2>
<a id="a60462e620c4f736bee0babb4bb706fe2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a60462e620c4f736bee0babb4bb706fe2">◆ </a></span>Cache</h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template<typename KeyT , typename CacheItemT > </div>
<table class="memname">
<tr>
<td class="memname">using <a class="el" href="class_l_r_u_cache.html">LRUCache</a>< KeyT, CacheItemT >::<a class="el" href="class_l_r_u_cache.html#a60462e620c4f736bee0babb4bb706fe2">Cache</a> = std::map<KeyT, std::pair<CacheItemT, typename KeyIndex::iterator> ></td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="lru__cache_8hpp_source.html#l00037">37</a> of file <a class="el" href="lru__cache_8hpp_source.html">lru_cache.hpp</a>.</p>
</div>
</div>
<a id="ac348f22b3e77ae91773b18ff647cbf2e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac348f22b3e77ae91773b18ff647cbf2e">◆ </a></span>CacheIterator</h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template<typename KeyT , typename CacheItemT > </div>
<table class="memname">
<tr>
<td class="memname">using <a class="el" href="class_l_r_u_cache.html">LRUCache</a>< KeyT, CacheItemT >::<a class="el" href="class_l_r_u_cache.html#ac348f22b3e77ae91773b18ff647cbf2e">CacheIterator</a> = typename Cache::iterator</td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="lru__cache_8hpp_source.html#l00038">38</a> of file <a class="el" href="lru__cache_8hpp_source.html">lru_cache.hpp</a>.</p>
</div>
</div>
<a id="a09bd04537a3ee566c432e6848c0b91f0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a09bd04537a3ee566c432e6848c0b91f0">◆ </a></span>KeyIndex</h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template<typename KeyT , typename CacheItemT > </div>
<table class="memname">
<tr>
<td class="memname">using <a class="el" href="class_l_r_u_cache.html">LRUCache</a>< KeyT, CacheItemT >::<a class="el" href="class_l_r_u_cache.html#a09bd04537a3ee566c432e6848c0b91f0">KeyIndex</a> = std::list<KeyT></td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="lru__cache_8hpp_source.html#l00034">34</a> of file <a class="el" href="lru__cache_8hpp_source.html">lru_cache.hpp</a>.</p>
</div>
</div>
<a id="a6c0682fbf5735e45f4843e5817531194"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6c0682fbf5735e45f4843e5817531194">◆ </a></span>KeyIndexIterator</h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template<typename KeyT , typename CacheItemT > </div>
<table class="memname">
<tr>
<td class="memname">using <a class="el" href="class_l_r_u_cache.html">LRUCache</a>< KeyT, CacheItemT >::<a class="el" href="class_l_r_u_cache.html#a6c0682fbf5735e45f4843e5817531194">KeyIndexIterator</a> = typename KeyIndex::iterator</td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="lru__cache_8hpp_source.html#l00035">35</a> of file <a class="el" href="lru__cache_8hpp_source.html">lru_cache.hpp</a>.</p>
</div>
</div>
<h2 class="groupheader">Constructor & Destructor Documentation</h2>
<a id="a9e781f20fa6faeef69e30d78849af521"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9e781f20fa6faeef69e30d78849af521">◆ </a></span>LRUCache()</h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template<typename KeyT , typename CacheItemT > </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="class_l_r_u_cache.html">LRUCache</a>< KeyT, CacheItemT >::<a class="el" href="class_l_r_u_cache.html">LRUCache</a> </td>
<td>(</td>
<td class="paramtype">std::size_t </td>
<td class="paramname"><em>c</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="lru__cache_8hpp_source.html#l00040">40</a> of file <a class="el" href="lru__cache_8hpp_source.html">lru_cache.hpp</a>.</p>
<p class="reference">References <a class="el" href="lru__cache_8hpp_source.html#l00169">LRUCache< KeyT, CacheItemT >::capacity_</a>.</p>
</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="ab67d50307bfc661fbef234eca6a0ad19"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab67d50307bfc661fbef234eca6a0ad19">◆ </a></span>evict()</h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template<typename KeyT , typename CacheItemT > </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">bool <a class="el" href="class_l_r_u_cache.html">LRUCache</a>< KeyT, CacheItemT >::evict </td>
<td>(</td>
<td class="paramtype">int </td>
<td class="paramname"><em>item_count</em> = <code>1</code></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="lru__cache_8hpp_source.html#l00148">148</a> of file <a class="el" href="lru__cache_8hpp_source.html">lru_cache.hpp</a>.</p>
<p class="reference">References <a class="el" href="lru__cache_8hpp_source.html#l00178">LRUCache< KeyT, CacheItemT >::cache_</a>, <a class="el" href="lru__cache_8hpp_source.html#l00175">LRUCache< KeyT, CacheItemT >::key_index_</a>, and <a class="el" href="lru__cache_8hpp_source.html#l00172">LRUCache< KeyT, CacheItemT >::size_</a>.</p>
<p class="reference">Referenced by <a class="el" href="lru__cache_8hpp_source.html#l00079">LRUCache< KeyT, CacheItemT >::insert()</a>.</p>
</div>
</div>
<a id="aa82467f57955e52020a7c26b0510df94"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa82467f57955e52020a7c26b0510df94">◆ </a></span>get()</h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template<typename KeyT , typename CacheItemT > </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">CacheItemT& <a class="el" href="class_l_r_u_cache.html">LRUCache</a>< KeyT, CacheItemT >::get </td>
<td>(</td>
<td class="paramtype">const KeyT & </td>
<td class="paramname"><em>k</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="lru__cache_8hpp_source.html#l00053">53</a> of file <a class="el" href="lru__cache_8hpp_source.html">lru_cache.hpp</a>.</p>
<p class="reference">References <a class="el" href="lru__cache_8hpp_source.html#l00178">LRUCache< KeyT, CacheItemT >::cache_</a>, and <a class="el" href="lru__cache_8hpp_source.html#l00175">LRUCache< KeyT, CacheItemT >::key_index_</a>.</p>
</div>
</div>
<a id="a159be4370b1641da09dca80973f0327f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a159be4370b1641da09dca80973f0327f">◆ </a></span>hasKey()</h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template<typename KeyT , typename CacheItemT > </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">bool <a class="el" href="class_l_r_u_cache.html">LRUCache</a>< KeyT, CacheItemT >::hasKey </td>
<td>(</td>
<td class="paramtype">const KeyT & </td>
<td class="paramname"><em>k</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="lru__cache_8hpp_source.html#l00047">47</a> of file <a class="el" href="lru__cache_8hpp_source.html">lru_cache.hpp</a>.</p>
<p class="reference">References <a class="el" href="lru__cache_8hpp_source.html#l00178">LRUCache< KeyT, CacheItemT >::cache_</a>.</p>
</div>
</div>
<a id="a071553bc4998d83fa872f3269a339b76"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a071553bc4998d83fa872f3269a339b76">◆ </a></span>insert()</h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template<typename KeyT , typename CacheItemT > </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">bool <a class="el" href="class_l_r_u_cache.html">LRUCache</a>< KeyT, CacheItemT >::insert </td>
<td>(</td>
<td class="paramtype">const KeyT & </td>
<td class="paramname"><em>key</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const CacheItemT & </td>
<td class="paramname"><em>value</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="lru__cache_8hpp_source.html#l00079">79</a> of file <a class="el" href="lru__cache_8hpp_source.html">lru_cache.hpp</a>.</p>
<p class="reference">References <a class="el" href="lru__cache_8hpp_source.html#l00178">LRUCache< KeyT, CacheItemT >::cache_</a>, <a class="el" href="lru__cache_8hpp_source.html#l00169">LRUCache< KeyT, CacheItemT >::capacity_</a>, <a class="el" href="lru__cache_8hpp_source.html#l00148">LRUCache< KeyT, CacheItemT >::evict()</a>, <a class="el" href="lru__cache_8hpp_source.html#l00175">LRUCache< KeyT, CacheItemT >::key_index_</a>, <a class="el" href="lru__cache_8hpp_source.html#l00172">LRUCache< KeyT, CacheItemT >::size_</a>, and <a class="el" href="lru__cache_8hpp_source.html#l00067">LRUCache< KeyT, CacheItemT >::touch()</a>.</p>
</div>
</div>
<a id="a565cb37d4445cb93449572fd40453aae"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a565cb37d4445cb93449572fd40453aae">◆ </a></span>setCapacity()</h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template<typename KeyT , typename CacheItemT > </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void <a class="el" href="class_l_r_u_cache.html">LRUCache</a>< KeyT, CacheItemT >::setCapacity </td>
<td>(</td>
<td class="paramtype">std::size_t </td>
<td class="paramname"><em>capacity</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="lru__cache_8hpp_source.html#l00128">128</a> of file <a class="el" href="lru__cache_8hpp_source.html">lru_cache.hpp</a>.</p>
<p class="reference">References <a class="el" href="lru__cache_8hpp_source.html#l00169">LRUCache< KeyT, CacheItemT >::capacity_</a>.</p>
</div>
</div>
<a id="a9f77b07aebbf0b2d206c8a9c08726ff7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9f77b07aebbf0b2d206c8a9c08726ff7">◆ </a></span>sizeOf()</h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template<typename KeyT , typename CacheItemT > </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">std::size_t <a class="el" href="class_l_r_u_cache.html">LRUCache</a>< KeyT, CacheItemT >::sizeOf </td>
<td>(</td>
<td class="paramtype">const CacheItemT & </td>
<td class="paramname"><em>value</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="lru__cache_8hpp_source.html#l00141">141</a> of file <a class="el" href="lru__cache_8hpp_source.html">lru_cache.hpp</a>.</p>
</div>
</div>
<a id="aaf8226fea4e5b65f5231561b00dd915e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aaf8226fea4e5b65f5231561b00dd915e">◆ </a></span>tailItem()</h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template<typename KeyT , typename CacheItemT > </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">CacheItemT& <a class="el" href="class_l_r_u_cache.html">LRUCache</a>< KeyT, CacheItemT >::tailItem </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="lru__cache_8hpp_source.html#l00134">134</a> of file <a class="el" href="lru__cache_8hpp_source.html">lru_cache.hpp</a>.</p>
<p class="reference">References <a class="el" href="lru__cache_8hpp_source.html#l00178">LRUCache< KeyT, CacheItemT >::cache_</a>, and <a class="el" href="lru__cache_8hpp_source.html#l00175">LRUCache< KeyT, CacheItemT >::key_index_</a>.</p>
</div>
</div>
<a id="a55266cf5d77336a159cca1d5020ee101"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a55266cf5d77336a159cca1d5020ee101">◆ </a></span>touch()</h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template<typename KeyT , typename CacheItemT > </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void <a class="el" href="class_l_r_u_cache.html">LRUCache</a>< KeyT, CacheItemT >::touch </td>
<td>(</td>
<td class="paramtype">const KeyT & </td>
<td class="paramname"><em>key</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="lru__cache_8hpp_source.html#l00067">67</a> of file <a class="el" href="lru__cache_8hpp_source.html">lru_cache.hpp</a>.</p>
<p class="reference">References <a class="el" href="lru__cache_8hpp_source.html#l00178">LRUCache< KeyT, CacheItemT >::cache_</a>, and <a class="el" href="lru__cache_8hpp_source.html#l00175">LRUCache< KeyT, CacheItemT >::key_index_</a>.</p>
<p class="reference">Referenced by <a class="el" href="lru__cache_8hpp_source.html#l00079">LRUCache< KeyT, CacheItemT >::insert()</a>.</p>
</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a id="ad0e8775ad21d826842b0126b94bfde01"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad0e8775ad21d826842b0126b94bfde01">◆ </a></span>cache_</h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template<typename KeyT , typename CacheItemT > </div>
<table class="memname">
<tr>
<td class="memname"><a class="el" href="class_l_r_u_cache.html#a60462e620c4f736bee0babb4bb706fe2">Cache</a> <a class="el" href="class_l_r_u_cache.html">LRUCache</a>< KeyT, CacheItemT >::cache_</td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="lru__cache_8hpp_source.html#l00178">178</a> of file <a class="el" href="lru__cache_8hpp_source.html">lru_cache.hpp</a>.</p>
<p class="reference">Referenced by <a class="el" href="lru__cache_8hpp_source.html#l00148">LRUCache< KeyT, CacheItemT >::evict()</a>, <a class="el" href="lru__cache_8hpp_source.html#l00053">LRUCache< KeyT, CacheItemT >::get()</a>, <a class="el" href="lru__cache_8hpp_source.html#l00047">LRUCache< KeyT, CacheItemT >::hasKey()</a>, <a class="el" href="lru__cache_8hpp_source.html#l00079">LRUCache< KeyT, CacheItemT >::insert()</a>, <a class="el" href="lru__cache_8hpp_source.html#l00134">LRUCache< KeyT, CacheItemT >::tailItem()</a>, and <a class="el" href="lru__cache_8hpp_source.html#l00067">LRUCache< KeyT, CacheItemT >::touch()</a>.</p>
</div>
</div>
<a id="a1693e510e85ae3e3e07321a2065f7580"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1693e510e85ae3e3e07321a2065f7580">◆ </a></span>capacity_</h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template<typename KeyT , typename CacheItemT > </div>
<table class="memname">
<tr>
<td class="memname">std::size_t <a class="el" href="class_l_r_u_cache.html">LRUCache</a>< KeyT, CacheItemT >::capacity_</td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="lru__cache_8hpp_source.html#l00169">169</a> of file <a class="el" href="lru__cache_8hpp_source.html">lru_cache.hpp</a>.</p>
<p class="reference">Referenced by <a class="el" href="lru__cache_8hpp_source.html#l00079">LRUCache< KeyT, CacheItemT >::insert()</a>, <a class="el" href="lru__cache_8hpp_source.html#l00040">LRUCache< KeyT, CacheItemT >::LRUCache()</a>, and <a class="el" href="lru__cache_8hpp_source.html#l00128">LRUCache< KeyT, CacheItemT >::setCapacity()</a>.</p>
</div>
</div>
<a id="a5dd8d1a70adc93067461e18041891495"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5dd8d1a70adc93067461e18041891495">◆ </a></span>key_index_</h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template<typename KeyT , typename CacheItemT > </div>
<table class="memname">
<tr>
<td class="memname"><a class="el" href="class_l_r_u_cache.html#a09bd04537a3ee566c432e6848c0b91f0">KeyIndex</a> <a class="el" href="class_l_r_u_cache.html">LRUCache</a>< KeyT, CacheItemT >::key_index_</td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="lru__cache_8hpp_source.html#l00175">175</a> of file <a class="el" href="lru__cache_8hpp_source.html">lru_cache.hpp</a>.</p>
<p class="reference">Referenced by <a class="el" href="lru__cache_8hpp_source.html#l00148">LRUCache< KeyT, CacheItemT >::evict()</a>, <a class="el" href="lru__cache_8hpp_source.html#l00053">LRUCache< KeyT, CacheItemT >::get()</a>, <a class="el" href="lru__cache_8hpp_source.html#l00079">LRUCache< KeyT, CacheItemT >::insert()</a>, <a class="el" href="lru__cache_8hpp_source.html#l00134">LRUCache< KeyT, CacheItemT >::tailItem()</a>, and <a class="el" href="lru__cache_8hpp_source.html#l00067">LRUCache< KeyT, CacheItemT >::touch()</a>.</p>
</div>
</div>
<a id="a8947022c987bb9e9c1e0c3d1905cebb7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8947022c987bb9e9c1e0c3d1905cebb7">◆ </a></span>size_</h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template<typename KeyT , typename CacheItemT > </div>
<table class="memname">
<tr>
<td class="memname">std::size_t <a class="el" href="class_l_r_u_cache.html">LRUCache</a>< KeyT, CacheItemT >::size_</td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="lru__cache_8hpp_source.html#l00172">172</a> of file <a class="el" href="lru__cache_8hpp_source.html">lru_cache.hpp</a>.</p>
<p class="reference">Referenced by <a class="el" href="lru__cache_8hpp_source.html#l00148">LRUCache< KeyT, CacheItemT >::evict()</a>, and <a class="el" href="lru__cache_8hpp_source.html#l00079">LRUCache< KeyT, CacheItemT >::insert()</a>.</p>
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>pcl/outofcore/impl/<a class="el" href="lru__cache_8hpp_source.html">lru_cache.hpp</a></li>
</ul>
</div><!-- contents -->
<hr>
<div id="footer">
<p>
Except where otherwise noted, the PointClouds.org web pages are licensed under <a href="http://creativecommons.org/licenses/by/3.0/">Creative Commons Attribution 3.0</a>.
</p>
<p>Pages generated on Sun Dec 20 2020 13:19:01</p>
</div> <!-- #footer -->
</body>
</html>
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。