|
ndn-cxx: NDN C++ Library 0.9.0-33-g832ea91d
|
Represents a CachePolicy header field. More...
#include <ndn-cxx/lp/cache-policy.hpp>
Classes | |
| class | Error |
Public Member Functions | |
| CachePolicy ()=default | |
| CachePolicy (const Block &block) | |
| CachePolicyType | getPolicy () const |
| Get policy type code. | |
| CachePolicy & | setPolicy (CachePolicyType policy) |
| Set policy type code. | |
| void | wireDecode (const Block &wire) |
| Get CachePolicyType from wire format. | |
| const Block & | wireEncode () const |
| Encode CachePolicy into wire format. | |
| template<encoding::Tag TAG> | |
| size_t | wireEncode (EncodingImpl< TAG > &encoder) const |
| Prepend CachePolicy to encoder. | |
Represents a CachePolicy header field.
Definition at line 46 of file cache-policy.hpp.
|
default |
|
explicit |
Definition at line 40 of file cache-policy.cpp.
| CachePolicyType ndn::lp::CachePolicy::getPolicy | ( | ) | const |
Get policy type code.
| CachePolicyType::NONE | if policy type is unset or has an unknown code. |
Definition at line 107 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 118 of file cache-policy.cpp.
| void ndn::lp::CachePolicy::wireDecode | ( | const Block & | wire | ) |
Get CachePolicyType from wire format.
Definition at line 84 of file cache-policy.cpp.
| const Block & ndn::lp::CachePolicy::wireEncode | ( | ) | const |
Encode CachePolicy into wire format.
Definition at line 63 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 47 of file cache-policy.cpp.