nfd::cs::Entry Class Reference

A ContentStore entry. More...

#include <daemon/table/cs-entry.hpp>

Public Member Functions

 Entry (shared_ptr< const Data > data, bool isUnsolicited)
 
bool canSatisfy (const Interest &interest) const
 Determine whether Interest can be satisified by the stored Data. More...
 
void clearUnsolicited ()
 Clear 'unsolicited' flag. More...
 
const Data & getData () const
 Return the stored Data. More...
 
const Name & getFullName () const
 Return full name (including implicit digest) of the stored Data. More...
 
const Name & getName () const
 Return stored Data name. More...
 
bool isFresh () const
 Check if the stored Data is fresh now. More...
 
bool isUnsolicited () const
 Return whether the stored Data is unsolicited. More...
 
void updateFreshUntil ()
 Recalculate when the entry would become non-fresh, relative to current time. More...
 

Detailed Description

A ContentStore entry.

Definition at line 37 of file cs-entry.hpp.

Constructor & Destructor Documentation

◆ Entry()

nfd::cs::Entry::Entry ( shared_ptr< const Data >  data,
bool  isUnsolicited 
)

Definition at line 30 of file cs-entry.cpp.

Member Function Documentation

◆ canSatisfy()

bool nfd::cs::Entry::canSatisfy ( const Interest &  interest) const

Determine whether Interest can be satisified by the stored Data.

Definition at line 50 of file cs-entry.cpp.

◆ clearUnsolicited()

void nfd::cs::Entry::clearUnsolicited ( )
inline

Clear 'unsolicited' flag.

Definition at line 93 of file cs-entry.hpp.

◆ getData()

const Data& nfd::cs::Entry::getData ( ) const
inline

Return the stored Data.

Definition at line 43 of file cs-entry.hpp.

◆ getFullName()

const Name& nfd::cs::Entry::getFullName ( ) const
inline

Return full name (including implicit digest) of the stored Data.

Definition at line 59 of file cs-entry.hpp.

◆ getName()

const Name& nfd::cs::Entry::getName ( ) const
inline

Return stored Data name.

Definition at line 51 of file cs-entry.hpp.

◆ isFresh()

bool nfd::cs::Entry::isFresh ( ) const

Check if the stored Data is fresh now.

Definition at line 38 of file cs-entry.cpp.

◆ isUnsolicited()

bool nfd::cs::Entry::isUnsolicited ( ) const
inline

Return whether the stored Data is unsolicited.

Definition at line 67 of file cs-entry.hpp.

◆ updateFreshUntil()

void nfd::cs::Entry::updateFreshUntil ( )

Recalculate when the entry would become non-fresh, relative to current time.

Definition at line 44 of file cs-entry.cpp.