/usr/share/doc/libjuce/apiref/classSparseSet.html is in libjuce-doc 4.3.0~repack-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 | <!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.12"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>JUCE: SparseSet< Type > 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">JUCE
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.12 -->
<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><!-- top -->
<div class="header">
<div class="summary">
<a href="#pub-methods">Public Member Functions</a> |
<a href="classSparseSet-members.html">List of all members</a> </div>
<div class="headertitle">
<div class="title">SparseSet< Type > Class Template Reference</div> </div>
</div><!--header-->
<div class="contents">
<p>Holds a set of primitive values, storing them as a set of ranges.
<a href="classSparseSet.html#details">More...</a></p>
<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:a7d68b624199ec2f71e9ec1519c4fcd3d"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classSparseSet.html#a7d68b624199ec2f71e9ec1519c4fcd3d">SparseSet</a> ()</td></tr>
<tr class="memdesc:a7d68b624199ec2f71e9ec1519c4fcd3d"><td class="mdescLeft"> </td><td class="mdescRight">Creates a new empty set. <a href="#a7d68b624199ec2f71e9ec1519c4fcd3d">More...</a><br /></td></tr>
<tr class="separator:a7d68b624199ec2f71e9ec1519c4fcd3d"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a9db453b88c6f983047f2920412b7c559"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classSparseSet.html#a9db453b88c6f983047f2920412b7c559">SparseSet</a> (const <a class="el" href="classSparseSet.html">SparseSet</a>< Type > &other)</td></tr>
<tr class="memdesc:a9db453b88c6f983047f2920412b7c559"><td class="mdescLeft"> </td><td class="mdescRight">Creates a copy of another <a class="el" href="classSparseSet.html" title="Holds a set of primitive values, storing them as a set of ranges. ">SparseSet</a>. <a href="#a9db453b88c6f983047f2920412b7c559">More...</a><br /></td></tr>
<tr class="separator:a9db453b88c6f983047f2920412b7c559"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a7d2fc6674ce3c6c0c52d720d88752339"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classSparseSet.html#a7d2fc6674ce3c6c0c52d720d88752339">clear</a> ()</td></tr>
<tr class="memdesc:a7d2fc6674ce3c6c0c52d720d88752339"><td class="mdescLeft"> </td><td class="mdescRight">Clears the set. <a href="#a7d2fc6674ce3c6c0c52d720d88752339">More...</a><br /></td></tr>
<tr class="separator:a7d2fc6674ce3c6c0c52d720d88752339"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ae60850392e3312144695b1bb9c999047"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classSparseSet.html#ae60850392e3312144695b1bb9c999047">isEmpty</a> () const noexcept</td></tr>
<tr class="memdesc:ae60850392e3312144695b1bb9c999047"><td class="mdescLeft"> </td><td class="mdescRight">Checks whether the set is empty. <a href="#ae60850392e3312144695b1bb9c999047">More...</a><br /></td></tr>
<tr class="separator:ae60850392e3312144695b1bb9c999047"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a821b4144b416e90001a4df0ba0a69a23"><td class="memItemLeft" align="right" valign="top">Type </td><td class="memItemRight" valign="bottom"><a class="el" href="classSparseSet.html#a821b4144b416e90001a4df0ba0a69a23">size</a> () const</td></tr>
<tr class="memdesc:a821b4144b416e90001a4df0ba0a69a23"><td class="mdescLeft"> </td><td class="mdescRight">Returns the number of values in the set. <a href="#a821b4144b416e90001a4df0ba0a69a23">More...</a><br /></td></tr>
<tr class="separator:a821b4144b416e90001a4df0ba0a69a23"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a263a2c735792200e7b99c85a7142a01f"><td class="memItemLeft" align="right" valign="top">Type </td><td class="memItemRight" valign="bottom"><a class="el" href="classSparseSet.html#a263a2c735792200e7b99c85a7142a01f">operator[]</a> (Type index) const</td></tr>
<tr class="memdesc:a263a2c735792200e7b99c85a7142a01f"><td class="mdescLeft"> </td><td class="mdescRight">Returns one of the values in the set. <a href="#a263a2c735792200e7b99c85a7142a01f">More...</a><br /></td></tr>
<tr class="separator:a263a2c735792200e7b99c85a7142a01f"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a3e54ca6257cdac28a37ebb55856f1410"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classSparseSet.html#a3e54ca6257cdac28a37ebb55856f1410">contains</a> (const Type valueToLookFor) const</td></tr>
<tr class="memdesc:a3e54ca6257cdac28a37ebb55856f1410"><td class="mdescLeft"> </td><td class="mdescRight">Checks whether a particular value is in the set. <a href="#a3e54ca6257cdac28a37ebb55856f1410">More...</a><br /></td></tr>
<tr class="separator:a3e54ca6257cdac28a37ebb55856f1410"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a2cf54ba41e95ead13be4cdea090750fe"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classSparseSet.html#a2cf54ba41e95ead13be4cdea090750fe">getNumRanges</a> () const noexcept</td></tr>
<tr class="memdesc:a2cf54ba41e95ead13be4cdea090750fe"><td class="mdescLeft"> </td><td class="mdescRight">Returns the number of contiguous blocks of values. <a href="#a2cf54ba41e95ead13be4cdea090750fe">More...</a><br /></td></tr>
<tr class="separator:a2cf54ba41e95ead13be4cdea090750fe"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:abc3316ca32122da01460cea2813ea7a3"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classRange.html">Range</a>< Type > </td><td class="memItemRight" valign="bottom"><a class="el" href="classSparseSet.html#abc3316ca32122da01460cea2813ea7a3">getRange</a> (const int rangeIndex) const</td></tr>
<tr class="memdesc:abc3316ca32122da01460cea2813ea7a3"><td class="mdescLeft"> </td><td class="mdescRight">Returns one of the contiguous ranges of values stored. <a href="#abc3316ca32122da01460cea2813ea7a3">More...</a><br /></td></tr>
<tr class="separator:abc3316ca32122da01460cea2813ea7a3"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a5564f76ddf735f741d1974b8e310089f"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classRange.html">Range</a>< Type > </td><td class="memItemRight" valign="bottom"><a class="el" href="classSparseSet.html#a5564f76ddf735f741d1974b8e310089f">getTotalRange</a> () const</td></tr>
<tr class="memdesc:a5564f76ddf735f741d1974b8e310089f"><td class="mdescLeft"> </td><td class="mdescRight">Returns the range between the lowest and highest values in the set. <a href="#a5564f76ddf735f741d1974b8e310089f">More...</a><br /></td></tr>
<tr class="separator:a5564f76ddf735f741d1974b8e310089f"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a0887e0e73216a5d30dc399888fa304e5"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classSparseSet.html#a0887e0e73216a5d30dc399888fa304e5">addRange</a> (const <a class="el" href="classRange.html">Range</a>< Type > range)</td></tr>
<tr class="memdesc:a0887e0e73216a5d30dc399888fa304e5"><td class="mdescLeft"> </td><td class="mdescRight">Adds a range of contiguous values to the set. <a href="#a0887e0e73216a5d30dc399888fa304e5">More...</a><br /></td></tr>
<tr class="separator:a0887e0e73216a5d30dc399888fa304e5"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a263cd6c64bbf95db0ee8be6e546a70a6"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classSparseSet.html#a263cd6c64bbf95db0ee8be6e546a70a6">removeRange</a> (const <a class="el" href="classRange.html">Range</a>< Type > rangeToRemove)</td></tr>
<tr class="memdesc:a263cd6c64bbf95db0ee8be6e546a70a6"><td class="mdescLeft"> </td><td class="mdescRight">Removes a range of values from the set. <a href="#a263cd6c64bbf95db0ee8be6e546a70a6">More...</a><br /></td></tr>
<tr class="separator:a263cd6c64bbf95db0ee8be6e546a70a6"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a63c91d4e3ed13a357d2fccc7d6e695d4"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classSparseSet.html#a63c91d4e3ed13a357d2fccc7d6e695d4">invertRange</a> (const <a class="el" href="classRange.html">Range</a>< Type > range)</td></tr>
<tr class="memdesc:a63c91d4e3ed13a357d2fccc7d6e695d4"><td class="mdescLeft"> </td><td class="mdescRight">Does an XOR of the values in a given range. <a href="#a63c91d4e3ed13a357d2fccc7d6e695d4">More...</a><br /></td></tr>
<tr class="separator:a63c91d4e3ed13a357d2fccc7d6e695d4"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a82275387d1f516f25b15b841c03bcef1"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classSparseSet.html#a82275387d1f516f25b15b841c03bcef1">overlapsRange</a> (const <a class="el" href="classRange.html">Range</a>< Type > range)</td></tr>
<tr class="memdesc:a82275387d1f516f25b15b841c03bcef1"><td class="mdescLeft"> </td><td class="mdescRight">Checks whether any part of a given range overlaps any part of this set. <a href="#a82275387d1f516f25b15b841c03bcef1">More...</a><br /></td></tr>
<tr class="separator:a82275387d1f516f25b15b841c03bcef1"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a1a764e5824c3c99a9fb5d1e67036c59a"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classSparseSet.html#a1a764e5824c3c99a9fb5d1e67036c59a">containsRange</a> (const <a class="el" href="classRange.html">Range</a>< Type > range)</td></tr>
<tr class="memdesc:a1a764e5824c3c99a9fb5d1e67036c59a"><td class="mdescLeft"> </td><td class="mdescRight">Checks whether the whole of a given range is contained within this one. <a href="#a1a764e5824c3c99a9fb5d1e67036c59a">More...</a><br /></td></tr>
<tr class="separator:a1a764e5824c3c99a9fb5d1e67036c59a"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a24f9ec48f4d54d6e367de646b282eaee"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classSparseSet.html#a24f9ec48f4d54d6e367de646b282eaee">operator==</a> (const <a class="el" href="classSparseSet.html">SparseSet</a>< Type > &other) noexcept</td></tr>
<tr class="separator:a24f9ec48f4d54d6e367de646b282eaee"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:acab4f9b22f2852bc215ace7f8fe5b9ba"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classSparseSet.html#acab4f9b22f2852bc215ace7f8fe5b9ba">operator!=</a> (const <a class="el" href="classSparseSet.html">SparseSet</a>< Type > &other) noexcept</td></tr>
<tr class="separator:acab4f9b22f2852bc215ace7f8fe5b9ba"><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<class Type><br />
class SparseSet< Type ></h3>
<p>Holds a set of primitive values, storing them as a set of ranges. </p>
<p>This container acts like an array, but can efficiently hold large contiguous ranges of values. It's quite a specialised class, mostly useful for things like keeping the set of selected rows in a listbox.</p>
<p>The type used as a template parameter must be an integer type, such as int, short, int64, etc. </p>
</div><h2 class="groupheader">Constructor & Destructor Documentation</h2>
<a id="a7d68b624199ec2f71e9ec1519c4fcd3d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7d68b624199ec2f71e9ec1519c4fcd3d">§ </a></span>SparseSet() <span class="overload">[1/2]</span></h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template<class Type> </div>
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classSparseSet.html">SparseSet</a>< Type >::<a class="el" href="classSparseSet.html">SparseSet</a> </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Creates a new empty set. </p>
</div>
</div>
<a id="a9db453b88c6f983047f2920412b7c559"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9db453b88c6f983047f2920412b7c559">§ </a></span>SparseSet() <span class="overload">[2/2]</span></h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template<class Type> </div>
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classSparseSet.html">SparseSet</a>< Type >::<a class="el" href="classSparseSet.html">SparseSet</a> </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classSparseSet.html">SparseSet</a>< Type > & </td>
<td class="paramname"><em>other</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Creates a copy of another <a class="el" href="classSparseSet.html" title="Holds a set of primitive values, storing them as a set of ranges. ">SparseSet</a>. </p>
</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a7d2fc6674ce3c6c0c52d720d88752339"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7d2fc6674ce3c6c0c52d720d88752339">§ </a></span>clear()</h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template<class Type> </div>
<table class="memname">
<tr>
<td class="memname">void <a class="el" href="classSparseSet.html">SparseSet</a>< Type >::clear </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Clears the set. </p>
</div>
</div>
<a id="ae60850392e3312144695b1bb9c999047"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae60850392e3312144695b1bb9c999047">§ </a></span>isEmpty()</h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template<class Type> </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">bool <a class="el" href="classSparseSet.html">SparseSet</a>< Type >::isEmpty </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">noexcept</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Checks whether the set is empty. </p>
<p>This is much quicker than using (<a class="el" href="classSparseSet.html#a821b4144b416e90001a4df0ba0a69a23" title="Returns the number of values in the set. ">size()</a> == 0). </p>
</div>
</div>
<a id="a821b4144b416e90001a4df0ba0a69a23"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a821b4144b416e90001a4df0ba0a69a23">§ </a></span>size()</h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template<class Type> </div>
<table class="memname">
<tr>
<td class="memname">Type <a class="el" href="classSparseSet.html">SparseSet</a>< Type >::size </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns the number of values in the set. </p>
<p>Because of the way the data is stored, this method can take longer if there are a lot of items in the set. Use <a class="el" href="classSparseSet.html#ae60850392e3312144695b1bb9c999047" title="Checks whether the set is empty. ">isEmpty()</a> for a quick test of whether there are any items. </p>
</div>
</div>
<a id="a263a2c735792200e7b99c85a7142a01f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a263a2c735792200e7b99c85a7142a01f">§ </a></span>operator[]()</h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template<class Type> </div>
<table class="memname">
<tr>
<td class="memname">Type <a class="el" href="classSparseSet.html">SparseSet</a>< Type >::operator[] </td>
<td>(</td>
<td class="paramtype">Type </td>
<td class="paramname"><em>index</em></td><td>)</td>
<td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns one of the values in the set. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">index</td><td>the index of the value to retrieve, in the range 0 to (<a class="el" href="classSparseSet.html#a821b4144b416e90001a4df0ba0a69a23" title="Returns the number of values in the set. ">size()</a> - 1). </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the value at this index, or 0 if it's out-of-range </dd></dl>
</div>
</div>
<a id="a3e54ca6257cdac28a37ebb55856f1410"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3e54ca6257cdac28a37ebb55856f1410">§ </a></span>contains()</h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template<class Type> </div>
<table class="memname">
<tr>
<td class="memname">bool <a class="el" href="classSparseSet.html">SparseSet</a>< Type >::contains </td>
<td>(</td>
<td class="paramtype">const Type </td>
<td class="paramname"><em>valueToLookFor</em></td><td>)</td>
<td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>Checks whether a particular value is in the set. </p>
<p>Referenced by <a class="el" href="classSparseSet.html#a263cd6c64bbf95db0ee8be6e546a70a6">SparseSet< int >::removeRange()</a>.</p>
</div>
</div>
<a id="a2cf54ba41e95ead13be4cdea090750fe"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2cf54ba41e95ead13be4cdea090750fe">§ </a></span>getNumRanges()</h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template<class Type> </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">int <a class="el" href="classSparseSet.html">SparseSet</a>< Type >::getNumRanges </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">noexcept</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns the number of contiguous blocks of values. </p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classSparseSet.html#abc3316ca32122da01460cea2813ea7a3" title="Returns one of the contiguous ranges of values stored. ">getRange</a> </dd></dl>
<p>Referenced by <a class="el" href="classSparseSet.html#a1a764e5824c3c99a9fb5d1e67036c59a">SparseSet< int >::containsRange()</a>, <a class="el" href="classSparseSet.html#abc3316ca32122da01460cea2813ea7a3">SparseSet< int >::getRange()</a>, <a class="el" href="classSparseSet.html#a63c91d4e3ed13a357d2fccc7d6e695d4">SparseSet< int >::invertRange()</a>, and <a class="el" href="classSparseSet.html#a82275387d1f516f25b15b841c03bcef1">SparseSet< int >::overlapsRange()</a>.</p>
</div>
</div>
<a id="abc3316ca32122da01460cea2813ea7a3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abc3316ca32122da01460cea2813ea7a3">§ </a></span>getRange()</h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template<class Type> </div>
<table class="memname">
<tr>
<td class="memname">const <a class="el" href="classRange.html">Range</a><Type> <a class="el" href="classSparseSet.html">SparseSet</a>< Type >::getRange </td>
<td>(</td>
<td class="paramtype">const int </td>
<td class="paramname"><em>rangeIndex</em></td><td>)</td>
<td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns one of the contiguous ranges of values stored. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">rangeIndex</td><td>the index of the range to look up, between 0 and (<a class="el" href="classSparseSet.html#a2cf54ba41e95ead13be4cdea090750fe" title="Returns the number of contiguous blocks of values. ">getNumRanges()</a> - 1) </td></tr>
</table>
</dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classSparseSet.html#a5564f76ddf735f741d1974b8e310089f" title="Returns the range between the lowest and highest values in the set. ">getTotalRange</a> </dd></dl>
<p>Referenced by <a class="el" href="classSparseSet.html#a63c91d4e3ed13a357d2fccc7d6e695d4">SparseSet< int >::invertRange()</a>.</p>
</div>
</div>
<a id="a5564f76ddf735f741d1974b8e310089f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5564f76ddf735f741d1974b8e310089f">§ </a></span>getTotalRange()</h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template<class Type> </div>
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classRange.html">Range</a><Type> <a class="el" href="classSparseSet.html">SparseSet</a>< Type >::getTotalRange </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns the range between the lowest and highest values in the set. </p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classSparseSet.html#abc3316ca32122da01460cea2813ea7a3" title="Returns one of the contiguous ranges of values stored. ">getRange</a> </dd></dl>
</div>
</div>
<a id="a0887e0e73216a5d30dc399888fa304e5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0887e0e73216a5d30dc399888fa304e5">§ </a></span>addRange()</h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template<class Type> </div>
<table class="memname">
<tr>
<td class="memname">void <a class="el" href="classSparseSet.html">SparseSet</a>< Type >::addRange </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classRange.html">Range</a>< Type > </td>
<td class="paramname"><em>range</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Adds a range of contiguous values to the set. </p>
<p>e.g. addRange (<a class="el" href="classRange.html" title="A general-purpose range object, that simply represents any linear range with a start and end point...">Range</a> <int> (10, 14)) will add (10, 11, 12, 13) to the set. </p>
<p>Referenced by <a class="el" href="classSparseSet.html#a63c91d4e3ed13a357d2fccc7d6e695d4">SparseSet< int >::invertRange()</a>.</p>
</div>
</div>
<a id="a263cd6c64bbf95db0ee8be6e546a70a6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a263cd6c64bbf95db0ee8be6e546a70a6">§ </a></span>removeRange()</h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template<class Type> </div>
<table class="memname">
<tr>
<td class="memname">void <a class="el" href="classSparseSet.html">SparseSet</a>< Type >::removeRange </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classRange.html">Range</a>< Type > </td>
<td class="paramname"><em>rangeToRemove</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Removes a range of values from the set. </p>
<p>e.g. removeRange (<a class="el" href="classRange.html" title="A general-purpose range object, that simply represents any linear range with a start and end point...">Range</a><int> (10, 14)) will remove (10, 11, 12, 13) from the set. </p>
<p>Referenced by <a class="el" href="classSparseSet.html#a0887e0e73216a5d30dc399888fa304e5">SparseSet< int >::addRange()</a>, and <a class="el" href="classSparseSet.html#a63c91d4e3ed13a357d2fccc7d6e695d4">SparseSet< int >::invertRange()</a>.</p>
</div>
</div>
<a id="a63c91d4e3ed13a357d2fccc7d6e695d4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a63c91d4e3ed13a357d2fccc7d6e695d4">§ </a></span>invertRange()</h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template<class Type> </div>
<table class="memname">
<tr>
<td class="memname">void <a class="el" href="classSparseSet.html">SparseSet</a>< Type >::invertRange </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classRange.html">Range</a>< Type > </td>
<td class="paramname"><em>range</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Does an XOR of the values in a given range. </p>
</div>
</div>
<a id="a82275387d1f516f25b15b841c03bcef1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a82275387d1f516f25b15b841c03bcef1">§ </a></span>overlapsRange()</h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template<class Type> </div>
<table class="memname">
<tr>
<td class="memname">bool <a class="el" href="classSparseSet.html">SparseSet</a>< Type >::overlapsRange </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classRange.html">Range</a>< Type > </td>
<td class="paramname"><em>range</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Checks whether any part of a given range overlaps any part of this set. </p>
</div>
</div>
<a id="a1a764e5824c3c99a9fb5d1e67036c59a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1a764e5824c3c99a9fb5d1e67036c59a">§ </a></span>containsRange()</h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template<class Type> </div>
<table class="memname">
<tr>
<td class="memname">bool <a class="el" href="classSparseSet.html">SparseSet</a>< Type >::containsRange </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classRange.html">Range</a>< Type > </td>
<td class="paramname"><em>range</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Checks whether the whole of a given range is contained within this one. </p>
</div>
</div>
<a id="a24f9ec48f4d54d6e367de646b282eaee"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a24f9ec48f4d54d6e367de646b282eaee">§ </a></span>operator==()</h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template<class Type> </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">bool <a class="el" href="classSparseSet.html">SparseSet</a>< Type >::operator== </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classSparseSet.html">SparseSet</a>< Type > & </td>
<td class="paramname"><em>other</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">noexcept</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a id="acab4f9b22f2852bc215ace7f8fe5b9ba"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acab4f9b22f2852bc215ace7f8fe5b9ba">§ </a></span>operator!=()</h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template<class Type> </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">bool <a class="el" href="classSparseSet.html">SparseSet</a>< Type >::operator!= </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classSparseSet.html">SparseSet</a>< Type > & </td>
<td class="paramname"><em>other</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">noexcept</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="juce__SparseSet_8h.html">juce_SparseSet.h</a></li>
</ul>
</div><!-- contents -->
<hr class="footer"/>
<address class="footer"><small>All content © ROLI Ltd.</small></address><br/>
</body>
</html>
|