represents a CachePolicy header field More...
#include <cache-policy.hpp>
Data Structures | |
class | Error |
Public Member Functions | |
CachePolicy () | |
CachePolicy (const Block &block) | |
template<encoding::Tag TAG> | |
size_t | wireEncode (EncodingImpl< TAG > &encoder) const |
prepend CachePolicy to encoder More... | |
const Block & | wireEncode () const |
encode CachePolicy into wire format More... | |
void | wireDecode (const Block &wire) |
get CachePolicyType from wire format More... | |
CachePolicyType | getPolicy () const |
CachePolicy & | setPolicy (CachePolicyType policy) |
set policy type code More... | |
represents a CachePolicy header field
Definition at line 51 of file cache-policy.hpp.
ndn::lp::CachePolicy::CachePolicy | ( | ) |
Definition at line 44 of file cache-policy.cpp.
|
explicit |
Definition at line 49 of file cache-policy.cpp.
CachePolicyType ndn::lp::CachePolicy::getPolicy | ( | ) | const |
CachePolicyType::NONE | if policy type is unset or has an unknown code |
Definition at line 120 of file cache-policy.cpp.
CachePolicy & ndn::lp::CachePolicy::setPolicy | ( | CachePolicyType | policy | ) |
set policy type code
policy | a policy type code; CachePolicyType::NONE clears the policy |
Definition at line 131 of file cache-policy.cpp.
void ndn::lp::CachePolicy::wireDecode | ( | const Block & | wire | ) |
get CachePolicyType from wire format
Definition at line 98 of file cache-policy.cpp.
size_t ndn::lp::CachePolicy::wireEncode | ( | EncodingImpl< TAG > & | encoder | ) | const |
prepend CachePolicy to encoder
Error | policy type is unset |
Definition at line 56 of file cache-policy.cpp.
const Block & ndn::lp::CachePolicy::wireEncode | ( | ) | const |
encode CachePolicy into wire format
Definition at line 76 of file cache-policy.cpp.