represents parameters in a ControlCommand request or response More...
#include <control-parameters.hpp>
Classes | |
class | Error |
represents parameters in a ControlCommand request or response
This type is copyable because it's an abstraction of a TLV type.
Definition at line 79 of file 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.
References wireDecode().
size_t ndn::nfd::ControlParameters::wireEncode | ( | EncodingImpl< TAG > & | encoder | ) | const |
Definition at line 50 of file control-parameters.cpp.
References ndn::tlv::nfd::BaseCongestionMarkingInterval, ndn::tlv::nfd::Capacity, ndn::tlv::nfd::ControlParameters, ndn::tlv::nfd::Cost, ndn::tlv::nfd::Count, ndn::tlv::nfd::DefaultCongestionThreshold, ndn::tlv::nfd::ExpirationPeriod, ndn::tlv::nfd::FaceId, ndn::tlv::nfd::FacePersistency, ndn::tlv::nfd::Flags, hasBaseCongestionMarkingInterval(), hasCapacity(), hasCost(), hasCount(), hasDefaultCongestionThreshold(), hasExpirationPeriod(), hasFaceId(), hasFacePersistency(), hasFlags(), hasLocalUri(), hasMask(), hasName(), hasOrigin(), hasStrategy(), hasUri(), ndn::tlv::nfd::LocalUri, ndn::tlv::nfd::Mask, ndn::tlv::nfd::Origin, ndn::encoding::prependNestedBlock(), ndn::encoding::prependNonNegativeIntegerBlock(), ndn::encoding::prependStringBlock(), ndn::tlv::nfd::Strategy, ndn::tlv::nfd::Uri, and ndn::Name::wireEncode().
Referenced by ndn::nfd::ControlCommand::getRequestName().
|
finalvirtual |
Implements ndn::mgmt::ControlParameters.
Definition at line 111 of file control-parameters.cpp.
References ndn::Block::hasWire().
|
finalvirtual |
Implements ndn::mgmt::ControlParameters.
Definition at line 127 of file control-parameters.cpp.
References ndn::tlv::nfd::BaseCongestionMarkingInterval, ndn::tlv::nfd::Capacity, ndn::nfd::CONTROL_PARAMETER_BASE_CONGESTION_MARKING_INTERVAL, ndn::nfd::CONTROL_PARAMETER_CAPACITY, ndn::nfd::CONTROL_PARAMETER_COST, ndn::nfd::CONTROL_PARAMETER_COUNT, ndn::nfd::CONTROL_PARAMETER_DEFAULT_CONGESTION_THRESHOLD, ndn::nfd::CONTROL_PARAMETER_EXPIRATION_PERIOD, ndn::nfd::CONTROL_PARAMETER_FACE_ID, ndn::nfd::CONTROL_PARAMETER_FACE_PERSISTENCY, ndn::nfd::CONTROL_PARAMETER_FLAGS, ndn::nfd::CONTROL_PARAMETER_LOCAL_URI, ndn::nfd::CONTROL_PARAMETER_MASK, ndn::nfd::CONTROL_PARAMETER_NAME, ndn::nfd::CONTROL_PARAMETER_ORIGIN, ndn::nfd::CONTROL_PARAMETER_STRATEGY, ndn::nfd::CONTROL_PARAMETER_URI, ndn::tlv::nfd::ControlParameters, ndn::tlv::nfd::Cost, ndn::tlv::nfd::Count, ndn::tlv::nfd::DefaultCongestionThreshold, ndn::Block::elements_end(), ndn::tlv::nfd::ExpirationPeriod, ndn::tlv::nfd::FaceId, ndn::tlv::nfd::FacePersistency, ndn::Block::find(), ndn::tlv::nfd::Flags, hasBaseCongestionMarkingInterval(), hasCapacity(), hasCost(), hasCount(), hasDefaultCongestionThreshold(), hasExpirationPeriod(), hasFaceId(), hasFacePersistency(), hasFlags(), hasLocalUri(), hasMask(), hasName(), hasOrigin(), hasStrategy(), hasUri(), ndn::tlv::nfd::LocalUri, ndn::tlv::nfd::Mask, ndn::tlv::Name, ndn::tlv::nfd::Origin, ndn::Block::parse(), ndn::encoding::readNonNegativeInteger(), ndn::encoding::readString(), ndn::tlv::nfd::Strategy, ndn::Block::type(), ndn::tlv::nfd::Uri, and ndn::Name::wireDecode().
Referenced by ControlParameters().
|
inline |
Definition at line 109 of file control-parameters.hpp.
References ndn::nfd::CONTROL_PARAMETER_NAME.
Referenced by getName(), ndn::nfd::operator<<(), wireDecode(), and wireEncode().
|
inline |
Definition at line 115 of file control-parameters.hpp.
References hasName().
Referenced by ndn::nfd::operator<<(), and ndn::nfd::StrategyChoiceUnsetCommand::validateRequest().
|
inline |
Definition at line 122 of file control-parameters.hpp.
References ndn::nfd::CONTROL_PARAMETER_NAME, and ndn::Block::reset().
Referenced by face::Face::Impl::asyncUnregisterPrefix(), and face::Face::Impl::registerPrefix().
|
inline |
Definition at line 131 of file control-parameters.hpp.
References ndn::nfd::CONTROL_PARAMETER_NAME, and ndn::Block::reset().
|
inline |
Definition at line 139 of file control-parameters.hpp.
References ndn::nfd::CONTROL_PARAMETER_FACE_ID.
Referenced by ndn::nfd::FaceUpdateCommand::applyDefaultsToRequest(), ndn::nfd::FibAddNextHopCommand::applyDefaultsToRequest(), ndn::nfd::FibRemoveNextHopCommand::applyDefaultsToRequest(), ndn::nfd::RibRegisterCommand::applyDefaultsToRequest(), ndn::nfd::RibUnregisterCommand::applyDefaultsToRequest(), getFaceId(), ndn::nfd::operator<<(), wireDecode(), and wireEncode().
|
inline |
Definition at line 145 of file control-parameters.hpp.
References hasFaceId().
Referenced by ndn::nfd::operator<<(), ndn::nfd::FaceDestroyCommand::validateRequest(), ndn::nfd::FaceCreateCommand::validateResponse(), ndn::nfd::FaceUpdateCommand::validateResponse(), ndn::nfd::FibAddNextHopCommand::validateResponse(), ndn::nfd::FibRemoveNextHopCommand::validateResponse(), ndn::nfd::RibRegisterCommand::validateResponse(), and ndn::nfd::RibUnregisterCommand::validateResponse().
|
inline |
Definition at line 152 of file control-parameters.hpp.
References ndn::nfd::CONTROL_PARAMETER_FACE_ID, and ndn::Block::reset().
Referenced by ndn::nfd::FaceUpdateCommand::applyDefaultsToRequest(), ndn::nfd::FibAddNextHopCommand::applyDefaultsToRequest(), ndn::nfd::FibRemoveNextHopCommand::applyDefaultsToRequest(), ndn::nfd::RibRegisterCommand::applyDefaultsToRequest(), ndn::nfd::RibUnregisterCommand::applyDefaultsToRequest(), and nfd::rib::AutoPrefixPropagator::loadConfig().
|
inline |
Definition at line 161 of file control-parameters.hpp.
References ndn::nfd::CONTROL_PARAMETER_FACE_ID, and ndn::Block::reset().
|
inline |
Definition at line 169 of file control-parameters.hpp.
References ndn::nfd::CONTROL_PARAMETER_URI.
Referenced by getUri(), ndn::nfd::operator<<(), wireDecode(), and wireEncode().
|
inline |
Definition at line 175 of file control-parameters.hpp.
References hasUri().
Referenced by ndn::nfd::operator<<().
|
inline |
Definition at line 182 of file control-parameters.hpp.
References ndn::nfd::CONTROL_PARAMETER_URI, and ndn::Block::reset().
|
inline |
Definition at line 191 of file control-parameters.hpp.
References ndn::nfd::CONTROL_PARAMETER_URI, and ndn::Block::reset().
|
inline |
Definition at line 199 of file control-parameters.hpp.
References ndn::nfd::CONTROL_PARAMETER_LOCAL_URI.
Referenced by getLocalUri(), ndn::nfd::operator<<(), wireDecode(), and wireEncode().
|
inline |
Definition at line 205 of file control-parameters.hpp.
References hasLocalUri().
Referenced by ndn::nfd::operator<<().
|
inline |
Definition at line 212 of file control-parameters.hpp.
References ndn::nfd::CONTROL_PARAMETER_LOCAL_URI, and ndn::Block::reset().
|
inline |
Definition at line 221 of file control-parameters.hpp.
References ndn::nfd::CONTROL_PARAMETER_LOCAL_URI, and ndn::Block::reset().
|
inline |
Definition at line 229 of file control-parameters.hpp.
References ndn::nfd::CONTROL_PARAMETER_ORIGIN.
Referenced by ndn::nfd::RibRegisterCommand::applyDefaultsToRequest(), ndn::nfd::RibUnregisterCommand::applyDefaultsToRequest(), getOrigin(), ndn::nfd::operator<<(), wireDecode(), and wireEncode().
|
inline |
Definition at line 235 of file control-parameters.hpp.
References hasOrigin().
Referenced by ndn::nfd::operator<<().
|
inline |
Definition at line 242 of file control-parameters.hpp.
References ndn::nfd::CONTROL_PARAMETER_ORIGIN, and ndn::Block::reset().
Referenced by ndn::nfd::RibRegisterCommand::applyDefaultsToRequest(), ndn::nfd::RibUnregisterCommand::applyDefaultsToRequest(), and nfd::rib::AutoPrefixPropagator::loadConfig().
|
inline |
Definition at line 251 of file control-parameters.hpp.
References ndn::nfd::CONTROL_PARAMETER_ORIGIN, and ndn::Block::reset().
|
inline |
Definition at line 259 of file control-parameters.hpp.
References ndn::nfd::CONTROL_PARAMETER_COST.
Referenced by ndn::nfd::FibAddNextHopCommand::applyDefaultsToRequest(), ndn::nfd::RibRegisterCommand::applyDefaultsToRequest(), getCost(), ndn::nfd::operator<<(), wireDecode(), and wireEncode().
|
inline |
Definition at line 265 of file control-parameters.hpp.
References hasCost().
Referenced by ndn::nfd::operator<<().
|
inline |
Definition at line 272 of file control-parameters.hpp.
References ndn::nfd::CONTROL_PARAMETER_COST, and ndn::Block::reset().
Referenced by ndn::nfd::FibAddNextHopCommand::applyDefaultsToRequest(), ndn::nfd::RibRegisterCommand::applyDefaultsToRequest(), and nfd::rib::AutoPrefixPropagator::loadConfig().
|
inline |
Definition at line 281 of file control-parameters.hpp.
References ndn::nfd::CONTROL_PARAMETER_COST, and ndn::Block::reset().
|
inline |
Definition at line 289 of file control-parameters.hpp.
References ndn::nfd::CONTROL_PARAMETER_CAPACITY.
Referenced by getCapacity(), ndn::nfd::operator<<(), ndn::nfd::CsEraseCommand::validateResponse(), wireDecode(), and wireEncode().
|
inline |
Definition at line 295 of file control-parameters.hpp.
References hasCapacity().
Referenced by ndn::nfd::operator<<(), and ndn::nfd::CsEraseCommand::validateResponse().
|
inline |
Definition at line 302 of file control-parameters.hpp.
References ndn::nfd::CONTROL_PARAMETER_CAPACITY, and ndn::Block::reset().
|
inline |
Definition at line 311 of file control-parameters.hpp.
References ndn::nfd::CONTROL_PARAMETER_CAPACITY, and ndn::Block::reset().
|
inline |
Definition at line 319 of file control-parameters.hpp.
References ndn::nfd::CONTROL_PARAMETER_COUNT.
Referenced by getCount(), ndn::nfd::operator<<(), ndn::nfd::CsEraseCommand::validateRequest(), wireDecode(), and wireEncode().
|
inline |
Definition at line 325 of file control-parameters.hpp.
References hasCount().
Referenced by ndn::nfd::operator<<(), and ndn::nfd::CsEraseCommand::validateRequest().
|
inline |
Definition at line 332 of file control-parameters.hpp.
References ndn::nfd::CONTROL_PARAMETER_COUNT, and ndn::Block::reset().
|
inline |
Definition at line 341 of file control-parameters.hpp.
References ndn::nfd::CONTROL_PARAMETER_COUNT, and ndn::Block::reset().
|
inline |
Definition at line 349 of file control-parameters.hpp.
References ndn::nfd::CONTROL_PARAMETER_FLAGS.
Referenced by ndn::nfd::RibRegisterCommand::applyDefaultsToRequest(), getFlagBit(), getFlags(), ndn::nfd::operator<<(), setFlagBit(), ndn::nfd::ControlCommand::FieldValidator::validate(), wireDecode(), and wireEncode().
|
inline |
Definition at line 355 of file control-parameters.hpp.
References hasFlags().
Referenced by getFlagBit(), ndn::nfd::operator<<(), and setFlagBit().
|
inline |
Definition at line 362 of file control-parameters.hpp.
References ndn::nfd::CONTROL_PARAMETER_FLAGS, and ndn::Block::reset().
Referenced by ndn::nfd::RibRegisterCommand::applyDefaultsToRequest(), face::Face::Impl::registerPrefix(), and setFlagBit().
|
inline |
Definition at line 371 of file control-parameters.hpp.
References ndn::nfd::CONTROL_PARAMETER_FLAGS, and ndn::Block::reset().
Referenced by unsetFlagBit().
|
inline |
Definition at line 379 of file control-parameters.hpp.
References ndn::nfd::CONTROL_PARAMETER_MASK.
Referenced by getMask(), hasFlagBit(), ndn::nfd::operator<<(), setFlagBit(), unsetFlagBit(), ndn::nfd::ControlCommand::FieldValidator::validate(), wireDecode(), and wireEncode().
|
inline |
Definition at line 385 of file control-parameters.hpp.
References hasMask().
Referenced by hasFlagBit(), ndn::nfd::operator<<(), setFlagBit(), and unsetFlagBit().
|
inline |
Definition at line 392 of file control-parameters.hpp.
References ndn::nfd::CONTROL_PARAMETER_MASK, and ndn::Block::reset().
Referenced by setFlagBit(), and unsetFlagBit().
|
inline |
Definition at line 401 of file control-parameters.hpp.
References ndn::nfd::CONTROL_PARAMETER_MASK, and ndn::Block::reset().
Referenced by unsetFlagBit().
|
inline |
Definition at line 409 of file control-parameters.hpp.
References ndn::nfd::CONTROL_PARAMETER_STRATEGY.
Referenced by getStrategy(), ndn::nfd::operator<<(), wireDecode(), and wireEncode().
|
inline |
Definition at line 415 of file control-parameters.hpp.
References hasStrategy().
Referenced by ndn::nfd::operator<<().
|
inline |
Definition at line 422 of file control-parameters.hpp.
References ndn::nfd::CONTROL_PARAMETER_STRATEGY, and ndn::Block::reset().
|
inline |
Definition at line 431 of file control-parameters.hpp.
References ndn::nfd::CONTROL_PARAMETER_STRATEGY, and ndn::Block::reset().
|
inline |
Definition at line 439 of file control-parameters.hpp.
References ndn::nfd::CONTROL_PARAMETER_EXPIRATION_PERIOD.
Referenced by getExpirationPeriod(), ndn::nfd::operator<<(), wireDecode(), and wireEncode().
|
inline |
Definition at line 445 of file control-parameters.hpp.
References hasExpirationPeriod().
Referenced by ndn::nfd::operator<<().
|
inline |
Definition at line 452 of file control-parameters.hpp.
References ndn::nfd::CONTROL_PARAMETER_EXPIRATION_PERIOD, and ndn::Block::reset().
|
inline |
Definition at line 461 of file control-parameters.hpp.
References ndn::nfd::CONTROL_PARAMETER_EXPIRATION_PERIOD, and ndn::Block::reset().
|
inline |
Definition at line 469 of file control-parameters.hpp.
References ndn::nfd::CONTROL_PARAMETER_FACE_PERSISTENCY.
Referenced by ndn::nfd::FaceCreateCommand::applyDefaultsToRequest(), getFacePersistency(), ndn::nfd::operator<<(), wireDecode(), and wireEncode().
|
inline |
Definition at line 475 of file control-parameters.hpp.
References hasFacePersistency().
Referenced by ndn::nfd::operator<<().
|
inline |
Definition at line 482 of file control-parameters.hpp.
References ndn::nfd::CONTROL_PARAMETER_FACE_PERSISTENCY, and ndn::Block::reset().
Referenced by ndn::nfd::FaceCreateCommand::applyDefaultsToRequest().
|
inline |
Definition at line 491 of file control-parameters.hpp.
References ndn::nfd::CONTROL_PARAMETER_FACE_PERSISTENCY, and ndn::Block::reset().
|
inline |
Definition at line 499 of file control-parameters.hpp.
References ndn::nfd::CONTROL_PARAMETER_BASE_CONGESTION_MARKING_INTERVAL.
Referenced by getBaseCongestionMarkingInterval(), ndn::nfd::operator<<(), wireDecode(), and wireEncode().
|
inline |
Definition at line 505 of file control-parameters.hpp.
References hasBaseCongestionMarkingInterval().
Referenced by ndn::nfd::operator<<().
|
inline |
Definition at line 512 of file control-parameters.hpp.
References ndn::nfd::CONTROL_PARAMETER_BASE_CONGESTION_MARKING_INTERVAL, and ndn::Block::reset().
|
inline |
Definition at line 521 of file control-parameters.hpp.
References ndn::nfd::CONTROL_PARAMETER_BASE_CONGESTION_MARKING_INTERVAL, and ndn::Block::reset().
|
inline |
Definition at line 529 of file control-parameters.hpp.
References ndn::nfd::CONTROL_PARAMETER_DEFAULT_CONGESTION_THRESHOLD.
Referenced by getDefaultCongestionThreshold(), ndn::nfd::operator<<(), wireDecode(), and wireEncode().
|
inline |
get default congestion threshold (measured in bytes)
Definition at line 537 of file control-parameters.hpp.
References hasDefaultCongestionThreshold().
Referenced by ndn::nfd::operator<<().
|
inline |
set default congestion threshold (measured in bytes)
Definition at line 546 of file control-parameters.hpp.
References ndn::nfd::CONTROL_PARAMETER_DEFAULT_CONGESTION_THRESHOLD, and ndn::Block::reset().
|
inline |
Definition at line 555 of file control-parameters.hpp.
References ndn::nfd::CONTROL_PARAMETER_DEFAULT_CONGESTION_THRESHOLD, and ndn::Block::reset().
|
inline |
Definition at line 563 of file control-parameters.hpp.
Referenced by ndn::nfd::ControlCommand::FieldValidator::validate().
bool ndn::nfd::ControlParameters::hasFlagBit | ( | size_t | bit | ) | const |
bit | bit position within range [0, 64) (least significant bit is 0) |
Definition at line 234 of file control-parameters.cpp.
bool ndn::nfd::ControlParameters::getFlagBit | ( | size_t | bit | ) | const |
bit | bit position within range [0, 64) (least significant bit is 0) |
Definition at line 248 of file control-parameters.cpp.
References getFlags(), and hasFlags().
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 262 of file control-parameters.cpp.
References getFlags(), getMask(), hasFlags(), hasMask(), setFlags(), and setMask().
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 287 of file control-parameters.cpp.
References getMask(), hasMask(), setMask(), unsetFlags(), and unsetMask().