20 #ifndef PSYNC_DETAIL_STATE_HPP
21 #define PSYNC_DETAIL_STATE_HPP
23 #include <ndn-cxx/name.hpp>
41 State(
const ndn::Block& block);
46 const std::vector<ndn::Name>&
55 template<ndn::encoding::Tag TAG>
57 wireEncode(ndn::EncodingImpl<TAG>& block)
const;
62 std::vector<ndn::Name>::const_iterator
65 return m_content.cbegin();
68 std::vector<ndn::Name>::const_iterator
71 return m_content.cend();
75 std::vector<ndn::Name> m_content;
76 mutable ndn::Block m_wire;
79 NDN_CXX_DECLARE_WIRE_ENCODE_INSTANTIATIONS(State);
82 operator<<(std::ostream& os,
const State& State);
const std::vector< ndn::Name > & getContent() const
void wireDecode(const ndn::Block &wire)
std::vector< ndn::Name >::const_iterator begin() const
std::vector< ndn::Name >::const_iterator end() const
void addContent(const ndn::Name &prefix)
const ndn::Block & wireEncode() const
std::ostream & operator<<(std::ostream &os, const IBLT &iblt)