|
NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.5: NDN, CCN, CCNx, content centric networks
|
API Documentation
|
Go to the documentation of this file.
46 template<encoding::Tag TAG>
50 size_t totalLength = 0;
58 totalLength += encoder.prependVarNumber(totalLength);
77 m_wire = buffer.block();
136 m_capacity = capacity;
160 m_nEntries = nEntries;
194 return os <<
"CsInfo: "
196 << (csi.
getEnableAdmit() ?
"admit enabled, " :
"admit disabled, ")
197 << (csi.
getEnableServe() ?
"serve enabled, " :
"serve disabled, ")
void wireDecode(const Block &wire)
CsInfo & setNMisses(uint64_t nMisses)
std::ostream & operator<<(std::ostream &os, FaceScope faceScope)
element_const_iterator elements_begin() const
Equivalent to elements().begin()
CsInfo & setNHits(uint64_t nHits)
void reset() noexcept
Reset the Block to a default-constructed state.
represents the CS Information dataset
EncodingImpl< EstimatorTag > EncodingEstimator
uint64_t readNonNegativeInteger(const Block &block)
Read a non-negative integer from a TLV element.
CsInfo & setEnableServe(bool enableServe)
CsInfo & setNEntries(uint64_t nEntries)
Copyright (c) 2011-2015 Regents of the University of California.
uint32_t type() const
Return the TLV-TYPE of the Block.
const Block & wireEncode() const
CsInfo & setEnableAdmit(bool enableAdmit)
@ BIT_CS_ENABLE_SERVE
enables the CS to satisfy Interests using cached Data
@ BIT_CS_ENABLE_ADMIT
enables the CS to admit new Data
void parse() const
Parse TLV-VALUE into sub-elements.
size_t prependNonNegativeIntegerBlock(EncodingImpl< TAG > &encoder, uint32_t type, uint64_t value)
Prepend a TLV element containing a non-negative integer.
uint64_t getCapacity() const
get CS capacity (in number of packets)
Represents a TLV element of NDN packet format.
element_const_iterator elements_end() const
Equivalent to elements().end()
bool getEnableAdmit() const
get CS_ENABLE_ADMIT flag
uint64_t getNEntries() const
get number of stored CS entries
bool hasWire() const noexcept
Check if the Block contains a fully encoded wire representation.
uint64_t getNHits() const
get number of CS lookup hits since NFD starts
bool operator==(const ChannelStatus &a, const ChannelStatus &b)
bool getEnableServe() const
get CS_ENABLE_SERVE flag
CsInfo & setCapacity(uint64_t capacity)
concept check for an item in a Status Dataset
uint64_t getNMisses() const
get number of CS lookup misses since NFD starts
NDN_CXX_DEFINE_WIRE_ENCODE_INSTANTIATIONS(ChannelStatus)
Copyright (c) 2011-2015 Regents of the University of California.
EncodingImpl< EncoderTag > EncodingBuffer