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 186 of file name-tree-entry.hpp.

Member Typedef Documentation

◆ Getter

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 191 of file name-tree-entry.hpp.

Constructor & Destructor Documentation

◆ GetTableEntry()

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 197 of file name-tree-entry.hpp.

Member Function Documentation

◆ operator()()

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

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