|
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.
30 BOOST_CONCEPT_ASSERT((boost::EqualityComparable<FaceQueryFilter>));
33 static_assert(std::is_base_of<tlv::Error, FaceQueryFilter::Error>::value,
34 "FaceQueryFilter::Error must inherit from tlv::Error");
43 template<encoding::Tag TAG>
47 size_t totalLength = 0;
54 if (m_facePersistency) {
81 totalLength += encoder.prependVarNumber(totalLength);
100 m_wire = buffer.block();
150 m_faceScope = readNonNegativeIntegerAs<FaceScope>(*val);
158 m_facePersistency = readNonNegativeIntegerAs<FacePersistency>(*val);
166 m_linkType = readNonNegativeIntegerAs<LinkType>(*val);
206 m_uriScheme = uriScheme;
220 m_remoteUri = remoteUri;
234 m_localUri = localUri;
248 m_faceScope = faceScope;
264 m_facePersistency = facePersistency;
280 m_linkType = linkType;
314 os <<
"FaceQueryFilter(";
316 os <<
"FaceID: " << filter.
getFaceId() <<
",\n";
328 os <<
"LocalUri: " << filter.
getLocalUri() <<
",\n";
340 os <<
"LinkType: " << filter.
getLinkType() <<
",\n";
uint64_t getFaceId() const
FaceQueryFilter & setLinkType(LinkType linkType)
const std::string & getUriScheme() const
std::ostream & operator<<(std::ostream &os, FaceScope faceScope)
void wireDecode(const Block &wire)
decode FaceQueryFilter
FaceScope getFaceScope() const
bool hasFaceScope() const
element_const_iterator elements_begin() const
Equivalent to elements().begin()
const Block & wireEncode() const
encode FaceQueryFilter
FaceQueryFilter & unsetFaceId()
FaceQueryFilter & unsetUriScheme()
std::string readString(const Block &block)
Read TLV-VALUE of a TLV element as a string.
void reset() noexcept
Reset the Block to a default-constructed state.
FaceQueryFilter & setUriScheme(const std::string &uriScheme)
bool hasFacePersistency() const
a concept check for TLV abstraction with .wireDecode method and constructible from Block
EncodingImpl< EstimatorTag > EncodingEstimator
uint64_t readNonNegativeInteger(const Block &block)
Read a non-negative integer from a TLV element.
FaceQueryFilter & setFaceId(uint64_t faceId)
bool hasUriScheme() const
Copyright (c) 2011-2015 Regents of the University of California.
uint32_t type() const
Return the TLV-TYPE of the Block.
a concept check for TLV abstraction with .wireEncode method
bool hasRemoteUri() const
const std::string & getLocalUri() const
FaceQueryFilter & setFaceScope(FaceScope faceScope)
const nullopt_t nullopt((nullopt_t::init()))
FaceQueryFilter & setRemoteUri(const std::string &remoteUri)
LinkType getLinkType() const
FaceQueryFilter & setFacePersistency(FacePersistency facePersistency)
FacePersistency getFacePersistency() const
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.
const std::string & getRemoteUri() const
FaceQueryFilter & unsetRemoteUri()
FaceQueryFilter & unsetFacePersistency()
FaceQueryFilter & unsetFaceScope()
FaceQueryFilter & setLocalUri(const std::string &localUri)
Represents a TLV element of NDN packet format.
element_const_iterator elements_end() const
Equivalent to elements().end()
bool hasWire() const noexcept
Check if the Block contains a fully encoded wire representation.
bool operator==(const ChannelStatus &a, const ChannelStatus &b)
size_t prependStringBlock(EncodingImpl< TAG > &encoder, uint32_t type, const std::string &value)
Prepend a TLV element containing a string.
NDN_CXX_DEFINE_WIRE_ENCODE_INSTANTIATIONS(ChannelStatus)
represents Face Query Filter
Copyright (c) 2011-2015 Regents of the University of California.
EncodingImpl< EncoderTag > EncodingBuffer
FaceQueryFilter & unsetLocalUri()
FaceQueryFilter & unsetLinkType()