represents an entry in a CS with skip list implementation More...
#include <cs-skip-list-entry.hpp>
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 LayerIterators & | getIterators () 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... | |
represents an entry in a CS with skip list implementation
Definition at line 42 of file cs-skip-list-entry.hpp.
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.
|
default |
|
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.