psync::detail::State Class Reference

#include <state.hpp>

Public Member Functions

 State ()=default
 
 State (const ndn::Block &block)
 
void addContent (const ndn::Name &prefix)
 
std::vector< ndn::Name >::const_iterator begin () const
 
std::vector< ndn::Name >::const_iterator end () const
 
const std::vector< ndn::Name > & getContent () const
 
void wireDecode (const ndn::Block &wire)
 
const ndn::Block & wireEncode () const
 
template<ndn::encoding::Tag TAG>
size_t wireEncode (ndn::EncodingImpl< TAG > &block) const
 

Detailed Description

Definition at line 36 of file state.hpp.

Constructor & Destructor Documentation

◆ State() [1/2]

psync::detail::State::State ( )
default

◆ State() [2/2]

psync::detail::State::State ( const ndn::Block &  block)
explicit

Definition at line 28 of file state.cpp.

Member Function Documentation

◆ addContent()

void psync::detail::State::addContent ( const ndn::Name &  prefix)

Definition at line 34 of file state.cpp.

◆ begin()

std::vector<ndn::Name>::const_iterator psync::detail::State::begin ( ) const
inline

Definition at line 64 of file state.hpp.

◆ end()

std::vector<ndn::Name>::const_iterator psync::detail::State::end ( ) const
inline

Definition at line 70 of file state.hpp.

◆ getContent()

const std::vector<ndn::Name>& psync::detail::State::getContent ( ) const
inline

Definition at line 48 of file state.hpp.

◆ wireDecode()

void psync::detail::State::wireDecode ( const ndn::Block &  wire)

Definition at line 76 of file state.cpp.

◆ wireEncode() [1/2]

const ndn::Block & psync::detail::State::wireEncode ( ) const

Definition at line 41 of file state.cpp.

◆ wireEncode() [2/2]

template<ndn::encoding::Tag TAG>
size_t psync::detail::State::wireEncode ( ndn::EncodingImpl< TAG > &  block) const

Definition at line 59 of file state.cpp.