22 #ifndef NDN_CXX_MGMT_NFD_CS_INFO_HPP
23 #define NDN_CXX_MGMT_NFD_CS_INFO_HPP
51 template<encoding::Tag TAG>
128 using FlagsBitSet = std::bitset<2>;
136 mutable Block m_wire;
Represents a TLV element of the NDN packet format.
represents the CS Information dataset
CsInfo & setEnableServe(bool enableServe)
CsInfo & setNEntries(uint64_t nEntries)
CsInfo & setEnableAdmit(bool enableAdmit)
uint64_t getCapacity() const
get CS capacity (in number of packets)
CsInfo & setNMisses(uint64_t nMisses)
void wireDecode(const Block &wire)
const Block & wireEncode() const
bool getEnableAdmit() const
get CS_ENABLE_ADMIT flag
uint64_t getNEntries() const
get number of stored CS entries
CsInfo & setCapacity(uint64_t capacity)
uint64_t getNHits() const
get number of CS lookup hits since NFD starts
CsInfo & setNHits(uint64_t nHits)
bool getEnableServe() const
get CS_ENABLE_SERVE flag
uint64_t getNMisses() const
get number of CS lookup misses since NFD starts
represents an error in TLV encoding or decoding
Error(const char *expectedType, uint32_t actualType)
#define NDN_CXX_DECLARE_WIRE_ENCODE_INSTANTIATIONS(ClassName)
@ BIT_CS_ENABLE_ADMIT
enables the CS to admit new Data
@ BIT_CS_ENABLE_SERVE
enables the CS to satisfy Interests using cached Data
bool operator!=(const ChannelStatus &a, const ChannelStatus &b)
std::ostream & operator<<(std::ostream &os, FaceScope faceScope)
bool operator==(const ChannelStatus &a, const ChannelStatus &b)