psync::State Class Reference

#include <state.hpp>

Public Member Functions

 State (const ndn::Block &block)
 
 State ()=default
 
void addContent (const ndn::Name &prefix)
 
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::State::State ( const ndn::Block &  block)
explicit

Definition at line 26 of file state.cpp.

◆ State() [2/2]

psync::State::State ( )
default

Member Function Documentation

◆ addContent()

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

Definition at line 32 of file state.cpp.

◆ getContent()

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

Definition at line 46 of file state.hpp.

◆ wireDecode()

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

Definition at line 74 of file state.cpp.

◆ wireEncode() [1/2]

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

Definition at line 38 of file state.cpp.

◆ wireEncode() [2/2]

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

Definition at line 56 of file state.cpp.