A ForwardingFlagsLite holds the flags which specify how the forwarding daemon should forward an interest for a registered prefix.
More...
#include <forwarding-flags-lite.hpp>
A ForwardingFlagsLite holds the flags which specify how the forwarding daemon should forward an interest for a registered prefix.
We use a separate ForwardingFlagsLite object to retain future compatibility if the daemon forwarding bits are changed, amended or deprecated.
bool ndn::ForwardingFlagsLite::getCapture |
( |
| ) |
const |
|
inline |
Get the value of the "capture" flag.
- Returns
- true if the flag is set, false if it is cleared.
bool ndn::ForwardingFlagsLite::getChildInherit |
( |
| ) |
const |
|
inline |
Get the value of the "childInherit" flag.
- Returns
- true if the flag is set, false if it is cleared.
int ndn::ForwardingFlagsLite::getNfdForwardingFlags |
( |
| ) |
const |
Get an integer with the bits set according to the NFD forwarding flags as used in the ControlParameters of the command interest.
- Returns
- An integer with the bits set.
void ndn::ForwardingFlagsLite::setCapture |
( |
bool |
capture | ) |
|
|
inline |
Set the value of the "capture" flag.
- Parameters
-
capture | true to set the flag, false to clear it. |
void ndn::ForwardingFlagsLite::setChildInherit |
( |
bool |
childInherit | ) |
|
|
inline |
Set the value of the "childInherit" flag.
- Parameters
-
childInherit | true to set the flag, false to clear it. |
void ndn::ForwardingFlagsLite::setNfdForwardingFlags |
( |
int |
nfdForwardingFlags | ) |
|
Set the flags according to the NFD forwarding flags as used in the ControlParameters of the command interest.
- Parameters
-
nfdForwardingFlags | An integer with the bits set. |
The documentation for this class was generated from the following files: