NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.3: NDN, CCN, CCNx, content centric networks
API Documentation
nfd::SizeCounter< T > Class Template Reference

provides a counter that observes the size of a table More...

#include <counter.hpp>

Inheritance diagram for nfd::SizeCounter< T >:

Public Types

typedef size_t rep
 

Public Member Functions

constexpr SizeCounter (const T &table)
 
 SizeCounter (const SizeCounter &)=delete
 
SizeCounteroperator= (const SizeCounter &)=delete
 
 operator rep () const
 observe the counter More...
 

Detailed Description

template<typename T>
class nfd::SizeCounter< T >

provides a counter that observes the size of a table

Template Parameters
Ta type that provides a size() const member function

Definition at line 112 of file counter.hpp.

Member Typedef Documentation

◆ rep

template<typename T>
typedef size_t nfd::SizeCounter< T >::rep

Definition at line 115 of file counter.hpp.

Constructor & Destructor Documentation

◆ SizeCounter() [1/2]

template<typename T>
constexpr nfd::SizeCounter< T >::SizeCounter ( const T &  table)
inline

Definition at line 118 of file counter.hpp.

◆ SizeCounter() [2/2]

template<typename T>
nfd::SizeCounter< T >::SizeCounter ( const SizeCounter< T > &  )
delete

Member Function Documentation

◆ operator=()

template<typename T>
SizeCounter& nfd::SizeCounter< T >::operator= ( const SizeCounter< T > &  )
delete

◆ operator rep()

template<typename T>
nfd::SizeCounter< T >::operator rep ( ) const
inline

observe the counter

Definition at line 130 of file counter.hpp.


The documentation for this class was generated from the following file: