psync::detail::State Class Reference

#include <PSync/detail/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 35 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 27 of file state.cpp.

Member Function Documentation

◆ addContent()

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

Definition at line 33 of file state.cpp.

◆ begin()

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

Definition at line 63 of file state.hpp.

◆ end()

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

Definition at line 69 of file state.hpp.

◆ getContent()

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

Definition at line 47 of file state.hpp.

◆ wireDecode()

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

Definition at line 75 of file state.cpp.

◆ wireEncode() [1/2]

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

Definition at line 40 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 58 of file state.cpp.