20 #ifndef PSYNC_DETAIL_STATE_HPP 21 #define PSYNC_DETAIL_STATE_HPP 23 #include <ndn-cxx/name.hpp> 42 State(
const ndn::Block& block);
45 addContent(
const ndn::Name& prefix);
47 const std::vector<ndn::Name>&
56 template<ndn::encoding::Tag TAG>
58 wireEncode(ndn::EncodingImpl<TAG>& block)
const;
61 wireDecode(
const ndn::Block& wire);
63 std::vector<ndn::Name>::const_iterator
66 return m_content.cbegin();
69 std::vector<ndn::Name>::const_iterator
72 return m_content.cend();
76 std::vector<ndn::Name> m_content;
77 mutable ndn::Block m_wire;
80 NDN_CXX_DECLARE_WIRE_ENCODE_INSTANTIATIONS(
State);
88 #endif // PSYNC_DETAIL_STATE_HPP std::ostream & operator<<(std::ostream &os, const IBLT &iblt)
std::vector< ndn::Name >::const_iterator begin() const
std::vector< ndn::Name >::const_iterator end() const
const std::vector< ndn::Name > & getContent() const