Welcome to mirror list, hosted at ThFree Co, Russian Federation.

classllfio__v2__xxx_1_1map__view.html - github.com/windirstat/llfio.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: a9806dadcab6899dec715072361943904465e4a3 (plain)
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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
<!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>LLFIO: llfio_v2_xxx::map_view&lt; T &gt; 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="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</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">LLFIO
   &#160;<span id="projectnumber">v2.00 late alpha</span>
   </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>
</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('classllfio__v2__xxx_1_1map__view.html','');});
</script>
<div id="doc-content">
<!-- 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 class="header">
  <div class="summary">
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="classllfio__v2__xxx_1_1map__view-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">llfio_v2_xxx::map_view&lt; T &gt; Class Template Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Provides a lightweight typed view of a <code>map_handle</code>, a <code>mapped_file_handle</code> or a <code>mapped&lt;T&gt;</code> suitable for feeding to STL algorithms or the Ranges TS.  
 <a href="classllfio__v2__xxx_1_1map__view.html#details">More...</a></p>

<p><code>#include &quot;map_view.hpp&quot;</code></p>
<div class="dynheader">
Inheritance diagram for llfio_v2_xxx::map_view&lt; T &gt;:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classllfio__v2__xxx_1_1map__view.png" usemap="#llfio_5Fv2_5Fxxx::map_5Fview_3C_20T_20_3E_map" alt=""/>
  <map id="llfio_5Fv2_5Fxxx::map_5Fview_3C_20T_20_3E_map" name="llfio_5Fv2_5Fxxx::map_5Fview_3C_20T_20_3E_map">
</map>
 </div></div>
<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:ada2f632e47980e8261ca9e9d7cea0ad0"><td class="memItemLeft" align="right" valign="top"><a id="ada2f632e47980e8261ca9e9d7cea0ad0"></a>
using&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classllfio__v2__xxx_1_1map__view.html#ada2f632e47980e8261ca9e9d7cea0ad0">extent_type</a> = typename section_handle::extent_type</td></tr>
<tr class="memdesc:ada2f632e47980e8261ca9e9d7cea0ad0"><td class="mdescLeft">&#160;</td><td class="mdescRight">The extent type. <br /></td></tr>
<tr class="separator:ada2f632e47980e8261ca9e9d7cea0ad0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a22be05bfdf389ec2fe1e38364a709968"><td class="memItemLeft" align="right" valign="top"><a id="a22be05bfdf389ec2fe1e38364a709968"></a>
using&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classllfio__v2__xxx_1_1map__view.html#a22be05bfdf389ec2fe1e38364a709968">size_type</a> = typename section_handle::size_type</td></tr>
<tr class="memdesc:a22be05bfdf389ec2fe1e38364a709968"><td class="mdescLeft">&#160;</td><td class="mdescRight">The size type. <br /></td></tr>
<tr class="separator:a22be05bfdf389ec2fe1e38364a709968"><td class="memSeparator" colspan="2">&#160;</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:acc3a035ab192f6debac1cae05303f5b6"><td class="memItemLeft" align="right" valign="top"><a id="acc3a035ab192f6debac1cae05303f5b6"></a>
constexpr&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classllfio__v2__xxx_1_1map__view.html#acc3a035ab192f6debac1cae05303f5b6">map_view</a> ()</td></tr>
<tr class="memdesc:acc3a035ab192f6debac1cae05303f5b6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Default constructor. <br /></td></tr>
<tr class="separator:acc3a035ab192f6debac1cae05303f5b6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9e2146183c2a23e888f37c2be5fda541"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classllfio__v2__xxx_1_1map__view.html#a9e2146183c2a23e888f37c2be5fda541">map_view</a> (<a class="el" href="classllfio__v2__xxx_1_1mapped.html">mapped</a>&lt; T &gt; &amp;<a class="el" href="namespacellfio__v2__xxx.html#ab50d07405d17a8fff4e360fd2612bc6f">map</a>, <a class="el" href="classllfio__v2__xxx_1_1map__view.html#a22be05bfdf389ec2fe1e38364a709968">size_type</a> <a class="el" href="namespacellfio__v2__xxx.html#aa3676f0dd69f4b54cf7e14e3f86d32b9">length</a>=(<a class="el" href="classllfio__v2__xxx_1_1map__view.html#a22be05bfdf389ec2fe1e38364a709968">size_type</a>) -1, <a class="el" href="classllfio__v2__xxx_1_1map__view.html#a22be05bfdf389ec2fe1e38364a709968">size_type</a> offset=0)</td></tr>
<tr class="separator:a9e2146183c2a23e888f37c2be5fda541"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a97c04ba57e872e0aea6ae3bc6b4ff647"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classllfio__v2__xxx_1_1map__view.html#a97c04ba57e872e0aea6ae3bc6b4ff647">map_view</a> (<a class="el" href="classllfio__v2__xxx_1_1map__handle.html">map_handle</a> &amp;mh, <a class="el" href="classllfio__v2__xxx_1_1map__view.html#a22be05bfdf389ec2fe1e38364a709968">size_type</a> <a class="el" href="namespacellfio__v2__xxx.html#aa3676f0dd69f4b54cf7e14e3f86d32b9">length</a>=(<a class="el" href="classllfio__v2__xxx_1_1map__view.html#a22be05bfdf389ec2fe1e38364a709968">size_type</a>) -1, <a class="el" href="classllfio__v2__xxx_1_1map__view.html#ada2f632e47980e8261ca9e9d7cea0ad0">extent_type</a> byteoffset=0)</td></tr>
<tr class="separator:a97c04ba57e872e0aea6ae3bc6b4ff647"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8d8ce42d796c179afd1efbb7d65f3198"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classllfio__v2__xxx_1_1map__view.html#a8d8ce42d796c179afd1efbb7d65f3198">map_view</a> (<a class="el" href="classllfio__v2__xxx_1_1mapped__file__handle.html">mapped_file_handle</a> &amp;mfh, <a class="el" href="classllfio__v2__xxx_1_1map__view.html#a22be05bfdf389ec2fe1e38364a709968">size_type</a> <a class="el" href="namespacellfio__v2__xxx.html#aa3676f0dd69f4b54cf7e14e3f86d32b9">length</a>=(<a class="el" href="classllfio__v2__xxx_1_1map__view.html#a22be05bfdf389ec2fe1e38364a709968">size_type</a>) -1, <a class="el" href="classllfio__v2__xxx_1_1map__view.html#ada2f632e47980e8261ca9e9d7cea0ad0">extent_type</a> byteoffset=0)</td></tr>
<tr class="separator:a8d8ce42d796c179afd1efbb7d65f3198"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><h3>template&lt;class T&gt;<br />
class llfio_v2_xxx::map_view&lt; T &gt;</h3>

<p>Provides a lightweight typed view of a <code>map_handle</code>, a <code>mapped_file_handle</code> or a <code>mapped&lt;T&gt;</code> suitable for feeding to STL algorithms or the Ranges TS. </p>
<p>This is the correct type to use when passing non-owning views of mapped data around between functions. Where you wish the view to be (possibly) owning, you may find the non-lightweight <code>mapped&lt;T&gt;</code> of more use. </p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="a9e2146183c2a23e888f37c2be5fda541"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9e2146183c2a23e888f37c2be5fda541">&#9670;&nbsp;</a></span>map_view() <span class="overload">[1/3]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class T &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classllfio__v2__xxx_1_1map__view.html">llfio_v2_xxx::map_view</a>&lt; T &gt;::<a class="el" href="classllfio__v2__xxx_1_1map__view.html">map_view</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classllfio__v2__xxx_1_1mapped.html">mapped</a>&lt; T &gt; &amp;&#160;</td>
          <td class="paramname"><em>map</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classllfio__v2__xxx_1_1map__view.html#a22be05bfdf389ec2fe1e38364a709968">size_type</a>&#160;</td>
          <td class="paramname"><em>length</em> = <code>(<a class="el" href="classllfio__v2__xxx_1_1map__view.html#a22be05bfdf389ec2fe1e38364a709968">size_type</a>)&#160;-1</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classllfio__v2__xxx_1_1map__view.html#a22be05bfdf389ec2fe1e38364a709968">size_type</a>&#160;</td>
          <td class="paramname"><em>offset</em> = <code>0</code>&#160;</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>Implicitly construct a mapped view of the given mapped data.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">map</td><td>The mapped data to take a view upon. </td></tr>
    <tr><td class="paramname">length</td><td>The number of items to map, use -1 to mean the length of the input view. </td></tr>
    <tr><td class="paramname">offset</td><td>The item offset into the mapped file handle. </td></tr>
  </table>
  </dd>
</dl>
<div class="fragment"><div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;  : span&lt;T&gt;(<a class="code" href="namespacellfio__v2__xxx.html#ab50d07405d17a8fff4e360fd2612bc6f">map</a>.begin() + offset, (<a class="code" href="namespacellfio__v2__xxx.html#aa3676f0dd69f4b54cf7e14e3f86d32b9">length</a> == (<a class="code" href="classllfio__v2__xxx_1_1map__view.html#a22be05bfdf389ec2fe1e38364a709968">size_type</a>) -1) ? (<a class="code" href="namespacellfio__v2__xxx.html#ab50d07405d17a8fff4e360fd2612bc6f">map</a>.size() - offset) : <a class="code" href="namespacellfio__v2__xxx.html#aa3676f0dd69f4b54cf7e14e3f86d32b9">length</a>)  <span class="comment">// NOLINT</span></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;  }</div><div class="ttc" id="namespacellfio__v2__xxx_html_aa3676f0dd69f4b54cf7e14e3f86d32b9"><div class="ttname"><a href="namespacellfio__v2__xxx.html#aa3676f0dd69f4b54cf7e14e3f86d32b9">llfio_v2_xxx::length</a></div><div class="ttdeci">result&lt; section_handle::extent_type &gt; length(const section_handle &amp;self) noexcept</div><div class="ttdoc">Return the current maximum permitted extent of the memory section. </div><div class="ttdef"><b>Definition:</b> map_handle.hpp:595</div></div>
<div class="ttc" id="classllfio__v2__xxx_1_1map__view_html_a22be05bfdf389ec2fe1e38364a709968"><div class="ttname"><a href="classllfio__v2__xxx_1_1map__view.html#a22be05bfdf389ec2fe1e38364a709968">llfio_v2_xxx::map_view::size_type</a></div><div class="ttdeci">typename section_handle::size_type size_type</div><div class="ttdoc">The size type. </div><div class="ttdef"><b>Definition:</b> map_view.hpp:47</div></div>
<div class="ttc" id="namespacellfio__v2__xxx_html_ab50d07405d17a8fff4e360fd2612bc6f"><div class="ttname"><a href="namespacellfio__v2__xxx.html#ab50d07405d17a8fff4e360fd2612bc6f">llfio_v2_xxx::map</a></div><div class="ttdeci">result&lt; map_handle &gt; map(map_handle::size_type bytes, bool zeroed=false, section_handle::flag _flag=section_handle::flag::readwrite) noexcept</div><div class="ttdef"><b>Definition:</b> map_handle.hpp:650</div></div>
</div><!-- fragment -->
</div>
</div>
<a id="a97c04ba57e872e0aea6ae3bc6b4ff647"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a97c04ba57e872e0aea6ae3bc6b4ff647">&#9670;&nbsp;</a></span>map_view() <span class="overload">[2/3]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class T &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classllfio__v2__xxx_1_1map__view.html">llfio_v2_xxx::map_view</a>&lt; T &gt;::<a class="el" href="classllfio__v2__xxx_1_1map__view.html">map_view</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classllfio__v2__xxx_1_1map__handle.html">map_handle</a> &amp;&#160;</td>
          <td class="paramname"><em>mh</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classllfio__v2__xxx_1_1map__view.html#a22be05bfdf389ec2fe1e38364a709968">size_type</a>&#160;</td>
          <td class="paramname"><em>length</em> = <code>(<a class="el" href="classllfio__v2__xxx_1_1map__view.html#a22be05bfdf389ec2fe1e38364a709968">size_type</a>)&#160;-1</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classllfio__v2__xxx_1_1map__view.html#ada2f632e47980e8261ca9e9d7cea0ad0">extent_type</a>&#160;</td>
          <td class="paramname"><em>byteoffset</em> = <code>0</code>&#160;</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 class="mlabel">explicit</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Construct a mapped view of the given map handle.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">mh</td><td>The map handle to use. </td></tr>
    <tr><td class="paramname">length</td><td>The number of items to map, use -1 to mean the length of the map handle divided by <code>sizeof(T)</code>. </td></tr>
    <tr><td class="paramname">byteoffset</td><td>The byte offset into the map handle, this does not need to be a multiple of the page size. </td></tr>
  </table>
  </dd>
</dl>
<div class="fragment"><div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;  : span&lt;T&gt;(<span class="keyword">reinterpret_cast&lt;</span>T *<span class="keyword">&gt;</span>(mh.address() + byteoffset), (<a class="code" href="namespacellfio__v2__xxx.html#aa3676f0dd69f4b54cf7e14e3f86d32b9">length</a> == (<a class="code" href="classllfio__v2__xxx_1_1map__view.html#a22be05bfdf389ec2fe1e38364a709968">size_type</a>) -1) ? ((mh.length() - byteoffset) / <span class="keyword">sizeof</span>(T)) : <a class="code" href="namespacellfio__v2__xxx.html#aa3676f0dd69f4b54cf7e14e3f86d32b9">length</a>)  <span class="comment">// NOLINT</span></div><div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;  {</div><div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;  }</div><div class="ttc" id="namespacellfio__v2__xxx_html_aa3676f0dd69f4b54cf7e14e3f86d32b9"><div class="ttname"><a href="namespacellfio__v2__xxx.html#aa3676f0dd69f4b54cf7e14e3f86d32b9">llfio_v2_xxx::length</a></div><div class="ttdeci">result&lt; section_handle::extent_type &gt; length(const section_handle &amp;self) noexcept</div><div class="ttdoc">Return the current maximum permitted extent of the memory section. </div><div class="ttdef"><b>Definition:</b> map_handle.hpp:595</div></div>
<div class="ttc" id="classllfio__v2__xxx_1_1map__view_html_a22be05bfdf389ec2fe1e38364a709968"><div class="ttname"><a href="classllfio__v2__xxx_1_1map__view.html#a22be05bfdf389ec2fe1e38364a709968">llfio_v2_xxx::map_view::size_type</a></div><div class="ttdeci">typename section_handle::size_type size_type</div><div class="ttdoc">The size type. </div><div class="ttdef"><b>Definition:</b> map_view.hpp:47</div></div>
</div><!-- fragment -->
</div>
</div>
<a id="a8d8ce42d796c179afd1efbb7d65f3198"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8d8ce42d796c179afd1efbb7d65f3198">&#9670;&nbsp;</a></span>map_view() <span class="overload">[3/3]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class T &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classllfio__v2__xxx_1_1map__view.html">llfio_v2_xxx::map_view</a>&lt; T &gt;::<a class="el" href="classllfio__v2__xxx_1_1map__view.html">map_view</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classllfio__v2__xxx_1_1mapped__file__handle.html">mapped_file_handle</a> &amp;&#160;</td>
          <td class="paramname"><em>mfh</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classllfio__v2__xxx_1_1map__view.html#a22be05bfdf389ec2fe1e38364a709968">size_type</a>&#160;</td>
          <td class="paramname"><em>length</em> = <code>(<a class="el" href="classllfio__v2__xxx_1_1map__view.html#a22be05bfdf389ec2fe1e38364a709968">size_type</a>)&#160;-1</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classllfio__v2__xxx_1_1map__view.html#ada2f632e47980e8261ca9e9d7cea0ad0">extent_type</a>&#160;</td>
          <td class="paramname"><em>byteoffset</em> = <code>0</code>&#160;</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 class="mlabel">explicit</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Construct a mapped view of the given mapped file handle.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">mfh</td><td>The mapped file handle to take a view upon. </td></tr>
    <tr><td class="paramname">length</td><td>The number of items to map, use -1 to mean the length of the section handle divided by <code>sizeof(T)</code>. </td></tr>
    <tr><td class="paramname">byteoffset</td><td>The byte offset into the mapped file handle, this does not need to be a multiple of the page size. </td></tr>
  </table>
  </dd>
</dl>
<div class="fragment"><div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;  : span&lt;T&gt;(<span class="keyword">reinterpret_cast&lt;</span>T *<span class="keyword">&gt;</span>(mfh.address() + byteoffset), (<a class="code" href="namespacellfio__v2__xxx.html#aa3676f0dd69f4b54cf7e14e3f86d32b9">length</a> == (<a class="code" href="classllfio__v2__xxx_1_1map__view.html#a22be05bfdf389ec2fe1e38364a709968">size_type</a>) -1) ? ((mfh.maximum_extent().value() - byteoffset) / <span class="keyword">sizeof</span>(T)) : <a class="code" href="namespacellfio__v2__xxx.html#aa3676f0dd69f4b54cf7e14e3f86d32b9">length</a>)  <span class="comment">// NOLINT</span></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="ttc" id="namespacellfio__v2__xxx_html_aa3676f0dd69f4b54cf7e14e3f86d32b9"><div class="ttname"><a href="namespacellfio__v2__xxx.html#aa3676f0dd69f4b54cf7e14e3f86d32b9">llfio_v2_xxx::length</a></div><div class="ttdeci">result&lt; section_handle::extent_type &gt; length(const section_handle &amp;self) noexcept</div><div class="ttdoc">Return the current maximum permitted extent of the memory section. </div><div class="ttdef"><b>Definition:</b> map_handle.hpp:595</div></div>
<div class="ttc" id="classllfio__v2__xxx_1_1map__view_html_a22be05bfdf389ec2fe1e38364a709968"><div class="ttname"><a href="classllfio__v2__xxx_1_1map__view.html#a22be05bfdf389ec2fe1e38364a709968">llfio_v2_xxx::map_view::size_type</a></div><div class="ttdeci">typename section_handle::size_type size_type</div><div class="ttdoc">The size type. </div><div class="ttdef"><b>Definition:</b> map_view.hpp:47</div></div>
</div><!-- fragment -->
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>include/llfio/v2.0/<a class="el" href="map__view_8hpp.html">map_view.hpp</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="namespacellfio__v2__xxx.html">llfio_v2_xxx</a></li><li class="navelem"><a class="el" href="classllfio__v2__xxx_1_1map__view.html">map_view</a></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li>
  </ul>
</div>
</body>
</html>