All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Pages
Public Member Functions | List of all members
ndn::MemoryContentCache::Content Class Reference

Content is a private class to hold the name and encoding for each entry in the cache. More...

#include <memory-content-cache.hpp>

Public Member Functions

 Content (const Data &data)
 Create a new Content entry to hold data's name and wire encoding. More...
 
const Name & getName () const
 Get the content Name. More...
 
const Blob & getDataEncoding () const
 Get the encoded content Data packet. More...
 

Detailed Description

Content is a private class to hold the name and encoding for each entry in the cache.

Constructor & Destructor Documentation

ndn::MemoryContentCache::Content::Content ( const Data &  data)
inline

Create a new Content entry to hold data's name and wire encoding.

Parameters
dataThe Data packet whose name and wire encoding are copied.

Member Function Documentation

const Blob& ndn::MemoryContentCache::Content::getDataEncoding ( ) const
inline

Get the encoded content Data packet.

Returns
The encoded content Blob.
const Name& ndn::MemoryContentCache::Content::getName ( ) const
inline

Get the content Name.

Returns
The content Name.

The documentation for this class was generated from the following file: