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

represents the CS Information dataset More...

#include <cs-info.hpp>

Classes

class  Error
 

Public Member Functions

 CsInfo ()
 
 CsInfo (const Block &block)
 
template<encoding::Tag TAG>
size_t wireEncode (EncodingImpl< TAG > &encoder) const
 
const BlockwireEncode () const
 
void wireDecode (const Block &wire)
 
uint64_t getCapacity () const
 get CS capacity (in number of packets) More...
 
CsInfosetCapacity (uint64_t capacity)
 
bool getEnableAdmit () const
 get CS_ENABLE_ADMIT flag More...
 
CsInfosetEnableAdmit (bool enableAdmit)
 
bool getEnableServe () const
 get CS_ENABLE_SERVE flag More...
 
CsInfosetEnableServe (bool enableServe)
 
uint64_t getNEntries () const
 get number of stored CS entries More...
 
CsInfosetNEntries (uint64_t nEntries)
 
uint64_t getNHits () const
 get number of CS lookup hits since NFD starts More...
 
CsInfosetNHits (uint64_t nHits)
 
uint64_t getNMisses () const
 get number of CS lookup misses since NFD starts More...
 
CsInfosetNMisses (uint64_t nMisses)
 

Detailed Description

represents the CS Information dataset

See also
https://redmine.named-data.net/projects/nfd/wiki/CsMgmt#CS-Information-Dataset

Definition at line 37 of file cs-info.hpp.

Constructor & Destructor Documentation

◆ CsInfo() [1/2]

ndn::nfd::CsInfo::CsInfo ( )

Definition at line 33 of file cs-info.cpp.

◆ CsInfo() [2/2]

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

Definition at line 41 of file cs-info.cpp.

References wireDecode().

Member Function Documentation

◆ wireEncode() [1/2]

template<encoding::Tag TAG>
size_t ndn::nfd::CsInfo::wireEncode ( EncodingImpl< TAG > &  encoder) const

◆ wireEncode() [2/2]

const Block & ndn::nfd::CsInfo::wireEncode ( ) const

Definition at line 66 of file cs-info.cpp.

References ndn::Block::hasWire().

◆ wireDecode()

◆ getCapacity()

uint64_t ndn::nfd::CsInfo::getCapacity ( ) const
inline

get CS capacity (in number of packets)

Definition at line 64 of file cs-info.hpp.

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

◆ setCapacity()

CsInfo & ndn::nfd::CsInfo::setCapacity ( uint64_t  capacity)

Definition at line 133 of file cs-info.cpp.

References ndn::Block::reset().

◆ getEnableAdmit()

bool ndn::nfd::CsInfo::getEnableAdmit ( ) const
inline

get CS_ENABLE_ADMIT flag

Definition at line 75 of file cs-info.hpp.

References ndn::nfd::BIT_CS_ENABLE_ADMIT.

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

◆ setEnableAdmit()

CsInfo & ndn::nfd::CsInfo::setEnableAdmit ( bool  enableAdmit)

Definition at line 141 of file cs-info.cpp.

References ndn::nfd::BIT_CS_ENABLE_ADMIT, and ndn::Block::reset().

◆ getEnableServe()

bool ndn::nfd::CsInfo::getEnableServe ( ) const
inline

get CS_ENABLE_SERVE flag

Definition at line 86 of file cs-info.hpp.

References ndn::nfd::BIT_CS_ENABLE_SERVE.

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

◆ setEnableServe()

CsInfo & ndn::nfd::CsInfo::setEnableServe ( bool  enableServe)

Definition at line 149 of file cs-info.cpp.

References ndn::nfd::BIT_CS_ENABLE_SERVE, and ndn::Block::reset().

◆ getNEntries()

uint64_t ndn::nfd::CsInfo::getNEntries ( ) const
inline

get number of stored CS entries

Definition at line 97 of file cs-info.hpp.

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

◆ setNEntries()

CsInfo & ndn::nfd::CsInfo::setNEntries ( uint64_t  nEntries)

Definition at line 157 of file cs-info.cpp.

References ndn::Block::reset().

◆ getNHits()

uint64_t ndn::nfd::CsInfo::getNHits ( ) const
inline

get number of CS lookup hits since NFD starts

Definition at line 108 of file cs-info.hpp.

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

◆ setNHits()

CsInfo & ndn::nfd::CsInfo::setNHits ( uint64_t  nHits)

Definition at line 165 of file cs-info.cpp.

References ndn::Block::reset().

◆ getNMisses()

uint64_t ndn::nfd::CsInfo::getNMisses ( ) const
inline

get number of CS lookup misses since NFD starts

Definition at line 119 of file cs-info.hpp.

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

◆ setNMisses()

CsInfo & ndn::nfd::CsInfo::setNMisses ( uint64_t  nMisses)

Definition at line 173 of file cs-info.cpp.

References ndn::Block::reset().


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