NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.0: NDN, CCN, CCNx, content centric networks
API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
nfd::cs::skip_list::Entry Class Reference

represents an entry in a CS with skip list implementation More...

#include <cs-skip-list-entry.hpp>

Inheritance diagram for nfd::cs::skip_list::Entry:
Collaboration diagram for nfd::cs::skip_list::Entry:

Public Types

typedef std::map< int,
std::list< Entry * >::iterator > 
LayerIterators
 

Public Member Functions

 Entry ()=default
 
void release ()
 releases reference counts on shared objects More...
 
void setIterator (int layer, const LayerIterators::mapped_type &layerIterator)
 saves the iterator pointing to the CS entry on a specific layer of skip list More...
 
void removeIterator (int layer)
 removes the iterator pointing to the CS entry on a specific layer of skip list More...
 
const LayerIteratorsgetIterators () const
 returns the table containing <layer, iterator> pairs. More...
 
- Public Member Functions inherited from nfd::cs::Entry
 Entry ()
 
const Name & getName () const
 returns the name of the Data packet stored in the CS entry More...
 
const Name & getFullName () const
 returns the full name (including implicit digest) of the Data packet stored in the CS entry More...
 
bool isUnsolicited () const
 Data packet is unsolicited if this particular NDN node did not receive an Interest packet for it, or the Interest packet has already expired. More...
 
const Data & getData () const
 returns the Data packet stored in the CS entry More...
 
void setData (const Data &data, bool isUnsolicited)
 changes the content of CS entry and recomputes digest More...
 
const
time::steady_clock::TimePoint & 
getStaleTime () const
 returns the absolute time when Data becomes expired More...
 
void updateStaleTime ()
 refreshes the time when Data becomes expired according to the current absolute time. More...
 
bool isStale () const
 checks if the stored Data is stale More...
 
void reset ()
 clears CS entry After reset, *this == Entry() More...
 

Detailed Description

represents an entry in a CS with skip list implementation

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

Member Typedef Documentation

typedef std::map<int, std::list<Entry*>::iterator > nfd::cs::skip_list::Entry::LayerIterators

Definition at line 45 of file cs-skip-list-entry.hpp.

Constructor & Destructor Documentation

nfd::cs::skip_list::Entry::Entry ( )
default

Member Function Documentation

const Entry::LayerIterators & nfd::cs::skip_list::Entry::getIterators ( ) const
inline

returns the table containing <layer, iterator> pairs.

Definition at line 80 of file cs-skip-list-entry.hpp.

void nfd::cs::skip_list::Entry::release ( )

releases reference counts on shared objects

Definition at line 40 of file cs-skip-list-entry.cpp.

References nfd::cs::Entry::reset().

void nfd::cs::skip_list::Entry::removeIterator ( int  layer)

removes the iterator pointing to the CS entry on a specific layer of skip list

Definition at line 54 of file cs-skip-list-entry.cpp.

void nfd::cs::skip_list::Entry::setIterator ( int  layer,
const LayerIterators::mapped_type &  layerIterator 
)

saves the iterator pointing to the CS entry on a specific layer of skip list

Definition at line 48 of file cs-skip-list-entry.cpp.


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