NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.0: NDN, CCN, CCNx, content centric networks
API Documentation
ndn::nfd::ControlParameters Class Reference

represents parameters in a ControlCommand request or response More...

#include <nfd-control-parameters.hpp>

Inheritance diagram for ndn::nfd::ControlParameters:
Collaboration diagram for ndn::nfd::ControlParameters:

Classes

class  Error
 

Public Member Functions

 ControlParameters ()
 
 ControlParameters (const Block &block)
 
template<encoding::Tag TAG>
size_t wireEncode (EncodingImpl< TAG > &encoder) const
 
virtual Block wireEncode () const final
 
virtual void wireDecode (const Block &wire) final
 
bool hasName () const
 
const NamegetName () const
 
ControlParameterssetName (const Name &name)
 
ControlParametersunsetName ()
 
bool hasFaceId () const
 
uint64_t getFaceId () const
 
ControlParameterssetFaceId (uint64_t faceId)
 
ControlParametersunsetFaceId ()
 
bool hasUri () const
 
const std::string & getUri () const
 
ControlParameterssetUri (const std::string &uri)
 
ControlParametersunsetUri ()
 
bool hasLocalControlFeature () const
 
LocalControlFeature getLocalControlFeature () const
 
ControlParameterssetLocalControlFeature (LocalControlFeature localControlFeature)
 
ControlParametersunsetLocalControlFeature ()
 
bool hasOrigin () const
 
uint64_t getOrigin () const
 
ControlParameterssetOrigin (uint64_t origin)
 
ControlParametersunsetOrigin ()
 
bool hasCost () const
 
uint64_t getCost () const
 
ControlParameterssetCost (uint64_t cost)
 
ControlParametersunsetCost ()
 
bool hasFlags () const
 
uint64_t getFlags () const
 
ControlParameterssetFlags (uint64_t flags)
 
ControlParametersunsetFlags ()
 
bool hasStrategy () const
 
const NamegetStrategy () const
 
ControlParameterssetStrategy (const Name &strategy)
 
ControlParametersunsetStrategy ()
 
bool hasExpirationPeriod () const
 
const time::milliseconds & getExpirationPeriod () const
 
ControlParameterssetExpirationPeriod (const time::milliseconds &expirationPeriod)
 
ControlParametersunsetExpirationPeriod ()
 
bool hasFacePersistency () const
 
FacePersistency getFacePersistency () const
 
ControlParameterssetFacePersistency (FacePersistency persistency)
 
ControlParametersunsetFacePersistency ()
 
const std::vector< bool > & getPresentFields () const
 

Detailed Description

represents parameters in a ControlCommand request or response

See also
http://redmine.named-data.net/projects/nfd/wiki/ControlCommand#ControlParameters

This type is copyable because it's an abstraction of a TLV type.

Definition at line 77 of file nfd-control-parameters.hpp.

Constructor & Destructor Documentation

§ ControlParameters() [1/2]

ndn::nfd::ControlParameters::ControlParameters ( )

§ ControlParameters() [2/2]

ndn::nfd::ControlParameters::ControlParameters ( const Block block)
explicit

Definition at line 41 of file nfd-control-parameters.cpp.

References wireDecode().

Member Function Documentation

§ wireEncode() [1/2]

§ wireEncode() [2/2]

Block ndn::nfd::ControlParameters::wireEncode ( ) const
finalvirtual

§ wireDecode()

§ hasName()

bool ndn::nfd::ControlParameters::hasName ( ) const
inline

§ getName()

§ setName()

ControlParameters& ndn::nfd::ControlParameters::setName ( const Name name)
inline

§ unsetName()

ControlParameters& ndn::nfd::ControlParameters::unsetName ( )
inline

Definition at line 130 of file nfd-control-parameters.hpp.

References ndn::nfd::CONTROL_PARAMETER_NAME.

§ hasFaceId()

§ getFaceId()

§ setFaceId()

§ unsetFaceId()

ControlParameters& ndn::nfd::ControlParameters::unsetFaceId ( )
inline

Definition at line 160 of file nfd-control-parameters.hpp.

References ndn::nfd::CONTROL_PARAMETER_FACE_ID.

§ hasUri()

bool ndn::nfd::ControlParameters::hasUri ( ) const
inline

§ getUri()

const std::string& ndn::nfd::ControlParameters::getUri ( ) const
inline

Definition at line 174 of file nfd-control-parameters.hpp.

References hasUri().

Referenced by ndn::nfd::operator<<(), and nfd::FaceManager::setConfigFile().

§ setUri()

ControlParameters& ndn::nfd::ControlParameters::setUri ( const std::string &  uri)
inline

§ unsetUri()

ControlParameters& ndn::nfd::ControlParameters::unsetUri ( )
inline

Definition at line 190 of file nfd-control-parameters.hpp.

References ndn::nfd::CONTROL_PARAMETER_URI.

§ hasLocalControlFeature()

bool ndn::nfd::ControlParameters::hasLocalControlFeature ( ) const
inline

§ getLocalControlFeature()

LocalControlFeature ndn::nfd::ControlParameters::getLocalControlFeature ( ) const
inline

§ setLocalControlFeature()

ControlParameters& ndn::nfd::ControlParameters::setLocalControlFeature ( LocalControlFeature  localControlFeature)
inline

§ unsetLocalControlFeature()

ControlParameters& ndn::nfd::ControlParameters::unsetLocalControlFeature ( )
inline

§ hasOrigin()

§ getOrigin()

uint64_t ndn::nfd::ControlParameters::getOrigin ( ) const
inline

Definition at line 234 of file nfd-control-parameters.hpp.

References hasOrigin().

Referenced by ndn::nfd::operator<<(), and nfd::rib::RibManager::setConfigFile().

§ setOrigin()

§ unsetOrigin()

ControlParameters& ndn::nfd::ControlParameters::unsetOrigin ( )
inline

Definition at line 250 of file nfd-control-parameters.hpp.

References ndn::nfd::CONTROL_PARAMETER_ORIGIN.

§ hasCost()

§ getCost()

uint64_t ndn::nfd::ControlParameters::getCost ( ) const
inline

§ setCost()

§ unsetCost()

ControlParameters& ndn::nfd::ControlParameters::unsetCost ( )
inline

§ hasFlags()

bool ndn::nfd::ControlParameters::hasFlags ( ) const
inline

§ getFlags()

uint64_t ndn::nfd::ControlParameters::getFlags ( ) const
inline

Definition at line 294 of file nfd-control-parameters.hpp.

References hasFlags().

Referenced by ndn::nfd::operator<<(), and nfd::rib::RibManager::setConfigFile().

§ setFlags()

ControlParameters& ndn::nfd::ControlParameters::setFlags ( uint64_t  flags)
inline

§ unsetFlags()

ControlParameters& ndn::nfd::ControlParameters::unsetFlags ( )
inline

Definition at line 310 of file nfd-control-parameters.hpp.

References ndn::nfd::CONTROL_PARAMETER_FLAGS.

§ hasStrategy()

bool ndn::nfd::ControlParameters::hasStrategy ( ) const
inline

§ getStrategy()

const Name& ndn::nfd::ControlParameters::getStrategy ( ) const
inline

§ setStrategy()

ControlParameters& ndn::nfd::ControlParameters::setStrategy ( const Name strategy)
inline

§ unsetStrategy()

ControlParameters& ndn::nfd::ControlParameters::unsetStrategy ( )
inline

Definition at line 340 of file nfd-control-parameters.hpp.

References ndn::nfd::CONTROL_PARAMETER_STRATEGY.

§ hasExpirationPeriod()

bool ndn::nfd::ControlParameters::hasExpirationPeriod ( ) const
inline

§ getExpirationPeriod()

const time::milliseconds& ndn::nfd::ControlParameters::getExpirationPeriod ( ) const
inline

§ setExpirationPeriod()

ControlParameters& ndn::nfd::ControlParameters::setExpirationPeriod ( const time::milliseconds &  expirationPeriod)
inline

§ unsetExpirationPeriod()

ControlParameters& ndn::nfd::ControlParameters::unsetExpirationPeriod ( )
inline

§ hasFacePersistency()

bool ndn::nfd::ControlParameters::hasFacePersistency ( ) const
inline

§ getFacePersistency()

FacePersistency ndn::nfd::ControlParameters::getFacePersistency ( ) const
inline

Definition at line 384 of file nfd-control-parameters.hpp.

References hasFacePersistency().

Referenced by nfd::FaceManager::setConfigFile().

§ setFacePersistency()

ControlParameters& ndn::nfd::ControlParameters::setFacePersistency ( FacePersistency  persistency)
inline

§ unsetFacePersistency()

ControlParameters& ndn::nfd::ControlParameters::unsetFacePersistency ( )
inline

§ getPresentFields()

const std::vector<bool>& ndn::nfd::ControlParameters::getPresentFields ( ) const
inline

The documentation for this class was generated from the following files: