This file is indexed.

/usr/share/doc/libjuce/apiref/classReferenceCountedArray.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
 567
 568
 569
 570
 571
 572
 573
 574
 575
 576
 577
 578
 579
 580
 581
 582
 583
 584
 585
 586
 587
 588
 589
 590
 591
 592
 593
 594
 595
 596
 597
 598
 599
 600
 601
 602
 603
 604
 605
 606
 607
 608
 609
 610
 611
 612
 613
 614
 615
 616
 617
 618
 619
 620
 621
 622
 623
 624
 625
 626
 627
 628
 629
 630
 631
 632
 633
 634
 635
 636
 637
 638
 639
 640
 641
 642
 643
 644
 645
 646
 647
 648
 649
 650
 651
 652
 653
 654
 655
 656
 657
 658
 659
 660
 661
 662
 663
 664
 665
 666
 667
 668
 669
 670
 671
 672
 673
 674
 675
 676
 677
 678
 679
 680
 681
 682
 683
 684
 685
 686
 687
 688
 689
 690
 691
 692
 693
 694
 695
 696
 697
 698
 699
 700
 701
 702
 703
 704
 705
 706
 707
 708
 709
 710
 711
 712
 713
 714
 715
 716
 717
 718
 719
 720
 721
 722
 723
 724
 725
 726
 727
 728
 729
 730
 731
 732
 733
 734
 735
 736
 737
 738
 739
 740
 741
 742
 743
 744
 745
 746
 747
 748
 749
 750
 751
 752
 753
 754
 755
 756
 757
 758
 759
 760
 761
 762
 763
 764
 765
 766
 767
 768
 769
 770
 771
 772
 773
 774
 775
 776
 777
 778
 779
 780
 781
 782
 783
 784
 785
 786
 787
 788
 789
 790
 791
 792
 793
 794
 795
 796
 797
 798
 799
 800
 801
 802
 803
 804
 805
 806
 807
 808
 809
 810
 811
 812
 813
 814
 815
 816
 817
 818
 819
 820
 821
 822
 823
 824
 825
 826
 827
 828
 829
 830
 831
 832
 833
 834
 835
 836
 837
 838
 839
 840
 841
 842
 843
 844
 845
 846
 847
 848
 849
 850
 851
 852
 853
 854
 855
 856
 857
 858
 859
 860
 861
 862
 863
 864
 865
 866
 867
 868
 869
 870
 871
 872
 873
 874
 875
 876
 877
 878
 879
 880
 881
 882
 883
 884
 885
 886
 887
 888
 889
 890
 891
 892
 893
 894
 895
 896
 897
 898
 899
 900
 901
 902
 903
 904
 905
 906
 907
 908
 909
 910
 911
 912
 913
 914
 915
 916
 917
 918
 919
 920
 921
 922
 923
 924
 925
 926
 927
 928
 929
 930
 931
 932
 933
 934
 935
 936
 937
 938
 939
 940
 941
 942
 943
 944
 945
 946
 947
 948
 949
 950
 951
 952
 953
 954
 955
 956
 957
 958
 959
 960
 961
 962
 963
 964
 965
 966
 967
 968
 969
 970
 971
 972
 973
 974
 975
 976
 977
 978
 979
 980
 981
 982
 983
 984
 985
 986
 987
 988
 989
 990
 991
 992
 993
 994
 995
 996
 997
 998
 999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
<!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: ReferenceCountedArray&lt; ObjectClass, TypeOfCriticalSectionToUse &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="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-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="classReferenceCountedArray-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">ReferenceCountedArray&lt; ObjectClass, TypeOfCriticalSectionToUse &gt; Class Template Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Holds a list of objects derived from <a class="el" href="classReferenceCountedObject.html" title="A base class which provides methods for reference-counting. ">ReferenceCountedObject</a>, or which implement basic reference-count handling methods.  
 <a href="classReferenceCountedArray.html#details">More...</a></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:a5aeb8e0e9bc7f0cb0f19237edf286f64"><td class="memItemLeft" align="right" valign="top">typedef <a class="el" href="classReferenceCountedObjectPtr.html">ReferenceCountedObjectPtr</a>&lt; ObjectClass &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classReferenceCountedArray.html#a5aeb8e0e9bc7f0cb0f19237edf286f64">ObjectClassPtr</a></td></tr>
<tr class="separator:a5aeb8e0e9bc7f0cb0f19237edf286f64"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7298683e2cae9520f1b34a4d6679053d"><td class="memItemLeft" align="right" valign="top">typedef TypeOfCriticalSectionToUse::ScopedLockType&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classReferenceCountedArray.html#a7298683e2cae9520f1b34a4d6679053d">ScopedLockType</a></td></tr>
<tr class="memdesc:a7298683e2cae9520f1b34a4d6679053d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the type of scoped lock to use for locking this array.  <a href="#a7298683e2cae9520f1b34a4d6679053d">More...</a><br /></td></tr>
<tr class="separator:a7298683e2cae9520f1b34a4d6679053d"><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:a3026e9cca0a8b1d63751f3fbb930bf17"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classReferenceCountedArray.html#a3026e9cca0a8b1d63751f3fbb930bf17">ReferenceCountedArray</a> () noexcept</td></tr>
<tr class="memdesc:a3026e9cca0a8b1d63751f3fbb930bf17"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates an empty array.  <a href="#a3026e9cca0a8b1d63751f3fbb930bf17">More...</a><br /></td></tr>
<tr class="separator:a3026e9cca0a8b1d63751f3fbb930bf17"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ace310eb210683601fd6aac301795111c"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classReferenceCountedArray.html#ace310eb210683601fd6aac301795111c">ReferenceCountedArray</a> (const <a class="el" href="classReferenceCountedArray.html">ReferenceCountedArray</a> &amp;other) noexcept</td></tr>
<tr class="memdesc:ace310eb210683601fd6aac301795111c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a copy of another array.  <a href="#ace310eb210683601fd6aac301795111c">More...</a><br /></td></tr>
<tr class="separator:ace310eb210683601fd6aac301795111c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8966c5b4b7871123035f41fd4b7b530d"><td class="memTemplParams" colspan="2">template&lt;class OtherObjectClass , class OtherCriticalSection &gt; </td></tr>
<tr class="memitem:a8966c5b4b7871123035f41fd4b7b530d"><td class="memTemplItemLeft" align="right" valign="top">&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classReferenceCountedArray.html#a8966c5b4b7871123035f41fd4b7b530d">ReferenceCountedArray</a> (const <a class="el" href="classReferenceCountedArray.html">ReferenceCountedArray</a>&lt; OtherObjectClass, OtherCriticalSection &gt; &amp;other) noexcept</td></tr>
<tr class="memdesc:a8966c5b4b7871123035f41fd4b7b530d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a copy of another array.  <a href="#a8966c5b4b7871123035f41fd4b7b530d">More...</a><br /></td></tr>
<tr class="separator:a8966c5b4b7871123035f41fd4b7b530d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab9fd36e38317591da957d13be587aeba"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classReferenceCountedArray.html">ReferenceCountedArray</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classReferenceCountedArray.html#ab9fd36e38317591da957d13be587aeba">operator=</a> (const <a class="el" href="classReferenceCountedArray.html">ReferenceCountedArray</a> &amp;other) noexcept</td></tr>
<tr class="memdesc:ab9fd36e38317591da957d13be587aeba"><td class="mdescLeft">&#160;</td><td class="mdescRight">Copies another array into this one.  <a href="#ab9fd36e38317591da957d13be587aeba">More...</a><br /></td></tr>
<tr class="separator:ab9fd36e38317591da957d13be587aeba"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af2ed6c93d85a8254447cd4289fef7caf"><td class="memTemplParams" colspan="2">template&lt;class OtherObjectClass &gt; </td></tr>
<tr class="memitem:af2ed6c93d85a8254447cd4289fef7caf"><td class="memTemplItemLeft" align="right" valign="top"><a class="el" href="classReferenceCountedArray.html">ReferenceCountedArray</a>&lt; ObjectClass, TypeOfCriticalSectionToUse &gt; &amp;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classReferenceCountedArray.html#af2ed6c93d85a8254447cd4289fef7caf">operator=</a> (const <a class="el" href="classReferenceCountedArray.html">ReferenceCountedArray</a>&lt; OtherObjectClass, TypeOfCriticalSectionToUse &gt; &amp;other) noexcept</td></tr>
<tr class="memdesc:af2ed6c93d85a8254447cd4289fef7caf"><td class="mdescLeft">&#160;</td><td class="mdescRight">Copies another array into this one.  <a href="#af2ed6c93d85a8254447cd4289fef7caf">More...</a><br /></td></tr>
<tr class="separator:af2ed6c93d85a8254447cd4289fef7caf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a22c778cc2086117da5ac870485cb34e0"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classReferenceCountedArray.html#a22c778cc2086117da5ac870485cb34e0">~ReferenceCountedArray</a> ()</td></tr>
<tr class="memdesc:a22c778cc2086117da5ac870485cb34e0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Destructor.  <a href="#a22c778cc2086117da5ac870485cb34e0">More...</a><br /></td></tr>
<tr class="separator:a22c778cc2086117da5ac870485cb34e0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6dc6a1c3540a6f30456db545edb0486d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classReferenceCountedArray.html#a6dc6a1c3540a6f30456db545edb0486d">clear</a> ()</td></tr>
<tr class="memdesc:a6dc6a1c3540a6f30456db545edb0486d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Removes all objects from the array.  <a href="#a6dc6a1c3540a6f30456db545edb0486d">More...</a><br /></td></tr>
<tr class="separator:a6dc6a1c3540a6f30456db545edb0486d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad5a34e648c3dfc01493ca92838835bd1"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classReferenceCountedArray.html#ad5a34e648c3dfc01493ca92838835bd1">clearQuick</a> ()</td></tr>
<tr class="memdesc:ad5a34e648c3dfc01493ca92838835bd1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Removes all objects from the array without freeing the array's allocated storage.  <a href="#ad5a34e648c3dfc01493ca92838835bd1">More...</a><br /></td></tr>
<tr class="separator:ad5a34e648c3dfc01493ca92838835bd1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad4865c477b65f161105ded613856de64"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classReferenceCountedArray.html#ad4865c477b65f161105ded613856de64">size</a> () const noexcept</td></tr>
<tr class="memdesc:ad4865c477b65f161105ded613856de64"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the current number of objects in the array.  <a href="#ad4865c477b65f161105ded613856de64">More...</a><br /></td></tr>
<tr class="separator:ad4865c477b65f161105ded613856de64"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab1807aa4c5b58b6d02b6bb991ebd8715"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classReferenceCountedArray.html#ab1807aa4c5b58b6d02b6bb991ebd8715">isEmpty</a> () const noexcept</td></tr>
<tr class="memdesc:ab1807aa4c5b58b6d02b6bb991ebd8715"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns true if the array is empty, false otherwise.  <a href="#ab1807aa4c5b58b6d02b6bb991ebd8715">More...</a><br /></td></tr>
<tr class="separator:ab1807aa4c5b58b6d02b6bb991ebd8715"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a28d5adcb50aff95ba86562c42718d39f"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classReferenceCountedArray.html#a5aeb8e0e9bc7f0cb0f19237edf286f64">ObjectClassPtr</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classReferenceCountedArray.html#a28d5adcb50aff95ba86562c42718d39f">operator[]</a> (const int index) const noexcept</td></tr>
<tr class="memdesc:a28d5adcb50aff95ba86562c42718d39f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns a pointer to the object at this index in the array.  <a href="#a28d5adcb50aff95ba86562c42718d39f">More...</a><br /></td></tr>
<tr class="separator:a28d5adcb50aff95ba86562c42718d39f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2f89994333ed33a20efc36e216939c58"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classReferenceCountedArray.html#a5aeb8e0e9bc7f0cb0f19237edf286f64">ObjectClassPtr</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classReferenceCountedArray.html#a2f89994333ed33a20efc36e216939c58">getUnchecked</a> (const int index) const noexcept</td></tr>
<tr class="memdesc:a2f89994333ed33a20efc36e216939c58"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns a pointer to the object at this index in the array, without checking whether the index is in-range.  <a href="#a2f89994333ed33a20efc36e216939c58">More...</a><br /></td></tr>
<tr class="separator:a2f89994333ed33a20efc36e216939c58"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac9c63ba3ddc186c6e9fb0c3c97d1eb57"><td class="memItemLeft" align="right" valign="top">ObjectClass *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classReferenceCountedArray.html#ac9c63ba3ddc186c6e9fb0c3c97d1eb57">getObjectPointer</a> (const int index) const noexcept</td></tr>
<tr class="memdesc:ac9c63ba3ddc186c6e9fb0c3c97d1eb57"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns a raw pointer to the object at this index in the array.  <a href="#ac9c63ba3ddc186c6e9fb0c3c97d1eb57">More...</a><br /></td></tr>
<tr class="separator:ac9c63ba3ddc186c6e9fb0c3c97d1eb57"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8da693cf7dedfda5bb8a8e7331c4bf1f"><td class="memItemLeft" align="right" valign="top">ObjectClass *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classReferenceCountedArray.html#a8da693cf7dedfda5bb8a8e7331c4bf1f">getObjectPointerUnchecked</a> (const int index) const noexcept</td></tr>
<tr class="memdesc:a8da693cf7dedfda5bb8a8e7331c4bf1f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns a raw pointer to the object at this index in the array, without checking whether the index is in-range.  <a href="#a8da693cf7dedfda5bb8a8e7331c4bf1f">More...</a><br /></td></tr>
<tr class="separator:a8da693cf7dedfda5bb8a8e7331c4bf1f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab352b571e4ee02eedad655bba6434725"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classReferenceCountedArray.html#a5aeb8e0e9bc7f0cb0f19237edf286f64">ObjectClassPtr</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classReferenceCountedArray.html#ab352b571e4ee02eedad655bba6434725">getFirst</a> () const noexcept</td></tr>
<tr class="memdesc:ab352b571e4ee02eedad655bba6434725"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns a pointer to the first object in the array.  <a href="#ab352b571e4ee02eedad655bba6434725">More...</a><br /></td></tr>
<tr class="separator:ab352b571e4ee02eedad655bba6434725"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a906fbb190a57a893faa951949b93418b"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classReferenceCountedArray.html#a5aeb8e0e9bc7f0cb0f19237edf286f64">ObjectClassPtr</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classReferenceCountedArray.html#a906fbb190a57a893faa951949b93418b">getLast</a> () const noexcept</td></tr>
<tr class="memdesc:a906fbb190a57a893faa951949b93418b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns a pointer to the last object in the array.  <a href="#a906fbb190a57a893faa951949b93418b">More...</a><br /></td></tr>
<tr class="separator:a906fbb190a57a893faa951949b93418b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abad2570544706d399a2b0b65d1ea2f6f"><td class="memItemLeft" align="right" valign="top">ObjectClass **&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classReferenceCountedArray.html#abad2570544706d399a2b0b65d1ea2f6f">getRawDataPointer</a> () const noexcept</td></tr>
<tr class="memdesc:abad2570544706d399a2b0b65d1ea2f6f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns a pointer to the actual array data.  <a href="#abad2570544706d399a2b0b65d1ea2f6f">More...</a><br /></td></tr>
<tr class="separator:abad2570544706d399a2b0b65d1ea2f6f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a32aac83fe214508e442f1de390ff8e54"><td class="memItemLeft" align="right" valign="top">ObjectClass **&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classReferenceCountedArray.html#a32aac83fe214508e442f1de390ff8e54">begin</a> () const noexcept</td></tr>
<tr class="memdesc:a32aac83fe214508e442f1de390ff8e54"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns a pointer to the first element in the array.  <a href="#a32aac83fe214508e442f1de390ff8e54">More...</a><br /></td></tr>
<tr class="separator:a32aac83fe214508e442f1de390ff8e54"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a73c8d0ba66862dfe70e584c2efd41ccf"><td class="memItemLeft" align="right" valign="top">ObjectClass **&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classReferenceCountedArray.html#a73c8d0ba66862dfe70e584c2efd41ccf">end</a> () const noexcept</td></tr>
<tr class="memdesc:a73c8d0ba66862dfe70e584c2efd41ccf"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns a pointer to the element which follows the last element in the array.  <a href="#a73c8d0ba66862dfe70e584c2efd41ccf">More...</a><br /></td></tr>
<tr class="separator:a73c8d0ba66862dfe70e584c2efd41ccf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a034cad62a8ebb5854db4db2ff4afbf71"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classReferenceCountedArray.html#a034cad62a8ebb5854db4db2ff4afbf71">indexOf</a> (const ObjectClass *const objectToLookFor) const noexcept</td></tr>
<tr class="memdesc:a034cad62a8ebb5854db4db2ff4afbf71"><td class="mdescLeft">&#160;</td><td class="mdescRight">Finds the index of the first occurrence of an object in the array.  <a href="#a034cad62a8ebb5854db4db2ff4afbf71">More...</a><br /></td></tr>
<tr class="separator:a034cad62a8ebb5854db4db2ff4afbf71"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5660a4dab2e9765784f1c5af73d7c303"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classReferenceCountedArray.html#a5660a4dab2e9765784f1c5af73d7c303">contains</a> (const ObjectClass *const objectToLookFor) const noexcept</td></tr>
<tr class="memdesc:a5660a4dab2e9765784f1c5af73d7c303"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns true if the array contains a specified object.  <a href="#a5660a4dab2e9765784f1c5af73d7c303">More...</a><br /></td></tr>
<tr class="separator:a5660a4dab2e9765784f1c5af73d7c303"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a69c7478303bfab74a3fa16ff93a334a8"><td class="memItemLeft" align="right" valign="top">ObjectClass *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classReferenceCountedArray.html#a69c7478303bfab74a3fa16ff93a334a8">add</a> (ObjectClass *const newObject) noexcept</td></tr>
<tr class="memdesc:a69c7478303bfab74a3fa16ff93a334a8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Appends a new object to the end of the array.  <a href="#a69c7478303bfab74a3fa16ff93a334a8">More...</a><br /></td></tr>
<tr class="separator:a69c7478303bfab74a3fa16ff93a334a8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af565f8dbd67b0e2adb9e85af2256e720"><td class="memItemLeft" align="right" valign="top">ObjectClass *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classReferenceCountedArray.html#af565f8dbd67b0e2adb9e85af2256e720">insert</a> (int indexToInsertAt, ObjectClass *const newObject) noexcept</td></tr>
<tr class="memdesc:af565f8dbd67b0e2adb9e85af2256e720"><td class="mdescLeft">&#160;</td><td class="mdescRight">Inserts a new object into the array at the given index.  <a href="#af565f8dbd67b0e2adb9e85af2256e720">More...</a><br /></td></tr>
<tr class="separator:af565f8dbd67b0e2adb9e85af2256e720"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2d20205a78c1fa520d04d50a263c9f9b"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classReferenceCountedArray.html#a2d20205a78c1fa520d04d50a263c9f9b">addIfNotAlreadyThere</a> (ObjectClass *const newObject) noexcept</td></tr>
<tr class="memdesc:a2d20205a78c1fa520d04d50a263c9f9b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Appends a new object at the end of the array as long as the array doesn't already contain it.  <a href="#a2d20205a78c1fa520d04d50a263c9f9b">More...</a><br /></td></tr>
<tr class="separator:a2d20205a78c1fa520d04d50a263c9f9b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab091a80b766a24ba4915a10c1d71cd81"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classReferenceCountedArray.html#ab091a80b766a24ba4915a10c1d71cd81">set</a> (const int indexToChange, ObjectClass *const newObject)</td></tr>
<tr class="memdesc:ab091a80b766a24ba4915a10c1d71cd81"><td class="mdescLeft">&#160;</td><td class="mdescRight">Replaces an object in the array with a different one.  <a href="#ab091a80b766a24ba4915a10c1d71cd81">More...</a><br /></td></tr>
<tr class="separator:ab091a80b766a24ba4915a10c1d71cd81"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6e3aa5375dce143b69a467ad405c2867"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classReferenceCountedArray.html#a6e3aa5375dce143b69a467ad405c2867">addArray</a> (const <a class="el" href="classReferenceCountedArray.html">ReferenceCountedArray</a>&lt; ObjectClass, TypeOfCriticalSectionToUse &gt; &amp;arrayToAddFrom, int startIndex=0, int numElementsToAdd=-1) noexcept</td></tr>
<tr class="memdesc:a6e3aa5375dce143b69a467ad405c2867"><td class="mdescLeft">&#160;</td><td class="mdescRight">Adds elements from another array to the end of this array.  <a href="#a6e3aa5375dce143b69a467ad405c2867">More...</a><br /></td></tr>
<tr class="separator:a6e3aa5375dce143b69a467ad405c2867"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afb1a9958a818b6c410d79fc65b23432e"><td class="memTemplParams" colspan="2">template&lt;class ElementComparator &gt; </td></tr>
<tr class="memitem:afb1a9958a818b6c410d79fc65b23432e"><td class="memTemplItemLeft" align="right" valign="top">int&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classReferenceCountedArray.html#afb1a9958a818b6c410d79fc65b23432e">addSorted</a> (ElementComparator &amp;comparator, ObjectClass *newObject) noexcept</td></tr>
<tr class="memdesc:afb1a9958a818b6c410d79fc65b23432e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Inserts a new object into the array assuming that the array is sorted.  <a href="#afb1a9958a818b6c410d79fc65b23432e">More...</a><br /></td></tr>
<tr class="separator:afb1a9958a818b6c410d79fc65b23432e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae4d087d8723db7a39fb876d419d9f960"><td class="memTemplParams" colspan="2">template&lt;class ElementComparator &gt; </td></tr>
<tr class="memitem:ae4d087d8723db7a39fb876d419d9f960"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classReferenceCountedArray.html#ae4d087d8723db7a39fb876d419d9f960">addOrReplaceSorted</a> (ElementComparator &amp;comparator, ObjectClass *newObject) noexcept</td></tr>
<tr class="memdesc:ae4d087d8723db7a39fb876d419d9f960"><td class="mdescLeft">&#160;</td><td class="mdescRight">Inserts or replaces an object in the array, assuming it is sorted.  <a href="#ae4d087d8723db7a39fb876d419d9f960">More...</a><br /></td></tr>
<tr class="separator:ae4d087d8723db7a39fb876d419d9f960"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aba887431a64561282cdbabafe27e70e8"><td class="memTemplParams" colspan="2">template&lt;class ElementComparator &gt; </td></tr>
<tr class="memitem:aba887431a64561282cdbabafe27e70e8"><td class="memTemplItemLeft" align="right" valign="top">int&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classReferenceCountedArray.html#aba887431a64561282cdbabafe27e70e8">indexOfSorted</a> (ElementComparator &amp;comparator, const ObjectClass *const objectToLookFor) const noexcept</td></tr>
<tr class="memdesc:aba887431a64561282cdbabafe27e70e8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Finds the index of an object in the array, assuming that the array is sorted.  <a href="#aba887431a64561282cdbabafe27e70e8">More...</a><br /></td></tr>
<tr class="separator:aba887431a64561282cdbabafe27e70e8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aea193b7f41ffc381f1c12440f997ccdd"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classReferenceCountedArray.html#aea193b7f41ffc381f1c12440f997ccdd">remove</a> (const int indexToRemove)</td></tr>
<tr class="memdesc:aea193b7f41ffc381f1c12440f997ccdd"><td class="mdescLeft">&#160;</td><td class="mdescRight">Removes an object from the array.  <a href="#aea193b7f41ffc381f1c12440f997ccdd">More...</a><br /></td></tr>
<tr class="separator:aea193b7f41ffc381f1c12440f997ccdd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8fc0a717f91f4ff3b144f0224afdc5dd"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classReferenceCountedArray.html#a5aeb8e0e9bc7f0cb0f19237edf286f64">ObjectClassPtr</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classReferenceCountedArray.html#a8fc0a717f91f4ff3b144f0224afdc5dd">removeAndReturn</a> (const int indexToRemove)</td></tr>
<tr class="memdesc:a8fc0a717f91f4ff3b144f0224afdc5dd"><td class="mdescLeft">&#160;</td><td class="mdescRight">Removes and returns an object from the array.  <a href="#a8fc0a717f91f4ff3b144f0224afdc5dd">More...</a><br /></td></tr>
<tr class="separator:a8fc0a717f91f4ff3b144f0224afdc5dd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3413cc68e78418918d69bf7ae132c894"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classReferenceCountedArray.html#a3413cc68e78418918d69bf7ae132c894">removeObject</a> (ObjectClass *const objectToRemove)</td></tr>
<tr class="memdesc:a3413cc68e78418918d69bf7ae132c894"><td class="mdescLeft">&#160;</td><td class="mdescRight">Removes the first occurrence of a specified object from the array.  <a href="#a3413cc68e78418918d69bf7ae132c894">More...</a><br /></td></tr>
<tr class="separator:a3413cc68e78418918d69bf7ae132c894"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9430ab8bb81848ef46507d2ed2eb40c2"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classReferenceCountedArray.html#a9430ab8bb81848ef46507d2ed2eb40c2">removeRange</a> (const int startIndex, const int numberToRemove)</td></tr>
<tr class="memdesc:a9430ab8bb81848ef46507d2ed2eb40c2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Removes a range of objects from the array.  <a href="#a9430ab8bb81848ef46507d2ed2eb40c2">More...</a><br /></td></tr>
<tr class="separator:a9430ab8bb81848ef46507d2ed2eb40c2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2f2ff002f4ca7a7062b449ade2b61307"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classReferenceCountedArray.html#a2f2ff002f4ca7a7062b449ade2b61307">removeLast</a> (int howManyToRemove=1)</td></tr>
<tr class="memdesc:a2f2ff002f4ca7a7062b449ade2b61307"><td class="mdescLeft">&#160;</td><td class="mdescRight">Removes the last n objects from the array.  <a href="#a2f2ff002f4ca7a7062b449ade2b61307">More...</a><br /></td></tr>
<tr class="separator:a2f2ff002f4ca7a7062b449ade2b61307"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a53122fe07050eef2918538d0b4d90804"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classReferenceCountedArray.html#a53122fe07050eef2918538d0b4d90804">swap</a> (const int index1, const int index2) noexcept</td></tr>
<tr class="memdesc:a53122fe07050eef2918538d0b4d90804"><td class="mdescLeft">&#160;</td><td class="mdescRight">Swaps a pair of objects in the array.  <a href="#a53122fe07050eef2918538d0b4d90804">More...</a><br /></td></tr>
<tr class="separator:a53122fe07050eef2918538d0b4d90804"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acd40cae01b2a34720491bf4cd462ad80"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classReferenceCountedArray.html#acd40cae01b2a34720491bf4cd462ad80">move</a> (const int currentIndex, int newIndex) noexcept</td></tr>
<tr class="memdesc:acd40cae01b2a34720491bf4cd462ad80"><td class="mdescLeft">&#160;</td><td class="mdescRight">Moves one of the objects to a different position.  <a href="#acd40cae01b2a34720491bf4cd462ad80">More...</a><br /></td></tr>
<tr class="separator:acd40cae01b2a34720491bf4cd462ad80"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a68a378da68f47a73e0cf3a9e3673f64a"><td class="memTemplParams" colspan="2">template&lt;class OtherArrayType &gt; </td></tr>
<tr class="memitem:a68a378da68f47a73e0cf3a9e3673f64a"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classReferenceCountedArray.html#a68a378da68f47a73e0cf3a9e3673f64a">swapWith</a> (OtherArrayType &amp;otherArray) noexcept</td></tr>
<tr class="memdesc:a68a378da68f47a73e0cf3a9e3673f64a"><td class="mdescLeft">&#160;</td><td class="mdescRight">This swaps the contents of this array with those of another array.  <a href="#a68a378da68f47a73e0cf3a9e3673f64a">More...</a><br /></td></tr>
<tr class="separator:a68a378da68f47a73e0cf3a9e3673f64a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a16715eb28fe22682d87c33b02a6ed882"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classReferenceCountedArray.html#a16715eb28fe22682d87c33b02a6ed882">operator==</a> (const <a class="el" href="classReferenceCountedArray.html">ReferenceCountedArray</a> &amp;other) const noexcept</td></tr>
<tr class="memdesc:a16715eb28fe22682d87c33b02a6ed882"><td class="mdescLeft">&#160;</td><td class="mdescRight">Compares this array to another one.  <a href="#a16715eb28fe22682d87c33b02a6ed882">More...</a><br /></td></tr>
<tr class="separator:a16715eb28fe22682d87c33b02a6ed882"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a42ad63db85d37f3c649f21bf3b03a950"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classReferenceCountedArray.html#a42ad63db85d37f3c649f21bf3b03a950">operator!=</a> (const <a class="el" href="classReferenceCountedArray.html">ReferenceCountedArray</a>&lt; ObjectClass, TypeOfCriticalSectionToUse &gt; &amp;other) const noexcept</td></tr>
<tr class="memdesc:a42ad63db85d37f3c649f21bf3b03a950"><td class="mdescLeft">&#160;</td><td class="mdescRight">Compares this array to another one.  <a href="#a42ad63db85d37f3c649f21bf3b03a950">More...</a><br /></td></tr>
<tr class="separator:a42ad63db85d37f3c649f21bf3b03a950"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a51248166d0e546e8f6ba9f831a835a7a"><td class="memTemplParams" colspan="2">template&lt;class ElementComparator &gt; </td></tr>
<tr class="memitem:a51248166d0e546e8f6ba9f831a835a7a"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classReferenceCountedArray.html#a51248166d0e546e8f6ba9f831a835a7a">sort</a> (ElementComparator &amp;comparator, const bool retainOrderOfEquivalentItems=false) const noexcept</td></tr>
<tr class="memdesc:a51248166d0e546e8f6ba9f831a835a7a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sorts the elements in the array.  <a href="#a51248166d0e546e8f6ba9f831a835a7a">More...</a><br /></td></tr>
<tr class="separator:a51248166d0e546e8f6ba9f831a835a7a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad09860891de2b9faaa19e42b8007bca7"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classReferenceCountedArray.html#ad09860891de2b9faaa19e42b8007bca7">minimiseStorageOverheads</a> () noexcept</td></tr>
<tr class="memdesc:ad09860891de2b9faaa19e42b8007bca7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Reduces the amount of storage being used by the array.  <a href="#ad09860891de2b9faaa19e42b8007bca7">More...</a><br /></td></tr>
<tr class="separator:ad09860891de2b9faaa19e42b8007bca7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abf520344fa2d864f0f54809429a3bb3f"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classReferenceCountedArray.html#abf520344fa2d864f0f54809429a3bb3f">ensureStorageAllocated</a> (const int minNumElements)</td></tr>
<tr class="memdesc:abf520344fa2d864f0f54809429a3bb3f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Increases the array's internal storage to hold a minimum number of elements.  <a href="#abf520344fa2d864f0f54809429a3bb3f">More...</a><br /></td></tr>
<tr class="separator:abf520344fa2d864f0f54809429a3bb3f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa1ee427821c41587e15391bf7edc2b60"><td class="memItemLeft" align="right" valign="top">const TypeOfCriticalSectionToUse &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classReferenceCountedArray.html#aa1ee427821c41587e15391bf7edc2b60">getLock</a> () const noexcept</td></tr>
<tr class="memdesc:aa1ee427821c41587e15391bf7edc2b60"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the <a class="el" href="classCriticalSection.html" title="A re-entrant mutex. ">CriticalSection</a> that locks this array.  <a href="#aa1ee427821c41587e15391bf7edc2b60">More...</a><br /></td></tr>
<tr class="separator:aa1ee427821c41587e15391bf7edc2b60"><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 ObjectClass, class TypeOfCriticalSectionToUse = DummyCriticalSection&gt;<br />
class ReferenceCountedArray&lt; ObjectClass, TypeOfCriticalSectionToUse &gt;</h3>

<p>Holds a list of objects derived from <a class="el" href="classReferenceCountedObject.html" title="A base class which provides methods for reference-counting. ">ReferenceCountedObject</a>, or which implement basic reference-count handling methods. </p>
<p>The template parameter specifies the class of the object you want to point to - the easiest way to make a class reference-countable is to simply make it inherit from <a class="el" href="classReferenceCountedObject.html" title="A base class which provides methods for reference-counting. ">ReferenceCountedObject</a> or <a class="el" href="classSingleThreadedReferenceCountedObject.html" title="Adds reference-counting to an object. ">SingleThreadedReferenceCountedObject</a>, but if you need to, you can roll your own reference-countable class by implementing a set of methods called incReferenceCount(), decReferenceCount(), and decReferenceCountWithoutDeleting(). See <a class="el" href="classReferenceCountedObject.html" title="A base class which provides methods for reference-counting. ">ReferenceCountedObject</a> for examples of how these methods should behave.</p>
<p>A <a class="el" href="classReferenceCountedArray.html" title="Holds a list of objects derived from ReferenceCountedObject, or which implement basic reference-count...">ReferenceCountedArray</a> holds objects derived from <a class="el" href="classReferenceCountedObject.html" title="A base class which provides methods for reference-counting. ">ReferenceCountedObject</a>, and takes care of incrementing and decrementing their ref counts when they are added and removed from the array.</p>
<p>To make all the array's methods thread-safe, pass in "CriticalSection" as the templated TypeOfCriticalSectionToUse parameter, instead of the default <a class="el" href="classDummyCriticalSection.html" title="A class that can be used in place of a real CriticalSection object, but which doesn&#39;t perform any loc...">DummyCriticalSection</a>.</p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classArray.html" title="Holds a resizable array of primitive or copy-by-value objects. ">Array</a>, <a class="el" href="classOwnedArray.html" title="An array designed for holding objects. ">OwnedArray</a>, <a class="el" href="classStringArray.html" title="A special array for holding a list of strings. ">StringArray</a> </dd></dl>
</div><h2 class="groupheader">Member Typedef Documentation</h2>
<a id="a5aeb8e0e9bc7f0cb0f19237edf286f64"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5aeb8e0e9bc7f0cb0f19237edf286f64">&sect;&nbsp;</a></span>ObjectClassPtr</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class ObjectClass, class TypeOfCriticalSectionToUse = DummyCriticalSection&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">typedef <a class="el" href="classReferenceCountedObjectPtr.html">ReferenceCountedObjectPtr</a>&lt;ObjectClass&gt; <a class="el" href="classReferenceCountedArray.html">ReferenceCountedArray</a>&lt; ObjectClass, TypeOfCriticalSectionToUse &gt;::<a class="el" href="classReferenceCountedArray.html#a5aeb8e0e9bc7f0cb0f19237edf286f64">ObjectClassPtr</a></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a7298683e2cae9520f1b34a4d6679053d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7298683e2cae9520f1b34a4d6679053d">&sect;&nbsp;</a></span>ScopedLockType</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class ObjectClass, class TypeOfCriticalSectionToUse = DummyCriticalSection&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">typedef TypeOfCriticalSectionToUse::ScopedLockType <a class="el" href="classReferenceCountedArray.html">ReferenceCountedArray</a>&lt; ObjectClass, TypeOfCriticalSectionToUse &gt;::<a class="el" href="classReferenceCountedArray.html#a7298683e2cae9520f1b34a4d6679053d">ScopedLockType</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns the type of scoped lock to use for locking this array. </p>

</div>
</div>
<h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="a3026e9cca0a8b1d63751f3fbb930bf17"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3026e9cca0a8b1d63751f3fbb930bf17">&sect;&nbsp;</a></span>ReferenceCountedArray() <span class="overload">[1/3]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class ObjectClass, class TypeOfCriticalSectionToUse = DummyCriticalSection&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classReferenceCountedArray.html">ReferenceCountedArray</a>&lt; ObjectClass, TypeOfCriticalSectionToUse &gt;::<a class="el" href="classReferenceCountedArray.html">ReferenceCountedArray</a> </td>
          <td>(</td>
          <td class="paramname"></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">

<p>Creates an empty array. </p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classReferenceCountedObject.html" title="A base class which provides methods for reference-counting. ">ReferenceCountedObject</a>, <a class="el" href="classArray.html" title="Holds a resizable array of primitive or copy-by-value objects. ">Array</a>, <a class="el" href="classOwnedArray.html" title="An array designed for holding objects. ">OwnedArray</a> </dd></dl>

</div>
</div>
<a id="ace310eb210683601fd6aac301795111c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ace310eb210683601fd6aac301795111c">&sect;&nbsp;</a></span>ReferenceCountedArray() <span class="overload">[2/3]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class ObjectClass, class TypeOfCriticalSectionToUse = DummyCriticalSection&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classReferenceCountedArray.html">ReferenceCountedArray</a>&lt; ObjectClass, TypeOfCriticalSectionToUse &gt;::<a class="el" href="classReferenceCountedArray.html">ReferenceCountedArray</a> </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classReferenceCountedArray.html">ReferenceCountedArray</a>&lt; ObjectClass, TypeOfCriticalSectionToUse &gt; &amp;&#160;</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">

<p>Creates a copy of another array. </p>

</div>
</div>
<a id="a8966c5b4b7871123035f41fd4b7b530d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8966c5b4b7871123035f41fd4b7b530d">&sect;&nbsp;</a></span>ReferenceCountedArray() <span class="overload">[3/3]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class ObjectClass, class TypeOfCriticalSectionToUse = DummyCriticalSection&gt; </div>
<div class="memtemplate">
template&lt;class OtherObjectClass , class OtherCriticalSection &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classReferenceCountedArray.html">ReferenceCountedArray</a>&lt; ObjectClass, TypeOfCriticalSectionToUse &gt;::<a class="el" href="classReferenceCountedArray.html">ReferenceCountedArray</a> </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classReferenceCountedArray.html">ReferenceCountedArray</a>&lt; OtherObjectClass, OtherCriticalSection &gt; &amp;&#160;</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">

<p>Creates a copy of another array. </p>

</div>
</div>
<a id="a22c778cc2086117da5ac870485cb34e0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a22c778cc2086117da5ac870485cb34e0">&sect;&nbsp;</a></span>~ReferenceCountedArray()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class ObjectClass, class TypeOfCriticalSectionToUse = DummyCriticalSection&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classReferenceCountedArray.html">ReferenceCountedArray</a>&lt; ObjectClass, TypeOfCriticalSectionToUse &gt;::~<a class="el" href="classReferenceCountedArray.html">ReferenceCountedArray</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Destructor. </p>
<p>Any objects in the array will be released, and may be deleted if not referenced from elsewhere. </p>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="ab9fd36e38317591da957d13be587aeba"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab9fd36e38317591da957d13be587aeba">&sect;&nbsp;</a></span>operator=() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class ObjectClass, class TypeOfCriticalSectionToUse = DummyCriticalSection&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classReferenceCountedArray.html">ReferenceCountedArray</a>&amp; <a class="el" href="classReferenceCountedArray.html">ReferenceCountedArray</a>&lt; ObjectClass, TypeOfCriticalSectionToUse &gt;::operator= </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classReferenceCountedArray.html">ReferenceCountedArray</a>&lt; ObjectClass, TypeOfCriticalSectionToUse &gt; &amp;&#160;</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">

<p>Copies another array into this one. </p>
<p>Any existing objects in this array will first be released. </p>

</div>
</div>
<a id="af2ed6c93d85a8254447cd4289fef7caf"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af2ed6c93d85a8254447cd4289fef7caf">&sect;&nbsp;</a></span>operator=() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class ObjectClass, class TypeOfCriticalSectionToUse = DummyCriticalSection&gt; </div>
<div class="memtemplate">
template&lt;class OtherObjectClass &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classReferenceCountedArray.html">ReferenceCountedArray</a>&lt;ObjectClass, TypeOfCriticalSectionToUse&gt;&amp; <a class="el" href="classReferenceCountedArray.html">ReferenceCountedArray</a>&lt; ObjectClass, TypeOfCriticalSectionToUse &gt;::operator= </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classReferenceCountedArray.html">ReferenceCountedArray</a>&lt; OtherObjectClass, TypeOfCriticalSectionToUse &gt; &amp;&#160;</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">

<p>Copies another array into this one. </p>
<p>Any existing objects in this array will first be released. </p>

</div>
</div>
<a id="a6dc6a1c3540a6f30456db545edb0486d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6dc6a1c3540a6f30456db545edb0486d">&sect;&nbsp;</a></span>clear()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class ObjectClass, class TypeOfCriticalSectionToUse = DummyCriticalSection&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classReferenceCountedArray.html">ReferenceCountedArray</a>&lt; ObjectClass, TypeOfCriticalSectionToUse &gt;::clear </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Removes all objects from the array. </p>
<p>Any objects in the array that whose reference counts drop to zero will be deleted. </p>

</div>
</div>
<a id="ad5a34e648c3dfc01493ca92838835bd1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad5a34e648c3dfc01493ca92838835bd1">&sect;&nbsp;</a></span>clearQuick()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class ObjectClass, class TypeOfCriticalSectionToUse = DummyCriticalSection&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classReferenceCountedArray.html">ReferenceCountedArray</a>&lt; ObjectClass, TypeOfCriticalSectionToUse &gt;::clearQuick </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Removes all objects from the array without freeing the array's allocated storage. </p>
<p>Any objects in the array that whose reference counts drop to zero will be deleted. </p><dl class="section see"><dt>See also</dt><dd><a class="el" href="classReferenceCountedArray.html#a6dc6a1c3540a6f30456db545edb0486d" title="Removes all objects from the array. ">clear</a> </dd></dl>

</div>
</div>
<a id="ad4865c477b65f161105ded613856de64"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad4865c477b65f161105ded613856de64">&sect;&nbsp;</a></span>size()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class ObjectClass, class TypeOfCriticalSectionToUse = DummyCriticalSection&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="classReferenceCountedArray.html">ReferenceCountedArray</a>&lt; ObjectClass, TypeOfCriticalSectionToUse &gt;::size </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 current number of objects in the array. </p>

<p>Referenced by <a class="el" href="classReferenceCountedArray.html#a6e3aa5375dce143b69a467ad405c2867">ReferenceCountedArray&lt; AudioProcessorGraph::Node &gt;::addArray()</a>, and <a class="el" href="classReferenceCountedArray.html#ab1807aa4c5b58b6d02b6bb991ebd8715">ReferenceCountedArray&lt; AudioProcessorGraph::Node &gt;::isEmpty()</a>.</p>

</div>
</div>
<a id="ab1807aa4c5b58b6d02b6bb991ebd8715"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab1807aa4c5b58b6d02b6bb991ebd8715">&sect;&nbsp;</a></span>isEmpty()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class ObjectClass, class TypeOfCriticalSectionToUse = DummyCriticalSection&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool <a class="el" href="classReferenceCountedArray.html">ReferenceCountedArray</a>&lt; ObjectClass, TypeOfCriticalSectionToUse &gt;::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>Returns true if the array is empty, false otherwise. </p>

</div>
</div>
<a id="a28d5adcb50aff95ba86562c42718d39f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a28d5adcb50aff95ba86562c42718d39f">&sect;&nbsp;</a></span>operator[]()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class ObjectClass, class TypeOfCriticalSectionToUse = DummyCriticalSection&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classReferenceCountedArray.html#a5aeb8e0e9bc7f0cb0f19237edf286f64">ObjectClassPtr</a> <a class="el" href="classReferenceCountedArray.html">ReferenceCountedArray</a>&lt; ObjectClass, TypeOfCriticalSectionToUse &gt;::operator[] </td>
          <td>(</td>
          <td class="paramtype">const int&#160;</td>
          <td class="paramname"><em>index</em></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 a pointer to the object at this index in the array. </p>
<p>If the index is out-of-range, this will return a null pointer, (and it could be null anyway, because it's ok for the array to hold null pointers as well as objects).</p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classReferenceCountedArray.html#a2f89994333ed33a20efc36e216939c58" title="Returns a pointer to the object at this index in the array, without checking whether the index is in-...">getUnchecked</a> </dd></dl>

</div>
</div>
<a id="a2f89994333ed33a20efc36e216939c58"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2f89994333ed33a20efc36e216939c58">&sect;&nbsp;</a></span>getUnchecked()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class ObjectClass, class TypeOfCriticalSectionToUse = DummyCriticalSection&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classReferenceCountedArray.html#a5aeb8e0e9bc7f0cb0f19237edf286f64">ObjectClassPtr</a> <a class="el" href="classReferenceCountedArray.html">ReferenceCountedArray</a>&lt; ObjectClass, TypeOfCriticalSectionToUse &gt;::getUnchecked </td>
          <td>(</td>
          <td class="paramtype">const int&#160;</td>
          <td class="paramname"><em>index</em></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 a pointer to the object at this index in the array, without checking whether the index is in-range. </p>
<p>This is a faster and less safe version of operator[] which doesn't check the index passed in, so it can be used when you're sure the index is always going to be legal. </p>

<p>Referenced by <a class="el" href="classReferenceCountedArray.html#a6e3aa5375dce143b69a467ad405c2867">ReferenceCountedArray&lt; AudioProcessorGraph::Node &gt;::addArray()</a>.</p>

</div>
</div>
<a id="ac9c63ba3ddc186c6e9fb0c3c97d1eb57"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac9c63ba3ddc186c6e9fb0c3c97d1eb57">&sect;&nbsp;</a></span>getObjectPointer()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class ObjectClass, class TypeOfCriticalSectionToUse = DummyCriticalSection&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">ObjectClass* <a class="el" href="classReferenceCountedArray.html">ReferenceCountedArray</a>&lt; ObjectClass, TypeOfCriticalSectionToUse &gt;::getObjectPointer </td>
          <td>(</td>
          <td class="paramtype">const int&#160;</td>
          <td class="paramname"><em>index</em></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 a raw pointer to the object at this index in the array. </p>
<p>If the index is out-of-range, this will return a null pointer, (and it could be null anyway, because it's ok for the array to hold null pointers as well as objects).</p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classReferenceCountedArray.html#a2f89994333ed33a20efc36e216939c58" title="Returns a pointer to the object at this index in the array, without checking whether the index is in-...">getUnchecked</a> </dd></dl>

<p>Referenced by <a class="el" href="classReferenceCountedArray.html#a28d5adcb50aff95ba86562c42718d39f">ReferenceCountedArray&lt; AudioProcessorGraph::Node &gt;::operator[]()</a>.</p>

</div>
</div>
<a id="a8da693cf7dedfda5bb8a8e7331c4bf1f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8da693cf7dedfda5bb8a8e7331c4bf1f">&sect;&nbsp;</a></span>getObjectPointerUnchecked()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class ObjectClass, class TypeOfCriticalSectionToUse = DummyCriticalSection&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">ObjectClass* <a class="el" href="classReferenceCountedArray.html">ReferenceCountedArray</a>&lt; ObjectClass, TypeOfCriticalSectionToUse &gt;::getObjectPointerUnchecked </td>
          <td>(</td>
          <td class="paramtype">const int&#160;</td>
          <td class="paramname"><em>index</em></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 a raw pointer to the object at this index in the array, without checking whether the index is in-range. </p>

<p>Referenced by <a class="el" href="classReferenceCountedArray.html#a2f89994333ed33a20efc36e216939c58">ReferenceCountedArray&lt; AudioProcessorGraph::Node &gt;::getUnchecked()</a>.</p>

</div>
</div>
<a id="ab352b571e4ee02eedad655bba6434725"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab352b571e4ee02eedad655bba6434725">&sect;&nbsp;</a></span>getFirst()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class ObjectClass, class TypeOfCriticalSectionToUse = DummyCriticalSection&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classReferenceCountedArray.html#a5aeb8e0e9bc7f0cb0f19237edf286f64">ObjectClassPtr</a> <a class="el" href="classReferenceCountedArray.html">ReferenceCountedArray</a>&lt; ObjectClass, TypeOfCriticalSectionToUse &gt;::getFirst </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 a pointer to the first object in the array. </p>
<p>This will return a null pointer if the array's empty. </p><dl class="section see"><dt>See also</dt><dd><a class="el" href="classReferenceCountedArray.html#a906fbb190a57a893faa951949b93418b" title="Returns a pointer to the last object in the array. ">getLast</a> </dd></dl>

</div>
</div>
<a id="a906fbb190a57a893faa951949b93418b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a906fbb190a57a893faa951949b93418b">&sect;&nbsp;</a></span>getLast()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class ObjectClass, class TypeOfCriticalSectionToUse = DummyCriticalSection&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classReferenceCountedArray.html#a5aeb8e0e9bc7f0cb0f19237edf286f64">ObjectClassPtr</a> <a class="el" href="classReferenceCountedArray.html">ReferenceCountedArray</a>&lt; ObjectClass, TypeOfCriticalSectionToUse &gt;::getLast </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 a pointer to the last object in the array. </p>
<p>This will return a null pointer if the array's empty. </p><dl class="section see"><dt>See also</dt><dd><a class="el" href="classReferenceCountedArray.html#ab352b571e4ee02eedad655bba6434725" title="Returns a pointer to the first object in the array. ">getFirst</a> </dd></dl>

</div>
</div>
<a id="abad2570544706d399a2b0b65d1ea2f6f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abad2570544706d399a2b0b65d1ea2f6f">&sect;&nbsp;</a></span>getRawDataPointer()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class ObjectClass, class TypeOfCriticalSectionToUse = DummyCriticalSection&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">ObjectClass** <a class="el" href="classReferenceCountedArray.html">ReferenceCountedArray</a>&lt; ObjectClass, TypeOfCriticalSectionToUse &gt;::getRawDataPointer </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 a pointer to the actual array data. </p>
<p>This pointer will only be valid until the next time a non-const method is called on the array. </p>

</div>
</div>
<a id="a32aac83fe214508e442f1de390ff8e54"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a32aac83fe214508e442f1de390ff8e54">&sect;&nbsp;</a></span>begin()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class ObjectClass, class TypeOfCriticalSectionToUse = DummyCriticalSection&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">ObjectClass** <a class="el" href="classReferenceCountedArray.html">ReferenceCountedArray</a>&lt; ObjectClass, TypeOfCriticalSectionToUse &gt;::begin </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 a pointer to the first element in the array. </p>
<p>This method is provided for compatibility with standard C++ iteration mechanisms. </p>

</div>
</div>
<a id="a73c8d0ba66862dfe70e584c2efd41ccf"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a73c8d0ba66862dfe70e584c2efd41ccf">&sect;&nbsp;</a></span>end()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class ObjectClass, class TypeOfCriticalSectionToUse = DummyCriticalSection&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">ObjectClass** <a class="el" href="classReferenceCountedArray.html">ReferenceCountedArray</a>&lt; ObjectClass, TypeOfCriticalSectionToUse &gt;::end </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 a pointer to the element which follows the last element in the array. </p>
<p>This method is provided for compatibility with standard C++ iteration mechanisms. </p>

</div>
</div>
<a id="a034cad62a8ebb5854db4db2ff4afbf71"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a034cad62a8ebb5854db4db2ff4afbf71">&sect;&nbsp;</a></span>indexOf()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class ObjectClass, class TypeOfCriticalSectionToUse = DummyCriticalSection&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="classReferenceCountedArray.html">ReferenceCountedArray</a>&lt; ObjectClass, TypeOfCriticalSectionToUse &gt;::indexOf </td>
          <td>(</td>
          <td class="paramtype">const ObjectClass *const&#160;</td>
          <td class="paramname"><em>objectToLookFor</em></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>Finds the index of the first occurrence of an object in the array. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">objectToLookFor</td><td>the object to look for </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the index at which the object was found, or -1 if it's not found </dd></dl>

<p>Referenced by <a class="el" href="classReferenceCountedArray.html#a3413cc68e78418918d69bf7ae132c894">ReferenceCountedArray&lt; AudioProcessorGraph::Node &gt;::removeObject()</a>.</p>

</div>
</div>
<a id="a5660a4dab2e9765784f1c5af73d7c303"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5660a4dab2e9765784f1c5af73d7c303">&sect;&nbsp;</a></span>contains()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class ObjectClass, class TypeOfCriticalSectionToUse = DummyCriticalSection&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool <a class="el" href="classReferenceCountedArray.html">ReferenceCountedArray</a>&lt; ObjectClass, TypeOfCriticalSectionToUse &gt;::contains </td>
          <td>(</td>
          <td class="paramtype">const ObjectClass *const&#160;</td>
          <td class="paramname"><em>objectToLookFor</em></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 true if the array contains a specified object. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">objectToLookFor</td><td>the object to look for </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>true if the object is in the array </dd></dl>

<p>Referenced by <a class="el" href="classReferenceCountedArray.html#a2d20205a78c1fa520d04d50a263c9f9b">ReferenceCountedArray&lt; AudioProcessorGraph::Node &gt;::addIfNotAlreadyThere()</a>.</p>

</div>
</div>
<a id="a69c7478303bfab74a3fa16ff93a334a8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a69c7478303bfab74a3fa16ff93a334a8">&sect;&nbsp;</a></span>add()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class ObjectClass, class TypeOfCriticalSectionToUse = DummyCriticalSection&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">ObjectClass* <a class="el" href="classReferenceCountedArray.html">ReferenceCountedArray</a>&lt; ObjectClass, TypeOfCriticalSectionToUse &gt;::add </td>
          <td>(</td>
          <td class="paramtype">ObjectClass *const&#160;</td>
          <td class="paramname"><em>newObject</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">

<p>Appends a new object to the end of the array. </p>
<p>This will increase the new object's reference count.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">newObject</td><td>the new object to add to the array </td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classReferenceCountedArray.html#ab091a80b766a24ba4915a10c1d71cd81" title="Replaces an object in the array with a different one. ">set</a>, <a class="el" href="classReferenceCountedArray.html#af565f8dbd67b0e2adb9e85af2256e720" title="Inserts a new object into the array at the given index. ">insert</a>, <a class="el" href="classReferenceCountedArray.html#a2d20205a78c1fa520d04d50a263c9f9b" title="Appends a new object at the end of the array as long as the array doesn&#39;t already contain it...">addIfNotAlreadyThere</a>, <a class="el" href="classReferenceCountedArray.html#afb1a9958a818b6c410d79fc65b23432e" title="Inserts a new object into the array assuming that the array is sorted. ">addSorted</a>, <a class="el" href="classReferenceCountedArray.html#a6e3aa5375dce143b69a467ad405c2867" title="Adds elements from another array to the end of this array. ">addArray</a> </dd></dl>

<p>Referenced by <a class="el" href="classReferenceCountedArray.html#a6e3aa5375dce143b69a467ad405c2867">ReferenceCountedArray&lt; AudioProcessorGraph::Node &gt;::addArray()</a>, <a class="el" href="classReferenceCountedArray.html#a2d20205a78c1fa520d04d50a263c9f9b">ReferenceCountedArray&lt; AudioProcessorGraph::Node &gt;::addIfNotAlreadyThere()</a>, and <a class="el" href="classReferenceCountedArray.html#af565f8dbd67b0e2adb9e85af2256e720">ReferenceCountedArray&lt; AudioProcessorGraph::Node &gt;::insert()</a>.</p>

</div>
</div>
<a id="af565f8dbd67b0e2adb9e85af2256e720"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af565f8dbd67b0e2adb9e85af2256e720">&sect;&nbsp;</a></span>insert()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class ObjectClass, class TypeOfCriticalSectionToUse = DummyCriticalSection&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">ObjectClass* <a class="el" href="classReferenceCountedArray.html">ReferenceCountedArray</a>&lt; ObjectClass, TypeOfCriticalSectionToUse &gt;::insert </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>indexToInsertAt</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">ObjectClass *const&#160;</td>
          <td class="paramname"><em>newObject</em>&#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">noexcept</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Inserts a new object into the array at the given index. </p>
<p>If the index is less than 0 or greater than the size of the array, the element will be added to the end of the array. Otherwise, it will be inserted into the array, moving all the later elements along to make room.</p>
<p>This will increase the new object's reference count.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">indexToInsertAt</td><td>the index at which the new element should be inserted </td></tr>
    <tr><td class="paramname">newObject</td><td>the new object to add to the array </td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classReferenceCountedArray.html#a69c7478303bfab74a3fa16ff93a334a8" title="Appends a new object to the end of the array. ">add</a>, <a class="el" href="classReferenceCountedArray.html#afb1a9958a818b6c410d79fc65b23432e" title="Inserts a new object into the array assuming that the array is sorted. ">addSorted</a>, <a class="el" href="classReferenceCountedArray.html#a2d20205a78c1fa520d04d50a263c9f9b" title="Appends a new object at the end of the array as long as the array doesn&#39;t already contain it...">addIfNotAlreadyThere</a>, <a class="el" href="classReferenceCountedArray.html#ab091a80b766a24ba4915a10c1d71cd81" title="Replaces an object in the array with a different one. ">set</a> </dd></dl>

</div>
</div>
<a id="a2d20205a78c1fa520d04d50a263c9f9b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2d20205a78c1fa520d04d50a263c9f9b">&sect;&nbsp;</a></span>addIfNotAlreadyThere()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class ObjectClass, class TypeOfCriticalSectionToUse = DummyCriticalSection&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool <a class="el" href="classReferenceCountedArray.html">ReferenceCountedArray</a>&lt; ObjectClass, TypeOfCriticalSectionToUse &gt;::addIfNotAlreadyThere </td>
          <td>(</td>
          <td class="paramtype">ObjectClass *const&#160;</td>
          <td class="paramname"><em>newObject</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">

<p>Appends a new object at the end of the array as long as the array doesn't already contain it. </p>
<p>If the array already contains a matching object, nothing will be done.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">newObject</td><td>the new object to add to the array </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>true if the object has been added, false otherwise </dd></dl>

</div>
</div>
<a id="ab091a80b766a24ba4915a10c1d71cd81"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab091a80b766a24ba4915a10c1d71cd81">&sect;&nbsp;</a></span>set()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class ObjectClass, class TypeOfCriticalSectionToUse = DummyCriticalSection&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classReferenceCountedArray.html">ReferenceCountedArray</a>&lt; ObjectClass, TypeOfCriticalSectionToUse &gt;::set </td>
          <td>(</td>
          <td class="paramtype">const int&#160;</td>
          <td class="paramname"><em>indexToChange</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">ObjectClass *const&#160;</td>
          <td class="paramname"><em>newObject</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Replaces an object in the array with a different one. </p>
<p>If the index is less than zero, this method does nothing. If the index is beyond the end of the array, the new object is added to the end of the array.</p>
<p>The object being added has its reference count increased, and if it's replacing another object, then that one has its reference count decreased, and may be deleted.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">indexToChange</td><td>the index whose value you want to change </td></tr>
    <tr><td class="paramname">newObject</td><td>the new value to set for this index. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classReferenceCountedArray.html#a69c7478303bfab74a3fa16ff93a334a8" title="Appends a new object to the end of the array. ">add</a>, <a class="el" href="classReferenceCountedArray.html#af565f8dbd67b0e2adb9e85af2256e720" title="Inserts a new object into the array at the given index. ">insert</a>, <a class="el" href="classReferenceCountedArray.html#aea193b7f41ffc381f1c12440f997ccdd" title="Removes an object from the array. ">remove</a> </dd></dl>

</div>
</div>
<a id="a6e3aa5375dce143b69a467ad405c2867"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6e3aa5375dce143b69a467ad405c2867">&sect;&nbsp;</a></span>addArray()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class ObjectClass, class TypeOfCriticalSectionToUse = DummyCriticalSection&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classReferenceCountedArray.html">ReferenceCountedArray</a>&lt; ObjectClass, TypeOfCriticalSectionToUse &gt;::addArray </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classReferenceCountedArray.html">ReferenceCountedArray</a>&lt; ObjectClass, TypeOfCriticalSectionToUse &gt; &amp;&#160;</td>
          <td class="paramname"><em>arrayToAddFrom</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>startIndex</em> = <code>0</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>numElementsToAdd</em> = <code>-1</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">noexcept</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Adds elements from another array to the end of this array. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">arrayToAddFrom</td><td>the array from which to copy the elements </td></tr>
    <tr><td class="paramname">startIndex</td><td>the first element of the other array to start copying from </td></tr>
    <tr><td class="paramname">numElementsToAdd</td><td>how many elements to add from the other array. If this value is negative or greater than the number of available elements, all available elements will be copied. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classReferenceCountedArray.html#a69c7478303bfab74a3fa16ff93a334a8" title="Appends a new object to the end of the array. ">add</a> </dd></dl>

</div>
</div>
<a id="afb1a9958a818b6c410d79fc65b23432e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afb1a9958a818b6c410d79fc65b23432e">&sect;&nbsp;</a></span>addSorted()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class ObjectClass, class TypeOfCriticalSectionToUse = DummyCriticalSection&gt; </div>
<div class="memtemplate">
template&lt;class ElementComparator &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="classReferenceCountedArray.html">ReferenceCountedArray</a>&lt; ObjectClass, TypeOfCriticalSectionToUse &gt;::addSorted </td>
          <td>(</td>
          <td class="paramtype">ElementComparator &amp;&#160;</td>
          <td class="paramname"><em>comparator</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">ObjectClass *&#160;</td>
          <td class="paramname"><em>newObject</em>&#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">noexcept</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Inserts a new object into the array assuming that the array is sorted. </p>
<p>This will use a comparator to find the position at which the new object should go. If the array isn't sorted, the behaviour of this method will be unpredictable.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">comparator</td><td>the comparator object to use to compare the elements - see the <a class="el" href="classReferenceCountedArray.html#a51248166d0e546e8f6ba9f831a835a7a" title="Sorts the elements in the array. ">sort()</a> method for details about this object's form </td></tr>
    <tr><td class="paramname">newObject</td><td>the new object to insert to the array </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the index at which the new object was added </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classReferenceCountedArray.html#a69c7478303bfab74a3fa16ff93a334a8" title="Appends a new object to the end of the array. ">add</a>, <a class="el" href="classReferenceCountedArray.html#a51248166d0e546e8f6ba9f831a835a7a" title="Sorts the elements in the array. ">sort</a> </dd></dl>

</div>
</div>
<a id="ae4d087d8723db7a39fb876d419d9f960"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae4d087d8723db7a39fb876d419d9f960">&sect;&nbsp;</a></span>addOrReplaceSorted()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class ObjectClass, class TypeOfCriticalSectionToUse = DummyCriticalSection&gt; </div>
<div class="memtemplate">
template&lt;class ElementComparator &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classReferenceCountedArray.html">ReferenceCountedArray</a>&lt; ObjectClass, TypeOfCriticalSectionToUse &gt;::addOrReplaceSorted </td>
          <td>(</td>
          <td class="paramtype">ElementComparator &amp;&#160;</td>
          <td class="paramname"><em>comparator</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">ObjectClass *&#160;</td>
          <td class="paramname"><em>newObject</em>&#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">noexcept</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Inserts or replaces an object in the array, assuming it is sorted. </p>
<p>This is similar to addSorted, but if a matching element already exists, then it will be replaced by the new one, rather than the new one being added as well. </p>

</div>
</div>
<a id="aba887431a64561282cdbabafe27e70e8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aba887431a64561282cdbabafe27e70e8">&sect;&nbsp;</a></span>indexOfSorted()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class ObjectClass, class TypeOfCriticalSectionToUse = DummyCriticalSection&gt; </div>
<div class="memtemplate">
template&lt;class ElementComparator &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="classReferenceCountedArray.html">ReferenceCountedArray</a>&lt; ObjectClass, TypeOfCriticalSectionToUse &gt;::indexOfSorted </td>
          <td>(</td>
          <td class="paramtype">ElementComparator &amp;&#160;</td>
          <td class="paramname"><em>comparator</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const ObjectClass *const&#160;</td>
          <td class="paramname"><em>objectToLookFor</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</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>Finds the index of an object in the array, assuming that the array is sorted. </p>
<p>This will use a comparator to do a binary-chop to find the index of the given element, if it exists. If the array isn't sorted, the behaviour of this method will be unpredictable.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">comparator</td><td>the comparator to use to compare the elements - see the <a class="el" href="classReferenceCountedArray.html#a51248166d0e546e8f6ba9f831a835a7a" title="Sorts the elements in the array. ">sort()</a> method for details about the form this object should take </td></tr>
    <tr><td class="paramname">objectToLookFor</td><td>the object to search for </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the index of the element, or -1 if it's not found </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classReferenceCountedArray.html#afb1a9958a818b6c410d79fc65b23432e" title="Inserts a new object into the array assuming that the array is sorted. ">addSorted</a>, <a class="el" href="classReferenceCountedArray.html#a51248166d0e546e8f6ba9f831a835a7a" title="Sorts the elements in the array. ">sort</a> </dd></dl>

</div>
</div>
<a id="aea193b7f41ffc381f1c12440f997ccdd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aea193b7f41ffc381f1c12440f997ccdd">&sect;&nbsp;</a></span>remove()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class ObjectClass, class TypeOfCriticalSectionToUse = DummyCriticalSection&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classReferenceCountedArray.html">ReferenceCountedArray</a>&lt; ObjectClass, TypeOfCriticalSectionToUse &gt;::remove </td>
          <td>(</td>
          <td class="paramtype">const int&#160;</td>
          <td class="paramname"><em>indexToRemove</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Removes an object from the array. </p>
<p>This will remove the object at a given index and move back all the subsequent objects to close the gap.</p>
<p>If the index passed in is out-of-range, nothing will happen.</p>
<p>The object that is removed will have its reference count decreased, and may be deleted if not referenced from elsewhere.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">indexToRemove</td><td>the index of the element to remove </td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classReferenceCountedArray.html#a3413cc68e78418918d69bf7ae132c894" title="Removes the first occurrence of a specified object from the array. ">removeObject</a>, <a class="el" href="classReferenceCountedArray.html#a9430ab8bb81848ef46507d2ed2eb40c2" title="Removes a range of objects from the array. ">removeRange</a> </dd></dl>

</div>
</div>
<a id="a8fc0a717f91f4ff3b144f0224afdc5dd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8fc0a717f91f4ff3b144f0224afdc5dd">&sect;&nbsp;</a></span>removeAndReturn()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class ObjectClass, class TypeOfCriticalSectionToUse = DummyCriticalSection&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classReferenceCountedArray.html#a5aeb8e0e9bc7f0cb0f19237edf286f64">ObjectClassPtr</a> <a class="el" href="classReferenceCountedArray.html">ReferenceCountedArray</a>&lt; ObjectClass, TypeOfCriticalSectionToUse &gt;::removeAndReturn </td>
          <td>(</td>
          <td class="paramtype">const int&#160;</td>
          <td class="paramname"><em>indexToRemove</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Removes and returns an object from the array. </p>
<p>This will remove the object at a given index and return it, moving back all the subsequent objects to close the gap. If the index passed in is out-of-range, nothing will happen and a null pointer will be returned.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">indexToRemove</td><td>the index of the element to remove </td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classReferenceCountedArray.html#aea193b7f41ffc381f1c12440f997ccdd" title="Removes an object from the array. ">remove</a>, <a class="el" href="classReferenceCountedArray.html#a3413cc68e78418918d69bf7ae132c894" title="Removes the first occurrence of a specified object from the array. ">removeObject</a>, <a class="el" href="classReferenceCountedArray.html#a9430ab8bb81848ef46507d2ed2eb40c2" title="Removes a range of objects from the array. ">removeRange</a> </dd></dl>

</div>
</div>
<a id="a3413cc68e78418918d69bf7ae132c894"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3413cc68e78418918d69bf7ae132c894">&sect;&nbsp;</a></span>removeObject()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class ObjectClass, class TypeOfCriticalSectionToUse = DummyCriticalSection&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classReferenceCountedArray.html">ReferenceCountedArray</a>&lt; ObjectClass, TypeOfCriticalSectionToUse &gt;::removeObject </td>
          <td>(</td>
          <td class="paramtype">ObjectClass *const&#160;</td>
          <td class="paramname"><em>objectToRemove</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Removes the first occurrence of a specified object from the array. </p>
<p>If the item isn't found, no action is taken. If it is found, it is removed and has its reference count decreased.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">objectToRemove</td><td>the object to try to remove </td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classReferenceCountedArray.html#aea193b7f41ffc381f1c12440f997ccdd" title="Removes an object from the array. ">remove</a>, <a class="el" href="classReferenceCountedArray.html#a9430ab8bb81848ef46507d2ed2eb40c2" title="Removes a range of objects from the array. ">removeRange</a> </dd></dl>

</div>
</div>
<a id="a9430ab8bb81848ef46507d2ed2eb40c2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9430ab8bb81848ef46507d2ed2eb40c2">&sect;&nbsp;</a></span>removeRange()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class ObjectClass, class TypeOfCriticalSectionToUse = DummyCriticalSection&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classReferenceCountedArray.html">ReferenceCountedArray</a>&lt; ObjectClass, TypeOfCriticalSectionToUse &gt;::removeRange </td>
          <td>(</td>
          <td class="paramtype">const int&#160;</td>
          <td class="paramname"><em>startIndex</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const int&#160;</td>
          <td class="paramname"><em>numberToRemove</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Removes a range of objects from the array. </p>
<p>This will remove a set of objects, starting from the given index, and move any subsequent elements down to close the gap.</p>
<p>If the range extends beyond the bounds of the array, it will be safely clipped to the size of the array.</p>
<p>The objects that are removed will have their reference counts decreased, and may be deleted if not referenced from elsewhere.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">startIndex</td><td>the index of the first object to remove </td></tr>
    <tr><td class="paramname">numberToRemove</td><td>how many objects should be removed </td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classReferenceCountedArray.html#aea193b7f41ffc381f1c12440f997ccdd" title="Removes an object from the array. ">remove</a>, <a class="el" href="classReferenceCountedArray.html#a3413cc68e78418918d69bf7ae132c894" title="Removes the first occurrence of a specified object from the array. ">removeObject</a> </dd></dl>

</div>
</div>
<a id="a2f2ff002f4ca7a7062b449ade2b61307"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2f2ff002f4ca7a7062b449ade2b61307">&sect;&nbsp;</a></span>removeLast()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class ObjectClass, class TypeOfCriticalSectionToUse = DummyCriticalSection&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classReferenceCountedArray.html">ReferenceCountedArray</a>&lt; ObjectClass, TypeOfCriticalSectionToUse &gt;::removeLast </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>howManyToRemove</em> = <code>1</code></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Removes the last n objects from the array. </p>
<p>The objects that are removed will have their reference counts decreased, and may be deleted if not referenced from elsewhere.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">howManyToRemove</td><td>how many objects to remove from the end of the array </td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classReferenceCountedArray.html#aea193b7f41ffc381f1c12440f997ccdd" title="Removes an object from the array. ">remove</a>, <a class="el" href="classReferenceCountedArray.html#a3413cc68e78418918d69bf7ae132c894" title="Removes the first occurrence of a specified object from the array. ">removeObject</a>, <a class="el" href="classReferenceCountedArray.html#a9430ab8bb81848ef46507d2ed2eb40c2" title="Removes a range of objects from the array. ">removeRange</a> </dd></dl>

</div>
</div>
<a id="a53122fe07050eef2918538d0b4d90804"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a53122fe07050eef2918538d0b4d90804">&sect;&nbsp;</a></span>swap()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class ObjectClass, class TypeOfCriticalSectionToUse = DummyCriticalSection&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classReferenceCountedArray.html">ReferenceCountedArray</a>&lt; ObjectClass, TypeOfCriticalSectionToUse &gt;::swap </td>
          <td>(</td>
          <td class="paramtype">const int&#160;</td>
          <td class="paramname"><em>index1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const int&#160;</td>
          <td class="paramname"><em>index2</em>&#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">noexcept</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Swaps a pair of objects in the array. </p>
<p>If either of the indexes passed in is out-of-range, nothing will happen, otherwise the two objects at these positions will be exchanged. </p>

</div>
</div>
<a id="acd40cae01b2a34720491bf4cd462ad80"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acd40cae01b2a34720491bf4cd462ad80">&sect;&nbsp;</a></span>move()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class ObjectClass, class TypeOfCriticalSectionToUse = DummyCriticalSection&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classReferenceCountedArray.html">ReferenceCountedArray</a>&lt; ObjectClass, TypeOfCriticalSectionToUse &gt;::move </td>
          <td>(</td>
          <td class="paramtype">const int&#160;</td>
          <td class="paramname"><em>currentIndex</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>newIndex</em>&#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">noexcept</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Moves one of the objects to a different position. </p>
<p>This will move the object to a specified index, shuffling along any intervening elements as required.</p>
<p>So for example, if you have the array { 0, 1, 2, 3, 4, 5 } then calling move (2, 4) would result in { 0, 1, 3, 4, 2, 5 }.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">currentIndex</td><td>the index of the object to be moved. If this isn't a valid index, then nothing will be done </td></tr>
    <tr><td class="paramname">newIndex</td><td>the index at which you'd like this object to end up. If this is less than zero, it will be moved to the end of the array </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a68a378da68f47a73e0cf3a9e3673f64a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a68a378da68f47a73e0cf3a9e3673f64a">&sect;&nbsp;</a></span>swapWith()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class ObjectClass, class TypeOfCriticalSectionToUse = DummyCriticalSection&gt; </div>
<div class="memtemplate">
template&lt;class OtherArrayType &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classReferenceCountedArray.html">ReferenceCountedArray</a>&lt; ObjectClass, TypeOfCriticalSectionToUse &gt;::swapWith </td>
          <td>(</td>
          <td class="paramtype">OtherArrayType &amp;&#160;</td>
          <td class="paramname"><em>otherArray</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">

<p>This swaps the contents of this array with those of another array. </p>
<p>If you need to exchange two arrays, this is vastly quicker than using copy-by-value because it just swaps their internal pointers. </p>

<p>Referenced by <a class="el" href="classReferenceCountedArray.html#ab9fd36e38317591da957d13be587aeba">ReferenceCountedArray&lt; AudioProcessorGraph::Node &gt;::operator=()</a>.</p>

</div>
</div>
<a id="a16715eb28fe22682d87c33b02a6ed882"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a16715eb28fe22682d87c33b02a6ed882">&sect;&nbsp;</a></span>operator==()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class ObjectClass, class TypeOfCriticalSectionToUse = DummyCriticalSection&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool <a class="el" href="classReferenceCountedArray.html">ReferenceCountedArray</a>&lt; ObjectClass, TypeOfCriticalSectionToUse &gt;::operator== </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classReferenceCountedArray.html">ReferenceCountedArray</a>&lt; ObjectClass, TypeOfCriticalSectionToUse &gt; &amp;&#160;</td>
          <td class="paramname"><em>other</em></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>Compares this array to another one. </p>
<dl class="section return"><dt>Returns</dt><dd>true only if the other array contains the same objects in the same order </dd></dl>

<p>Referenced by <a class="el" href="classReferenceCountedArray.html#a42ad63db85d37f3c649f21bf3b03a950">ReferenceCountedArray&lt; AudioProcessorGraph::Node &gt;::operator!=()</a>.</p>

</div>
</div>
<a id="a42ad63db85d37f3c649f21bf3b03a950"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a42ad63db85d37f3c649f21bf3b03a950">&sect;&nbsp;</a></span>operator!=()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class ObjectClass, class TypeOfCriticalSectionToUse = DummyCriticalSection&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool <a class="el" href="classReferenceCountedArray.html">ReferenceCountedArray</a>&lt; ObjectClass, TypeOfCriticalSectionToUse &gt;::operator!= </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classReferenceCountedArray.html">ReferenceCountedArray</a>&lt; ObjectClass, TypeOfCriticalSectionToUse &gt; &amp;&#160;</td>
          <td class="paramname"><em>other</em></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>Compares this array to another one. </p>
<dl class="section see"><dt>See also</dt><dd>operator== </dd></dl>

</div>
</div>
<a id="a51248166d0e546e8f6ba9f831a835a7a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a51248166d0e546e8f6ba9f831a835a7a">&sect;&nbsp;</a></span>sort()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class ObjectClass, class TypeOfCriticalSectionToUse = DummyCriticalSection&gt; </div>
<div class="memtemplate">
template&lt;class ElementComparator &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classReferenceCountedArray.html">ReferenceCountedArray</a>&lt; ObjectClass, TypeOfCriticalSectionToUse &gt;::sort </td>
          <td>(</td>
          <td class="paramtype">ElementComparator &amp;&#160;</td>
          <td class="paramname"><em>comparator</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const bool&#160;</td>
          <td class="paramname"><em>retainOrderOfEquivalentItems</em> = <code>false</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</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>Sorts the elements in the array. </p>
<p>This will use a comparator object to sort the elements into order. The object passed must have a method of the form: </p><div class="fragment"><div class="line"><span class="keywordtype">int</span> compareElements (ElementType first, ElementType second);</div></div><!-- fragment --><p>..and this method must return:</p><ul>
<li>a value of &lt; 0 if the first comes before the second</li>
<li>a value of 0 if the two objects are equivalent</li>
<li>a value of &gt; 0 if the second comes before the first</li>
</ul>
<p>To improve performance, the compareElements() method can be declared as static or const.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">comparator</td><td>the comparator to use for comparing elements. </td></tr>
    <tr><td class="paramname">retainOrderOfEquivalentItems</td><td>if this is true, then items which the comparator says are equivalent will be kept in the order in which they currently appear in the array. This is slower to perform, but may be important in some cases. If it's false, a faster algorithm is used, but equivalent elements may be rearranged.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd>sortArray </dd></dl>

</div>
</div>
<a id="ad09860891de2b9faaa19e42b8007bca7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad09860891de2b9faaa19e42b8007bca7">&sect;&nbsp;</a></span>minimiseStorageOverheads()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class ObjectClass, class TypeOfCriticalSectionToUse = DummyCriticalSection&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classReferenceCountedArray.html">ReferenceCountedArray</a>&lt; ObjectClass, TypeOfCriticalSectionToUse &gt;::minimiseStorageOverheads </td>
          <td>(</td>
          <td class="paramname"></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">

<p>Reduces the amount of storage being used by the array. </p>
<p>Arrays typically allocate slightly more storage than they need, and after removing elements, they may have quite a lot of unused space allocated. This method will reduce the amount of allocated storage to a minimum. </p>

<p>Referenced by <a class="el" href="classReferenceCountedArray.html#aea193b7f41ffc381f1c12440f997ccdd">ReferenceCountedArray&lt; AudioProcessorGraph::Node &gt;::remove()</a>, <a class="el" href="classReferenceCountedArray.html#a8fc0a717f91f4ff3b144f0224afdc5dd">ReferenceCountedArray&lt; AudioProcessorGraph::Node &gt;::removeAndReturn()</a>, and <a class="el" href="classReferenceCountedArray.html#a9430ab8bb81848ef46507d2ed2eb40c2">ReferenceCountedArray&lt; AudioProcessorGraph::Node &gt;::removeRange()</a>.</p>

</div>
</div>
<a id="abf520344fa2d864f0f54809429a3bb3f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abf520344fa2d864f0f54809429a3bb3f">&sect;&nbsp;</a></span>ensureStorageAllocated()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class ObjectClass, class TypeOfCriticalSectionToUse = DummyCriticalSection&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classReferenceCountedArray.html">ReferenceCountedArray</a>&lt; ObjectClass, TypeOfCriticalSectionToUse &gt;::ensureStorageAllocated </td>
          <td>(</td>
          <td class="paramtype">const int&#160;</td>
          <td class="paramname"><em>minNumElements</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Increases the array's internal storage to hold a minimum number of elements. </p>
<p>Calling this before adding a large known number of elements means that the array won't have to keep dynamically resizing itself as the elements are added, and it'll therefore be more efficient. </p>

</div>
</div>
<a id="aa1ee427821c41587e15391bf7edc2b60"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa1ee427821c41587e15391bf7edc2b60">&sect;&nbsp;</a></span>getLock()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class ObjectClass, class TypeOfCriticalSectionToUse = DummyCriticalSection&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">const TypeOfCriticalSectionToUse&amp; <a class="el" href="classReferenceCountedArray.html">ReferenceCountedArray</a>&lt; ObjectClass, TypeOfCriticalSectionToUse &gt;::getLock </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 <a class="el" href="classCriticalSection.html" title="A re-entrant mutex. ">CriticalSection</a> that locks this array. </p>
<p>To lock, you can call <a class="el" href="classReferenceCountedArray.html#aa1ee427821c41587e15391bf7edc2b60" title="Returns the CriticalSection that locks this array. ">getLock()</a>.enter() and <a class="el" href="classReferenceCountedArray.html#aa1ee427821c41587e15391bf7edc2b60" title="Returns the CriticalSection that locks this array. ">getLock()</a>.exit(), or preferably use an object of ScopedLockType as an RAII lock for it. </p>

<p>Referenced by <a class="el" href="classReferenceCountedArray.html#a69c7478303bfab74a3fa16ff93a334a8">ReferenceCountedArray&lt; AudioProcessorGraph::Node &gt;::add()</a>, <a class="el" href="classReferenceCountedArray.html#a6e3aa5375dce143b69a467ad405c2867">ReferenceCountedArray&lt; AudioProcessorGraph::Node &gt;::addArray()</a>, <a class="el" href="classReferenceCountedArray.html#a2d20205a78c1fa520d04d50a263c9f9b">ReferenceCountedArray&lt; AudioProcessorGraph::Node &gt;::addIfNotAlreadyThere()</a>, <a class="el" href="classReferenceCountedArray.html#ae4d087d8723db7a39fb876d419d9f960">ReferenceCountedArray&lt; AudioProcessorGraph::Node &gt;::addOrReplaceSorted()</a>, <a class="el" href="classReferenceCountedArray.html#afb1a9958a818b6c410d79fc65b23432e">ReferenceCountedArray&lt; AudioProcessorGraph::Node &gt;::addSorted()</a>, <a class="el" href="classReferenceCountedArray.html#a6dc6a1c3540a6f30456db545edb0486d">ReferenceCountedArray&lt; AudioProcessorGraph::Node &gt;::clear()</a>, <a class="el" href="classReferenceCountedArray.html#ad5a34e648c3dfc01493ca92838835bd1">ReferenceCountedArray&lt; AudioProcessorGraph::Node &gt;::clearQuick()</a>, <a class="el" href="classReferenceCountedArray.html#a5660a4dab2e9765784f1c5af73d7c303">ReferenceCountedArray&lt; AudioProcessorGraph::Node &gt;::contains()</a>, <a class="el" href="classReferenceCountedArray.html#abf520344fa2d864f0f54809429a3bb3f">ReferenceCountedArray&lt; AudioProcessorGraph::Node &gt;::ensureStorageAllocated()</a>, <a class="el" href="classReferenceCountedArray.html#ab352b571e4ee02eedad655bba6434725">ReferenceCountedArray&lt; AudioProcessorGraph::Node &gt;::getFirst()</a>, <a class="el" href="classReferenceCountedArray.html#a906fbb190a57a893faa951949b93418b">ReferenceCountedArray&lt; AudioProcessorGraph::Node &gt;::getLast()</a>, <a class="el" href="classReferenceCountedArray.html#ac9c63ba3ddc186c6e9fb0c3c97d1eb57">ReferenceCountedArray&lt; AudioProcessorGraph::Node &gt;::getObjectPointer()</a>, <a class="el" href="classReferenceCountedArray.html#a8da693cf7dedfda5bb8a8e7331c4bf1f">ReferenceCountedArray&lt; AudioProcessorGraph::Node &gt;::getObjectPointerUnchecked()</a>, <a class="el" href="classReferenceCountedArray.html#a034cad62a8ebb5854db4db2ff4afbf71">ReferenceCountedArray&lt; AudioProcessorGraph::Node &gt;::indexOf()</a>, <a class="el" href="classReferenceCountedArray.html#aba887431a64561282cdbabafe27e70e8">ReferenceCountedArray&lt; AudioProcessorGraph::Node &gt;::indexOfSorted()</a>, <a class="el" href="classReferenceCountedArray.html#af565f8dbd67b0e2adb9e85af2256e720">ReferenceCountedArray&lt; AudioProcessorGraph::Node &gt;::insert()</a>, <a class="el" href="classReferenceCountedArray.html#ad09860891de2b9faaa19e42b8007bca7">ReferenceCountedArray&lt; AudioProcessorGraph::Node &gt;::minimiseStorageOverheads()</a>, <a class="el" href="classReferenceCountedArray.html#acd40cae01b2a34720491bf4cd462ad80">ReferenceCountedArray&lt; AudioProcessorGraph::Node &gt;::move()</a>, <a class="el" href="classReferenceCountedArray.html#a16715eb28fe22682d87c33b02a6ed882">ReferenceCountedArray&lt; AudioProcessorGraph::Node &gt;::operator==()</a>, <a class="el" href="classReferenceCountedArray.html#aea193b7f41ffc381f1c12440f997ccdd">ReferenceCountedArray&lt; AudioProcessorGraph::Node &gt;::remove()</a>, <a class="el" href="classReferenceCountedArray.html#a8fc0a717f91f4ff3b144f0224afdc5dd">ReferenceCountedArray&lt; AudioProcessorGraph::Node &gt;::removeAndReturn()</a>, <a class="el" href="classReferenceCountedArray.html#a2f2ff002f4ca7a7062b449ade2b61307">ReferenceCountedArray&lt; AudioProcessorGraph::Node &gt;::removeLast()</a>, <a class="el" href="classReferenceCountedArray.html#a3413cc68e78418918d69bf7ae132c894">ReferenceCountedArray&lt; AudioProcessorGraph::Node &gt;::removeObject()</a>, <a class="el" href="classReferenceCountedArray.html#a9430ab8bb81848ef46507d2ed2eb40c2">ReferenceCountedArray&lt; AudioProcessorGraph::Node &gt;::removeRange()</a>, <a class="el" href="classReferenceCountedArray.html#ab091a80b766a24ba4915a10c1d71cd81">ReferenceCountedArray&lt; AudioProcessorGraph::Node &gt;::set()</a>, <a class="el" href="classReferenceCountedArray.html#a51248166d0e546e8f6ba9f831a835a7a">ReferenceCountedArray&lt; AudioProcessorGraph::Node &gt;::sort()</a>, <a class="el" href="classReferenceCountedArray.html#a53122fe07050eef2918538d0b4d90804">ReferenceCountedArray&lt; AudioProcessorGraph::Node &gt;::swap()</a>, and <a class="el" href="classReferenceCountedArray.html#a68a378da68f47a73e0cf3a9e3673f64a">ReferenceCountedArray&lt; AudioProcessorGraph::Node &gt;::swapWith()</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="juce__ReferenceCountedArray_8h.html">juce_ReferenceCountedArray.h</a></li>
</ul>
</div><!-- contents -->
<hr class="footer"/>
<address class="footer"><small>All content &copy ROLI Ltd.</small></address><br/>
</body>
</html>