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 36 of file cs-entry.hpp.

Constructor & Destructor Documentation

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

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

Member Function Documentation

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

determine whether Interest can be satisified by the stored Data

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

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

clear 'unsolicited' flag

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

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

return the stored Data

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

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

return full name (including implicit digest) of the stored Data

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

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

return stored Data name

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

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

check if the stored Data is fresh now

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

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

return whether the stored Data is unsolicited

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

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

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

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