22 #ifndef NDN_MGMT_NFD_FACE_TRAITS_HPP 23 #define NDN_MGMT_NFD_FACE_TRAITS_HPP 57 return static_cast<C&
>(*this);
71 return static_cast<C&
>(*this);
85 return static_cast<C&
>(*this);
99 return static_cast<C&
>(*this);
113 return static_cast<C&
>(*this);
127 return static_cast<C&
>(*this);
141 return static_cast<C&
>(*this);
148 NDN_THROW(std::out_of_range(
"bit must be within range [0, 64)"));
157 NDN_THROW(std::out_of_range(
"bit must be within range [0, 64)"));
169 return static_cast<C&
>(*this);
197 #endif // NDN_MGMT_NFD_FACE_TRAITS_HPP LinkType getLinkType() const
uint64_t getFlags() const
FaceScope getFaceScope() const
FacePersistency m_facePersistency
Represents a TLV element of NDN packet format.
C & setFaceId(uint64_t faceId)
bool getFlagBit(size_t bit) const
C & setLocalUri(const std::string &localUri)
void reset() noexcept
Reset the Block to a default-constructed state.
C & setRemoteUri(const std::string &remoteUri)
uint64_t getFaceId() const
C & setFaceScope(FaceScope faceScope)
const std::string & getLocalUri() const
const std::string & getRemoteUri() const
FacePersistency getFacePersistency() const
provides getters and setters for face information fields
C & setLinkType(LinkType linkType)
C & setFacePersistency(FacePersistency facePersistency)
C & setFlagBit(size_t bit, bool value)
C & setFlags(uint64_t flags)
Error(const char *expectedType, uint32_t actualType)
represents an error in TLV encoding or decoding
const uint64_t INVALID_FACE_ID