represents parameters in a ControlCommand request or response More...
#include <control-parameters.hpp>
Classes | |
class | Error |
Public Member Functions | |
ControlParameters () | |
ControlParameters (const Block &block) | |
uint64_t | getCost () const |
const time::milliseconds & | getExpirationPeriod () const |
uint64_t | getFaceId () const |
FacePersistency | getFacePersistency () const |
bool | getFlagBit (size_t bit) const |
uint64_t | getFlags () const |
const std::string & | getLocalUri () const |
uint64_t | getMask () const |
const Name & | getName () const |
RouteOrigin | getOrigin () const |
const std::vector< bool > & | getPresentFields () const |
const Name & | getStrategy () const |
const std::string & | getUri () const |
bool | hasCost () const |
bool | hasExpirationPeriod () const |
bool | hasFaceId () const |
bool | hasFacePersistency () const |
bool | hasFlagBit (size_t bit) const |
bool | hasFlags () const |
bool | hasLocalUri () const |
bool | hasMask () const |
bool | hasName () const |
bool | hasOrigin () const |
bool | hasStrategy () const |
bool | hasUri () const |
ControlParameters & | setCost (uint64_t cost) |
ControlParameters & | setExpirationPeriod (const time::milliseconds &expirationPeriod) |
ControlParameters & | setFaceId (uint64_t faceId) |
ControlParameters & | setFacePersistency (FacePersistency persistency) |
ControlParameters & | setFlagBit (size_t bit, bool value, bool wantMask=true) |
set a bit in Flags More... | |
ControlParameters & | setFlags (uint64_t flags) |
ControlParameters & | setLocalUri (const std::string &localUri) |
ControlParameters & | setMask (uint64_t mask) |
ControlParameters & | setName (const Name &name) |
ControlParameters & | setOrigin (RouteOrigin origin) |
ControlParameters & | setStrategy (const Name &strategy) |
ControlParameters & | setUri (const std::string &uri) |
ControlParameters & | unsetCost () |
ControlParameters & | unsetExpirationPeriod () |
ControlParameters & | unsetFaceId () |
ControlParameters & | unsetFacePersistency () |
ControlParameters & | unsetFlagBit (size_t bit) |
disable a bit in Mask More... | |
ControlParameters & | unsetFlags () |
ControlParameters & | unsetLocalUri () |
ControlParameters & | unsetMask () |
ControlParameters & | unsetName () |
ControlParameters & | unsetOrigin () |
ControlParameters & | unsetStrategy () |
ControlParameters & | unsetUri () |
void | wireDecode (const Block &wire) final |
template<encoding::Tag TAG> | |
size_t | wireEncode (EncodingImpl< TAG > &encoder) const |
Block | wireEncode () const final |
represents parameters in a ControlCommand request or response
This type is copyable because it's an abstraction of a TLV type.
Definition at line 71 of file nfd/control-parameters.hpp.
ndn::nfd::ControlParameters::ControlParameters | ( | ) |
Definition at line 37 of file control-parameters.cpp.
|
explicit |
Definition at line 42 of file control-parameters.cpp.
|
inline |
Definition at line 257 of file nfd/control-parameters.hpp.
|
inline |
Definition at line 377 of file nfd/control-parameters.hpp.
|
inline |
Definition at line 137 of file nfd/control-parameters.hpp.
|
inline |
Definition at line 407 of file nfd/control-parameters.hpp.
bool ndn::nfd::ControlParameters::getFlagBit | ( | size_t | bit | ) | const |
bit | bit position within range [0, 64) (least significant bit is 0) |
Definition at line 211 of file control-parameters.cpp.
|
inline |
Definition at line 287 of file nfd/control-parameters.hpp.
|
inline |
Definition at line 197 of file nfd/control-parameters.hpp.
|
inline |
Definition at line 317 of file nfd/control-parameters.hpp.
|
inline |
Definition at line 107 of file nfd/control-parameters.hpp.
|
inline |
Definition at line 227 of file nfd/control-parameters.hpp.
|
inline |
Definition at line 431 of file nfd/control-parameters.hpp.
|
inline |
Definition at line 347 of file nfd/control-parameters.hpp.
|
inline |
Definition at line 167 of file nfd/control-parameters.hpp.
|
inline |
Definition at line 251 of file nfd/control-parameters.hpp.
|
inline |
Definition at line 371 of file nfd/control-parameters.hpp.
|
inline |
Definition at line 131 of file nfd/control-parameters.hpp.
|
inline |
Definition at line 401 of file nfd/control-parameters.hpp.
bool ndn::nfd::ControlParameters::hasFlagBit | ( | size_t | bit | ) | const |
bit | bit position within range [0, 64) (least significant bit is 0) |
Definition at line 197 of file control-parameters.cpp.
|
inline |
Definition at line 281 of file nfd/control-parameters.hpp.
|
inline |
Definition at line 191 of file nfd/control-parameters.hpp.
|
inline |
Definition at line 311 of file nfd/control-parameters.hpp.
|
inline |
Definition at line 101 of file nfd/control-parameters.hpp.
|
inline |
Definition at line 221 of file nfd/control-parameters.hpp.
|
inline |
Definition at line 341 of file nfd/control-parameters.hpp.
|
inline |
Definition at line 161 of file nfd/control-parameters.hpp.
|
inline |
Definition at line 264 of file nfd/control-parameters.hpp.
|
inline |
Definition at line 384 of file nfd/control-parameters.hpp.
|
inline |
Definition at line 144 of file nfd/control-parameters.hpp.
|
inline |
Definition at line 414 of file nfd/control-parameters.hpp.
ControlParameters & ndn::nfd::ControlParameters::setFlagBit | ( | size_t | bit, |
bool | value, | ||
bool | wantMask = true |
||
) |
set a bit in Flags
bit | bit position within range [0, 64) (least significant bit is 0) |
value | new value in Flags |
wantMask | if true, enable the bit in Mask |
Definition at line 225 of file control-parameters.cpp.
|
inline |
Definition at line 294 of file nfd/control-parameters.hpp.
|
inline |
Definition at line 204 of file nfd/control-parameters.hpp.
|
inline |
Definition at line 324 of file nfd/control-parameters.hpp.
|
inline |
Definition at line 114 of file nfd/control-parameters.hpp.
|
inline |
Definition at line 234 of file nfd/control-parameters.hpp.
|
inline |
Definition at line 354 of file nfd/control-parameters.hpp.
|
inline |
Definition at line 174 of file nfd/control-parameters.hpp.
|
inline |
Definition at line 273 of file nfd/control-parameters.hpp.
|
inline |
Definition at line 393 of file nfd/control-parameters.hpp.
|
inline |
Definition at line 153 of file nfd/control-parameters.hpp.
|
inline |
Definition at line 423 of file nfd/control-parameters.hpp.
ControlParameters & ndn::nfd::ControlParameters::unsetFlagBit | ( | size_t | bit | ) |
disable a bit in Mask
bit | bit position within range [0, 64) (least significant bit is 0) |
Definition at line 250 of file control-parameters.cpp.
|
inline |
Definition at line 303 of file nfd/control-parameters.hpp.
|
inline |
Definition at line 213 of file nfd/control-parameters.hpp.
|
inline |
Definition at line 333 of file nfd/control-parameters.hpp.
|
inline |
Definition at line 123 of file nfd/control-parameters.hpp.
|
inline |
Definition at line 243 of file nfd/control-parameters.hpp.
|
inline |
Definition at line 363 of file nfd/control-parameters.hpp.
|
inline |
Definition at line 183 of file nfd/control-parameters.hpp.
|
finalvirtual |
Implements ndn::mgmt::ControlParameters.
Definition at line 114 of file control-parameters.cpp.
size_t ndn::nfd::ControlParameters::wireEncode | ( | EncodingImpl< TAG > & | encoder | ) | const |
Definition at line 50 of file control-parameters.cpp.
|
finalvirtual |
Implements ndn::mgmt::ControlParameters.
Definition at line 98 of file control-parameters.cpp.