22 #ifndef NDN_MGMT_NFD_CS_INFO_HPP 23 #define NDN_MGMT_NFD_CS_INFO_HPP 51 template<encoding::Tag TAG>
128 using FlagsBitSet = std::bitset<2>;
136 mutable Block m_wire;
156 #endif // NDN_MGMT_NFD_CS_INFO_HPP CsInfo & setNHits(uint64_t nHits)
uint64_t getNMisses() const
get number of CS lookup misses since NFD starts
bool operator!=(const ChannelStatus &a, const ChannelStatus &b)
uint64_t getCapacity() const
get CS capacity (in number of packets)
const Block & wireEncode() const
bool getEnableAdmit() const
get CS_ENABLE_ADMIT flag
bool getEnableServe() const
get CS_ENABLE_SERVE flag
Represents a TLV element of NDN packet format.
CsInfo & setNEntries(uint64_t nEntries)
CsInfo & setEnableAdmit(bool enableAdmit)
#define NDN_CXX_DECLARE_WIRE_ENCODE_INSTANTIATIONS(ClassName)
uint64_t getNHits() const
get number of CS lookup hits since NFD starts
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
CsInfo & setCapacity(uint64_t capacity)
CsInfo & setNMisses(uint64_t nMisses)
Error(const char *expectedType, uint32_t actualType)
represents an error in TLV encoding or decoding
uint64_t getNEntries() const
get number of stored CS entries