nfd::measurements::Entry Class Reference

represents a Measurements entry More...

#include <daemon/table/measurements-entry.hpp>

+ Inheritance diagram for nfd::measurements::Entry:
+ Collaboration diagram for nfd::measurements::Entry:

Public Member Functions

 Entry (const Name &name)
 
void clearStrategyInfo ()
 clear all StrategyInfo items More...
 
template<typename T >
size_t eraseStrategyInfo ()
 erase a StrategyInfo item More...
 
const Name & getName () const
 
template<typename T >
T * getStrategyInfo () const
 get a StrategyInfo item More...
 
template<typename T , typename... A>
std::pair< T *, bool > insertStrategyInfo (A &&...args)
 insert a StrategyInfo item More...
 

Friends

class Measurements
 
class name_tree::Entry
 

Detailed Description

represents a Measurements entry

Definition at line 42 of file measurements-entry.hpp.

Constructor & Destructor Documentation

nfd::measurements::Entry::Entry ( const Name &  name)
explicit

Definition at line 31 of file measurements-entry.cpp.

Member Function Documentation

void nfd::StrategyInfoHost::clearStrategyInfo ( )
inherited

clear all StrategyInfo items

Definition at line 31 of file strategy-info-host.cpp.

template<typename T >
size_t nfd::StrategyInfoHost::eraseStrategyInfo ( )
inlineinherited

erase a StrategyInfo item

Template Parameters
Ttype of StrategyInfo, must be a subclass of fw::StrategyInfo
Returns
number of items erased

Definition at line 82 of file strategy-info-host.hpp.

const Name& nfd::measurements::Entry::getName ( ) const
inline

Definition at line 49 of file measurements-entry.hpp.

template<typename T >
T* nfd::StrategyInfoHost::getStrategyInfo ( ) const
inlineinherited

get a StrategyInfo item

Template Parameters
Ttype of StrategyInfo, must be a subclass of fw::StrategyInfo
Returns
an existing StrategyInfo item of type T, or nullptr if it does not exist

Definition at line 44 of file strategy-info-host.hpp.

template<typename T , typename... A>
std::pair<T*, bool> nfd::StrategyInfoHost::insertStrategyInfo ( A &&...  args)
inlineinherited

insert a StrategyInfo item

Template Parameters
Ttype of StrategyInfo, must be a subclass of fw::StrategyInfo
Returns
a new or existing StrategyInfo item of type T, and true for new item, false for existing item

Definition at line 63 of file strategy-info-host.hpp.

Friends And Related Function Documentation

friend class Measurements
friend

Definition at line 61 of file measurements-entry.hpp.

friend class name_tree::Entry
friend

Definition at line 62 of file measurements-entry.hpp.