22 #ifndef NDN_CXX_MGMT_NFD_CS_INFO_HPP
23 #define NDN_CXX_MGMT_NFD_CS_INFO_HPP
50 template<encoding::Tag TAG>
127 using FlagsBitSet = std::bitset<2>;
129 uint64_t m_capacity = 0;
131 uint64_t m_nEntries = 0;
132 uint64_t m_nHits = 0;
133 uint64_t m_nMisses = 0;
135 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
Contains classes and functions related to the NFD Management protocol.
bool operator!=(const ChannelStatus &a, const ChannelStatus &b)
std::ostream & operator<<(std::ostream &os, FaceScope faceScope)
bool operator==(const ChannelStatus &a, const ChannelStatus &b)