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>

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

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

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

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

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

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

template<class T >
iterator ndn::ContainerWithOnEmptySignal< T >::begin ( )
inline
template<class T >
size_t ndn::ContainerWithOnEmptySignal< T >::size ( )
inline
template<class T >
std::pair<iterator, bool> ndn::ContainerWithOnEmptySignal< T >::insert ( const value_type value)
inline
template<class T >
template<class Predicate >
void ndn::ContainerWithOnEmptySignal< T >::remove_if ( Predicate  p)
inline

Member Data Documentation

template<class T >
util::Signal<ContainerWithOnEmptySignal<T> > ndn::ContainerWithOnEmptySignal< T >::onEmpty

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