22 #ifndef NDN_MGMT_NFD_CS_INFO_HPP 23 #define NDN_MGMT_NFD_CS_INFO_HPP 25 #include "../../encoding/block.hpp" 26 #include "../../encoding/nfd-constants.hpp" 55 template<encoding::Tag TAG>
132 using FlagsBitSet = std::bitset<2>;
139 mutable Block m_wire;
159 #endif // NDN_MGMT_NFD_CS_INFO_HPP CsInfo & setNHits(uint64_t nHits)
Copyright (c) 2013-2017 Regents of the University of California.
bool operator!=(const ChannelStatus &a, const ChannelStatus &b)
uint64_t getCapacity() const
get CS capacity (in number of packets)
Represents a TLV element of NDN packet format.
CsInfo & setNEntries(uint64_t nEntries)
CsInfo & setEnableAdmit(bool enableAdmit)
uint64_t getNMisses() const
get number of CS lookup misses since NFD starts
Error(const std::string &what)
#define NDN_CXX_DECLARE_WIRE_ENCODE_INSTANTIATIONS(ClassName)
bool getEnableAdmit() const
get CS_ENABLE_ADMIT flag
bool getEnableServe() const
get CS_ENABLE_SERVE flag
void wireDecode(const Block &wire)
CsInfo & setEnableServe(bool enableServe)
bool operator==(const ChannelStatus &a, const ChannelStatus &b)
enables the CS to satisfy Interests using cached Data
enables the CS to admit new Data
std::ostream & operator<<(std::ostream &os, FaceScope faceScope)
represents the CS Information dataset
uint64_t getNHits() const
get number of CS lookup hits since NFD starts
CsInfo & setCapacity(uint64_t capacity)
CsInfo & setNMisses(uint64_t nMisses)
const Block & wireEncode() const
represents an error in TLV encoding or decoding
uint64_t getNEntries() const
get number of stored CS entries