NFD's Interest Table.
More...
#include <daemon/table/pit.hpp>
NFD's Interest Table.
Definition at line 84 of file pit.hpp.
◆ const_iterator
◆ Pit()
nfd::pit::Pit::Pit |
( |
NameTree & |
nameTree | ) |
|
|
explicit |
◆ begin()
- Returns
- an iterator to the beginning
- Note
- Iteration order is implementation-defined.
- Warning
- Undefined behavior may occur if a FIB/PIT/Measurements/StrategyChoice entry is inserted or erased during iteration.
Definition at line 142 of file pit.cpp.
◆ deleteInOutRecords()
void nfd::pit::Pit::deleteInOutRecords |
( |
Entry * |
entry, |
|
|
const Face & |
face |
|
) |
| |
Deletes in-records and out-records for face
.
- Todo:
- decide whether to delete PIT entry if there's no more in/out-record left
Definition at line 128 of file pit.cpp.
◆ end()
- Returns
- an iterator to the end
- See also
- begin()
Definition at line 154 of file pit.hpp.
◆ erase()
void nfd::pit::Pit::erase |
( |
Entry * |
entry | ) |
|
|
inline |
Deletes an entry.
Definition at line 129 of file pit.hpp.
◆ find()
shared_ptr<Entry> nfd::pit::Pit::find |
( |
const Interest & |
interest | ) |
const |
|
inline |
Finds a PIT entry for interest
.
- Parameters
-
- Returns
- an existing entry with same Name and Selectors; otherwise nullptr
Definition at line 104 of file pit.hpp.
◆ findAllDataMatches()
DataMatchResult nfd::pit::Pit::findAllDataMatches |
( |
const Data & |
data | ) |
const |
Performs a Data match.
- Returns
- an iterable of all PIT entries matching
data
Definition at line 99 of file pit.cpp.
◆ insert()
std::pair<shared_ptr<Entry>, bool> nfd::pit::Pit::insert |
( |
const Interest & |
interest | ) |
|
|
inline |
Inserts a PIT entry for interest
.
- Parameters
-
interest | the Interest; must be created with make_shared |
- Returns
- a new or existing entry with same Name and Selectors, and true for new entry, false for existing entry
Definition at line 115 of file pit.hpp.
◆ size()
size_t nfd::pit::Pit::size |
( |
| ) |
const |
|
inline |
Returns the number of entries.
Definition at line 94 of file pit.hpp.