This file is indexed.

/usr/share/doc/libjuce/apiref/classValue.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
<!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: Value Class 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="#nested-classes">Classes</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="classValue-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">Value Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Represents a shared variant value.  
 <a href="classValue.html#details">More...</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Classes</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classValue_1_1Listener.html">Listener</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Receives callbacks when a <a class="el" href="classValue.html" title="Represents a shared variant value. ">Value</a> object changes.  <a href="classValue_1_1Listener.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classValue_1_1ValueSource.html">ValueSource</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Used internally by the <a class="el" href="classValue.html" title="Represents a shared variant value. ">Value</a> class as the base class for its shared value objects.  <a href="classValue_1_1ValueSource.html#details">More...</a><br /></td></tr>
<tr class="separator:"><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:abc2a5a2e6484fac66dae2539cc955667"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classValue.html#abc2a5a2e6484fac66dae2539cc955667">Value</a> ()</td></tr>
<tr class="memdesc:abc2a5a2e6484fac66dae2539cc955667"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates an empty <a class="el" href="classValue.html" title="Represents a shared variant value. ">Value</a>, containing a void var.  <a href="#abc2a5a2e6484fac66dae2539cc955667">More...</a><br /></td></tr>
<tr class="separator:abc2a5a2e6484fac66dae2539cc955667"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acc427785c9007f762772d1dbe7535295"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classValue.html#acc427785c9007f762772d1dbe7535295">Value</a> (const <a class="el" href="classValue.html">Value</a> &amp;other)</td></tr>
<tr class="memdesc:acc427785c9007f762772d1dbe7535295"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a <a class="el" href="classValue.html" title="Represents a shared variant value. ">Value</a> that refers to the same value as another one.  <a href="#acc427785c9007f762772d1dbe7535295">More...</a><br /></td></tr>
<tr class="separator:acc427785c9007f762772d1dbe7535295"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad20df25aa8a6b58ae7220abb5abea977"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classValue.html#ad20df25aa8a6b58ae7220abb5abea977">Value</a> (const <a class="el" href="classvar.html">var</a> &amp;initialValue)</td></tr>
<tr class="memdesc:ad20df25aa8a6b58ae7220abb5abea977"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a <a class="el" href="classValue.html" title="Represents a shared variant value. ">Value</a> that is set to the specified value.  <a href="#ad20df25aa8a6b58ae7220abb5abea977">More...</a><br /></td></tr>
<tr class="separator:ad20df25aa8a6b58ae7220abb5abea977"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afd791a13f55b8590166c3fa3e4f0885c"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classValue.html#afd791a13f55b8590166c3fa3e4f0885c">Value</a> (<a class="el" href="classValue.html">Value</a> &amp;&amp;) noexcept</td></tr>
<tr class="separator:afd791a13f55b8590166c3fa3e4f0885c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af11ce0363d6dff5ec8911301b4d06f13"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classValue.html">Value</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classValue.html#af11ce0363d6dff5ec8911301b4d06f13">operator=</a> (<a class="el" href="classValue.html">Value</a> &amp;&amp;) noexcept</td></tr>
<tr class="separator:af11ce0363d6dff5ec8911301b4d06f13"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3a578f458da8a4ab67052dba0f7bffdd"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classValue.html#a3a578f458da8a4ab67052dba0f7bffdd">~Value</a> ()</td></tr>
<tr class="memdesc:a3a578f458da8a4ab67052dba0f7bffdd"><td class="mdescLeft">&#160;</td><td class="mdescRight">Destructor.  <a href="#a3a578f458da8a4ab67052dba0f7bffdd">More...</a><br /></td></tr>
<tr class="separator:a3a578f458da8a4ab67052dba0f7bffdd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aab38518b9ba7a9fae71878ee40a34c0f"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classvar.html">var</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classValue.html#aab38518b9ba7a9fae71878ee40a34c0f">getValue</a> () const</td></tr>
<tr class="memdesc:aab38518b9ba7a9fae71878ee40a34c0f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the current value.  <a href="#aab38518b9ba7a9fae71878ee40a34c0f">More...</a><br /></td></tr>
<tr class="separator:aab38518b9ba7a9fae71878ee40a34c0f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8c3d92f8d488b39f6f8812d7f22cdcfb"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classValue.html#a8c3d92f8d488b39f6f8812d7f22cdcfb">operator var</a> () const</td></tr>
<tr class="memdesc:a8c3d92f8d488b39f6f8812d7f22cdcfb"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the current value.  <a href="#a8c3d92f8d488b39f6f8812d7f22cdcfb">More...</a><br /></td></tr>
<tr class="separator:a8c3d92f8d488b39f6f8812d7f22cdcfb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a378bfdbf15b6b073492e336dd9b5d7b5"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classString.html">String</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classValue.html#a378bfdbf15b6b073492e336dd9b5d7b5">toString</a> () const</td></tr>
<tr class="memdesc:a378bfdbf15b6b073492e336dd9b5d7b5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the value as a string.  <a href="#a378bfdbf15b6b073492e336dd9b5d7b5">More...</a><br /></td></tr>
<tr class="separator:a378bfdbf15b6b073492e336dd9b5d7b5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aad44af687acd1f62ad9231e8ae47059d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classValue.html#aad44af687acd1f62ad9231e8ae47059d">setValue</a> (const <a class="el" href="classvar.html">var</a> &amp;newValue)</td></tr>
<tr class="memdesc:aad44af687acd1f62ad9231e8ae47059d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the current value.  <a href="#aad44af687acd1f62ad9231e8ae47059d">More...</a><br /></td></tr>
<tr class="separator:aad44af687acd1f62ad9231e8ae47059d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9c968011a1af3dbe03d6f6fa272fa674"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classValue.html">Value</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classValue.html#a9c968011a1af3dbe03d6f6fa272fa674">operator=</a> (const <a class="el" href="classvar.html">var</a> &amp;newValue)</td></tr>
<tr class="memdesc:a9c968011a1af3dbe03d6f6fa272fa674"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the current value.  <a href="#a9c968011a1af3dbe03d6f6fa272fa674">More...</a><br /></td></tr>
<tr class="separator:a9c968011a1af3dbe03d6f6fa272fa674"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a127b52830b5d62b478224b670d9e78f9"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classValue.html#a127b52830b5d62b478224b670d9e78f9">referTo</a> (const <a class="el" href="classValue.html">Value</a> &amp;valueToReferTo)</td></tr>
<tr class="memdesc:a127b52830b5d62b478224b670d9e78f9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Makes this object refer to the same underlying <a class="el" href="classValue_1_1ValueSource.html" title="Used internally by the Value class as the base class for its shared value objects. ">ValueSource</a> as another one.  <a href="#a127b52830b5d62b478224b670d9e78f9">More...</a><br /></td></tr>
<tr class="separator:a127b52830b5d62b478224b670d9e78f9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a901b00776b61ddc8b968d65def96d744"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classValue.html#a901b00776b61ddc8b968d65def96d744">refersToSameSourceAs</a> (const <a class="el" href="classValue.html">Value</a> &amp;other) const</td></tr>
<tr class="memdesc:a901b00776b61ddc8b968d65def96d744"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns true if this value and the other one are references to the same value.  <a href="#a901b00776b61ddc8b968d65def96d744">More...</a><br /></td></tr>
<tr class="separator:a901b00776b61ddc8b968d65def96d744"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa2a5988f395e61471dc48f1e41299771"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classValue.html#aa2a5988f395e61471dc48f1e41299771">operator==</a> (const <a class="el" href="classValue.html">Value</a> &amp;other) const</td></tr>
<tr class="memdesc:aa2a5988f395e61471dc48f1e41299771"><td class="mdescLeft">&#160;</td><td class="mdescRight">Compares two values.  <a href="#aa2a5988f395e61471dc48f1e41299771">More...</a><br /></td></tr>
<tr class="separator:aa2a5988f395e61471dc48f1e41299771"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a51e9c1d0f705eca6a04a72b0bb9b3754"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classValue.html#a51e9c1d0f705eca6a04a72b0bb9b3754">operator!=</a> (const <a class="el" href="classValue.html">Value</a> &amp;other) const</td></tr>
<tr class="memdesc:a51e9c1d0f705eca6a04a72b0bb9b3754"><td class="mdescLeft">&#160;</td><td class="mdescRight">Compares two values.  <a href="#a51e9c1d0f705eca6a04a72b0bb9b3754">More...</a><br /></td></tr>
<tr class="separator:a51e9c1d0f705eca6a04a72b0bb9b3754"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3c2c52becedfd8c85029f98412300aa5"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classValue.html#a3c2c52becedfd8c85029f98412300aa5">addListener</a> (<a class="el" href="classValue_1_1Listener.html">Listener</a> *listener)</td></tr>
<tr class="memdesc:a3c2c52becedfd8c85029f98412300aa5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Adds a listener to receive callbacks when the value changes.  <a href="#a3c2c52becedfd8c85029f98412300aa5">More...</a><br /></td></tr>
<tr class="separator:a3c2c52becedfd8c85029f98412300aa5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a90467d1b5c25f52d2152bd72057cd951"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classValue.html#a90467d1b5c25f52d2152bd72057cd951">removeListener</a> (<a class="el" href="classValue_1_1Listener.html">Listener</a> *listener)</td></tr>
<tr class="memdesc:a90467d1b5c25f52d2152bd72057cd951"><td class="mdescLeft">&#160;</td><td class="mdescRight">Removes a listener that was previously added with <a class="el" href="classValue.html#a3c2c52becedfd8c85029f98412300aa5" title="Adds a listener to receive callbacks when the value changes. ">addListener()</a>.  <a href="#a90467d1b5c25f52d2152bd72057cd951">More...</a><br /></td></tr>
<tr class="separator:a90467d1b5c25f52d2152bd72057cd951"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9ef2a029c366ec777e9485cb4aadcf8b"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classValue.html#a9ef2a029c366ec777e9485cb4aadcf8b">Value</a> (<a class="el" href="classValue_1_1ValueSource.html">ValueSource</a> *valueSource)</td></tr>
<tr class="memdesc:a9ef2a029c366ec777e9485cb4aadcf8b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a <a class="el" href="classValue.html" title="Represents a shared variant value. ">Value</a> object that uses this valueSource object as its underlying data.  <a href="#a9ef2a029c366ec777e9485cb4aadcf8b">More...</a><br /></td></tr>
<tr class="separator:a9ef2a029c366ec777e9485cb4aadcf8b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad69f95e21345a423192a3e9976258c8b"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classValue_1_1ValueSource.html">ValueSource</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classValue.html#ad69f95e21345a423192a3e9976258c8b">getValueSource</a> () noexcept</td></tr>
<tr class="memdesc:ad69f95e21345a423192a3e9976258c8b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the <a class="el" href="classValue_1_1ValueSource.html" title="Used internally by the Value class as the base class for its shared value objects. ">ValueSource</a> that this value is referring to.  <a href="#ad69f95e21345a423192a3e9976258c8b">More...</a><br /></td></tr>
<tr class="separator:ad69f95e21345a423192a3e9976258c8b"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Represents a shared variant value. </p>
<p>A <a class="el" href="classValue.html" title="Represents a shared variant value. ">Value</a> object contains a reference to a var object, and can get and set its value. Listeners can be attached to be told when the value is changed.</p>
<p>The <a class="el" href="classValue.html" title="Represents a shared variant value. ">Value</a> class is a wrapper around a shared, reference-counted underlying data object - this means that multiple <a class="el" href="classValue.html" title="Represents a shared variant value. ">Value</a> objects can all refer to the same piece of data, allowing all of them to be notified when any of them changes it.</p>
<p>When you create a <a class="el" href="classValue.html" title="Represents a shared variant value. ">Value</a> with its default constructor, it acts as a wrapper around a simple var object, but by creating a <a class="el" href="classValue.html" title="Represents a shared variant value. ">Value</a> that refers to a custom subclass of <a class="el" href="classValue_1_1ValueSource.html" title="Used internally by the Value class as the base class for its shared value objects. ">ValueSource</a>, you can map the <a class="el" href="classValue.html" title="Represents a shared variant value. ">Value</a> onto any kind of underlying data.</p>
<p>Important note! The <a class="el" href="classValue.html" title="Represents a shared variant value. ">Value</a> class is not thread-safe! If you're accessing one from multiple threads, then you'll need to use your own synchronisation around any code that accesses it. </p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="abc2a5a2e6484fac66dae2539cc955667"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abc2a5a2e6484fac66dae2539cc955667">&sect;&nbsp;</a></span>Value() <span class="overload">[1/5]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Value::Value </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Creates an empty <a class="el" href="classValue.html" title="Represents a shared variant value. ">Value</a>, containing a void var. </p>

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

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Value::Value </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classValue.html">Value</a> &amp;&#160;</td>
          <td class="paramname"><em>other</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Creates a <a class="el" href="classValue.html" title="Represents a shared variant value. ">Value</a> that refers to the same value as another one. </p>
<p>Note that this doesn't make a copy of the other value - both this and the other <a class="el" href="classValue.html" title="Represents a shared variant value. ">Value</a> will share the same underlying value, so that when either one alters it, both will see it change. </p>

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

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">Value::Value </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classvar.html">var</a> &amp;&#160;</td>
          <td class="paramname"><em>initialValue</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">explicit</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Creates a <a class="el" href="classValue.html" title="Represents a shared variant value. ">Value</a> that is set to the specified value. </p>

</div>
</div>
<a id="afd791a13f55b8590166c3fa3e4f0885c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afd791a13f55b8590166c3fa3e4f0885c">&sect;&nbsp;</a></span>Value() <span class="overload">[4/5]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">Value::Value </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classValue.html">Value</a> &amp;&amp;&#160;</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">

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

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Value::~Value </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Destructor. </p>

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

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">Value::Value </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classValue_1_1ValueSource.html">ValueSource</a> *&#160;</td>
          <td class="paramname"><em>valueSource</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">explicit</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Creates a <a class="el" href="classValue.html" title="Represents a shared variant value. ">Value</a> object that uses this valueSource object as its underlying data. </p>

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

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classValue.html">Value</a>&amp; Value::operator= </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classValue.html">Value</a> &amp;&amp;&#160;</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">

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

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classvar.html">var</a> Value::getValue </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns the current value. </p>

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

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Value::operator <a class="el" href="classvar.html">var</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns the current value. </p>

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

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classString.html">String</a> Value::toString </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns the value as a string. </p>
<p>This is a shortcut for "myValue.getValue().toString()". </p>

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

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Value::setValue </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classvar.html">var</a> &amp;&#160;</td>
          <td class="paramname"><em>newValue</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Sets the current value. </p>
<p>You can also use operator= to set the value.</p>
<p>If there are any listeners registered, they will be notified of the change asynchronously. </p>

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

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classValue.html">Value</a>&amp; Value::operator= </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classvar.html">var</a> &amp;&#160;</td>
          <td class="paramname"><em>newValue</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Sets the current value. </p>
<p>This is the same as calling <a class="el" href="classValue.html#aad44af687acd1f62ad9231e8ae47059d" title="Sets the current value. ">setValue()</a>.</p>
<p>If there are any listeners registered, they will be notified of the change asynchronously. </p>

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

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Value::referTo </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classValue.html">Value</a> &amp;&#160;</td>
          <td class="paramname"><em>valueToReferTo</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Makes this object refer to the same underlying <a class="el" href="classValue_1_1ValueSource.html" title="Used internally by the Value class as the base class for its shared value objects. ">ValueSource</a> as another one. </p>
<p>Once this object has been connected to another one, changing either one will update the other.</p>
<p>Existing listeners will still be registered after you call this method, and they'll continue to receive messages when the new value changes. </p>

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

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool Value::refersToSameSourceAs </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classValue.html">Value</a> &amp;&#160;</td>
          <td class="paramname"><em>other</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns true if this value and the other one are references to the same value. </p>

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

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool Value::operator== </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classValue.html">Value</a> &amp;&#160;</td>
          <td class="paramname"><em>other</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Compares two values. </p>
<p>This is a compare-by-value comparison, so is effectively the same as saying (this-&gt;<a class="el" href="classValue.html#aab38518b9ba7a9fae71878ee40a34c0f" title="Returns the current value. ">getValue()</a> == other.getValue()). </p>

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

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool Value::operator!= </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classValue.html">Value</a> &amp;&#160;</td>
          <td class="paramname"><em>other</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Compares two values. </p>
<p>This is a compare-by-value comparison, so is effectively the same as saying (this-&gt;<a class="el" href="classValue.html#aab38518b9ba7a9fae71878ee40a34c0f" title="Returns the current value. ">getValue()</a> != other.getValue()). </p>

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

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Value::addListener </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classValue_1_1Listener.html">Listener</a> *&#160;</td>
          <td class="paramname"><em>listener</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Adds a listener to receive callbacks when the value changes. </p>
<p>The listener is added to this specific <a class="el" href="classValue.html" title="Represents a shared variant value. ">Value</a> object, and not to the shared object that it refers to. When this object is deleted, all the listeners will be lost, even if other references to the same <a class="el" href="classValue.html" title="Represents a shared variant value. ">Value</a> still exist. So when you're adding a listener, make sure that you add it to a <a class="el" href="classValue.html" title="Represents a shared variant value. ">Value</a> instance that will last for as long as you need the listener. In general, you'd never want to add a listener to a local stack-based <a class="el" href="classValue.html" title="Represents a shared variant value. ">Value</a>, but more likely to one that's a member variable.</p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classValue.html#a90467d1b5c25f52d2152bd72057cd951" title="Removes a listener that was previously added with addListener(). ">removeListener</a> </dd></dl>

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

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Value::removeListener </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classValue_1_1Listener.html">Listener</a> *&#160;</td>
          <td class="paramname"><em>listener</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Removes a listener that was previously added with <a class="el" href="classValue.html#a3c2c52becedfd8c85029f98412300aa5" title="Adds a listener to receive callbacks when the value changes. ">addListener()</a>. </p>

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

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classValue_1_1ValueSource.html">ValueSource</a>&amp; Value::getValueSource </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>Returns the <a class="el" href="classValue_1_1ValueSource.html" title="Used internally by the Value class as the base class for its shared value objects. ">ValueSource</a> that this value is referring to. </p>

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