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

A container that emits onEmpty signal when it becomes empty. More...

#include <container-with-on-empty-signal.hpp>

Inheritance diagram for ndn::ContainerWithOnEmptySignal< T >:
Collaboration diagram for ndn::ContainerWithOnEmptySignal< T >:

Public Types

typedef std::list< T > Base
 
typedef Base::value_type value_type
 
typedef Base::iterator iterator
 

Public Member Functions

iterator begin ()
 
iterator end ()
 
size_t size ()
 
bool empty ()
 
iterator erase (iterator item)
 
void clear ()
 
std::pair< iterator, bool > insert (const value_type &value)
 
template<class Predicate >
void remove_if (Predicate p)
 

Public Attributes

Base m_container
 
util::Signal< ContainerWithOnEmptySignal< T > > onEmpty
 Signal to be fired when container becomes empty. More...
 

Detailed Description

template<class T>
class ndn::ContainerWithOnEmptySignal< T >

A container that emits onEmpty signal when it becomes empty.

Definition at line 34 of file container-with-on-empty-signal.hpp.

Member Typedef Documentation

◆ Base

template<class T>
typedef std::list<T> ndn::ContainerWithOnEmptySignal< T >::Base

Definition at line 37 of file container-with-on-empty-signal.hpp.

◆ value_type

template<class T>
typedef Base::value_type ndn::ContainerWithOnEmptySignal< T >::value_type

Definition at line 38 of file container-with-on-empty-signal.hpp.

◆ iterator

template<class T>
typedef Base::iterator ndn::ContainerWithOnEmptySignal< T >::iterator

Definition at line 39 of file container-with-on-empty-signal.hpp.

Member Function Documentation

◆ begin()

template<class T>
iterator ndn::ContainerWithOnEmptySignal< T >::begin ( )
inline

Definition at line 42 of file container-with-on-empty-signal.hpp.

◆ end()

◆ size()

template<class T>
size_t ndn::ContainerWithOnEmptySignal< T >::size ( )
inline

Definition at line 54 of file container-with-on-empty-signal.hpp.

◆ empty()

◆ erase()

template<class T>
iterator ndn::ContainerWithOnEmptySignal< T >::erase ( iterator  item)
inline

Definition at line 66 of file container-with-on-empty-signal.hpp.

◆ clear()

template<class T>
void ndn::ContainerWithOnEmptySignal< T >::clear ( )
inline

Definition at line 76 of file container-with-on-empty-signal.hpp.

◆ insert()

template<class T>
std::pair<iterator, bool> ndn::ContainerWithOnEmptySignal< T >::insert ( const value_type value)
inline

Definition at line 83 of file container-with-on-empty-signal.hpp.

◆ remove_if()

template<class T>
template<class Predicate >
void ndn::ContainerWithOnEmptySignal< T >::remove_if ( Predicate  p)
inline

Definition at line 89 of file container-with-on-empty-signal.hpp.

Member Data Documentation

◆ m_container

◆ onEmpty


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