blob: e499d0291605cbd07b737c6c80c0238ed91a6378 [file] [log] [blame]
Alexander Afanasyev11225012013-11-21 23:11:10 -08001ForwardingFlags Class
2=====================
3
4A ForwardingFlags object holds the flags which specify how the forwarding daemon should forward an interest for a registered prefix. We use a separate ForwardingFlags object to retain future compatibility if the daemon forwarding bits are changed, amended or deprecated.
5
6:[C++]:
7 Namespace: `ndn`
8
9ForwardingFlags Constructor
10
11Create a new ForwardingFlags with "active" and "childInherit" set and all other flags cleared.
12
13:[C++]:
14
15 .. code-block:: c++
16
17 ForwardingFlags();
18
19:[JavaScript]:
20
21 .. code-block:: javascript
22
23 var ForwardingFlags = function ForwardingFlags()
24
25ForwardingFlags.getActive Method
26--------------------------------
27
28Get the value of the "active" flag.
29
30:[C++]:
31
32 .. code-block:: c++
33
34 bool getActive() const;
35
36:[JavaScript]:
37
38 .. code-block:: javascript
39
40 ForwardingFlags.prototype.getActive = function()
41
42:Returns:
43
44 true if the flag is set, false if it is cleared.
45
46ForwardingFlags.getChildInherit Method
47--------------------------------------
48
49Get the value of the "childInherit" flag.
50
51:[C++]:
52
53 .. code-block:: c++
54
55 bool getChildInherit() const;
56
57:[JavaScript]:
58
59 .. code-block:: javascript
60
61 ForwardingFlags.prototype.getChildInherit = function()
62
63:Returns:
64
65 true if the flag is set, false if it is cleared.
66
67ForwardingFlags.getAdvertise Method
68-----------------------------------
69
70Get the value of the "advertise" flag.
71
72:[C++]:
73
74 .. code-block:: c++
75
76 bool getAdvertise() const;
77
78:[JavaScript]:
79
80 .. code-block:: javascript
81
82 ForwardingFlags.prototype.getAdvertise = function()
83
84:Returns:
85
86 true if the flag is set, false if it is cleared.
87
88ForwardingFlags.getLast Method
89------------------------------
90
91Get the value of the "last" flag.
92
93:[C++]:
94
95 .. code-block:: c++
96
97 bool getLast() const;
98
99:[JavaScript]:
100
101 .. code-block:: javascript
102
103 ForwardingFlags.prototype.getLast = function()
104
105:Returns:
106
107 true if the flag is set, false if it is cleared.
108
109ForwardingFlags.getCapture Method
110---------------------------------
111
112Get the value of the "capture" flag.
113
114:[C++]:
115
116 .. code-block:: c++
117
118 bool getCapture() const;
119
120:[JavaScript]:
121
122 .. code-block:: javascript
123
124 ForwardingFlags.prototype.getCapture = function()
125
126:Returns:
127
128 true if the flag is set, false if it is cleared.
129
130ForwardingFlags.getLocal Method
131-------------------------------
132
133Get the value of the "local" flag.
134
135:[C++]:
136
137 .. code-block:: c++
138
139 bool getLocal() const;
140
141:[JavaScript]:
142
143 .. code-block:: javascript
144
145 ForwardingFlags.prototype.getLocal = function()
146
147:Returns:
148
149 true if the flag is set, false if it is cleared.
150
151ForwardingFlags.getTap Method
152-----------------------------
153
154Get the value of the "tap" flag.
155
156:[C++]:
157
158 .. code-block:: c++
159
160 bool getTap() const;
161
162:[JavaScript]:
163
164 .. code-block:: javascript
165
166 ForwardingFlags.prototype.getTap = function()
167
168:Returns:
169
170 true if the flag is set, false if it is cleared.
171
172ForwardingFlags.getCaptureOk Method
173-----------------------------------
174
175Get the value of the "captureOk" flag.
176
177:[C++]:
178
179 .. code-block:: c++
180
181 bool getCaptureOk() const;
182
183:[JavaScript]:
184
185 .. code-block:: javascript
186
187 ForwardingFlags.prototype.getCaptureOk = function()
188
189:Returns:
190
191 true if the flag is set, false if it is cleared.
192
193ForwardingFlags.setActive Method
194--------------------------------
195
196Set the value of the "active" flag
197
198:[C++]:
199
200 .. code-block:: c++
201
202 void setActive(
203
204 bool active;
205
206 );
207
208:[JavaScript]:
209
210 .. code-block:: javascript
211
212 ForwardingFlags.prototype.setActive = function(
213
214 active // boolean
215
216 )
217
218:Parameters:
219
220 - `active`
221 true to set the flag, false to clear it.
222
223ForwardingFlags.setChildInherit Method
224--------------------------------------
225
226Set the value of the "childInherit" flag
227
228:[C++]:
229
230 .. code-block:: c++
231
232 void setChildInherit(
233
234 bool childInherit;
235
236 );
237
238:[JavaScript]:
239
240 .. code-block:: javascript
241
242 ForwardingFlags.prototype.setChildInherit = function(
243
244 childInherit // boolean
245
246 )
247
248:Parameters:
249
250 - `childInherit`
251 true to set the flag, false to clear it.
252
253ForwardingFlags.setAdvertise Method
254-----------------------------------
255
256Set the value of the "advertise" flag
257
258:[C++]:
259
260 .. code-block:: c++
261
262 void setAdvertise(
263
264 bool advertise;
265
266 );
267
268:[JavaScript]:
269
270 .. code-block:: javascript
271
272 ForwardingFlags.prototype.setAdvertise = function(
273
274 advertise // boolean
275
276 )
277
278:Parameters:
279
280 - `advertise`
281 true to set the flag, false to clear it.
282
283ForwardingFlags.setLast Method
284------------------------------
285
286Set the value of the "last" flag
287
288:[C++]:
289
290 .. code-block:: c++
291
292 void setLast(
293
294 bool last;
295
296 );
297
298:[JavaScript]:
299
300 .. code-block:: javascript
301
302 ForwardingFlags.prototype.setLast = function(
303
304 last // boolean
305
306 )
307
308:Parameters:
309
310 - `last`
311 true to set the flag, false to clear it.
312
313ForwardingFlags.setCapture Method
314---------------------------------
315
316Set the value of the "capture" flag
317
318:[C++]:
319
320 .. code-block:: c++
321
322 void setCapture(
323
324 bool capture;
325
326 );
327
328:[JavaScript]:
329
330 .. code-block:: javascript
331
332 ForwardingFlags.prototype.setCapture = function(
333
334 capture // boolean
335
336 )
337
338:Parameters:
339
340 - `capture`
341 true to set the flag, false to clear it.
342
343ForwardingFlags.setLocal Method
344-------------------------------
345
346Set the value of the "local" flag
347
348:[C++]:
349
350 .. code-block:: c++
351
352 void setLocal(
353
354 bool local;
355
356 );
357
358:[JavaScript]:
359
360 .. code-block:: javascript
361
362 ForwardingFlags.prototype.setLocal = function(
363
364 local // boolean
365
366 )
367
368:Parameters:
369
370 - `local`
371 true to set the flag, false to clear it.
372
373ForwardingFlags.setTap Method
374-----------------------------
375
376Set the value of the "tap" flag
377
378:[C++]:
379
380 .. code-block:: c++
381
382 void setTap(
383
384 bool tap;
385
386 );
387
388:[JavaScript]:
389
390 .. code-block:: javascript
391
392 ForwardingFlags.prototype.setTap = function(
393
394 tap // boolean
395
396 )
397
398:Parameters:
399
400 - `tap`
401 true to set the flag, false to clear it.
402
403ForwardingFlags.setCaptureOk Method
404-----------------------------------
405
406Set the value of the "captureOk" flag
407
408:[C++]:
409
410 .. code-block:: c++
411
412 void setCaptureOk(
413
414 bool captureOk;
415
416 );
417
418:[JavaScript]:
419
420 .. code-block:: javascript
421
422 ForwardingFlags.prototype.setCaptureOk = function(
423
424 captureOk // boolean
425
426 )
427
428:Parameters:
429
430 - `captureOk`
431 true to set the flag, false to clear it.