nfd::name_tree::GetTableEntry< ENTRY > Class Template Reference

a functor to get a table entry from a name tree entry More...

#include <daemon/table/name-tree-entry.hpp>

Public Types

using Getter = ENTRY *(Entry::*)() const
 a function pointer to the getter on Entry class that returns ENTRY More...
 

Public Member Functions

 GetTableEntry (Getter getter=nullptr)
 
const ENTRY & operator() (const Entry &nte) const
 

Detailed Description

template<typename ENTRY>
class nfd::name_tree::GetTableEntry< ENTRY >

a functor to get a table entry from a name tree entry

Template Parameters
ENTRYtype of single table entry attached to name tree entry, such as fib::Entry

Definition at line 185 of file name-tree-entry.hpp.

Member Typedef Documentation

template<typename ENTRY >
using nfd::name_tree::GetTableEntry< ENTRY >::Getter = ENTRY* (Entry::*)() const

a function pointer to the getter on Entry class that returns ENTRY

Definition at line 190 of file name-tree-entry.hpp.

Constructor & Destructor Documentation

template<typename ENTRY >
nfd::name_tree::GetTableEntry< ENTRY >::GetTableEntry ( Getter  getter = nullptr)
inlineexplicit
Note
The default argument is needed to ensure FIB and StrategyChoice iterators are default-constructible.

Definition at line 196 of file name-tree-entry.hpp.

Member Function Documentation

template<typename ENTRY >
const ENTRY& nfd::name_tree::GetTableEntry< ENTRY >::operator() ( const Entry nte) const
inline

Definition at line 202 of file name-tree-entry.hpp.