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 started.
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 started.
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)