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... | |
A container that emits onEmpty signal when it becomes empty.
Definition at line 34 of file container-with-on-empty-signal.hpp.
typedef std::list<T> ndn::ContainerWithOnEmptySignal< T >::Base |
Definition at line 37 of file container-with-on-empty-signal.hpp.
typedef Base::value_type ndn::ContainerWithOnEmptySignal< T >::value_type |
Definition at line 38 of file container-with-on-empty-signal.hpp.
typedef Base::iterator ndn::ContainerWithOnEmptySignal< T >::iterator |
Definition at line 39 of file container-with-on-empty-signal.hpp.
|
inline |
Definition at line 42 of file container-with-on-empty-signal.hpp.
Referenced by ndn::Face::Impl::asyncUnregisterPrefix(), ndn::Face::Impl::nackPendingInterests(), and ndn::Face::Impl::satisfyPendingInterests().
|
inline |
|
inline |
Definition at line 54 of file container-with-on-empty-signal.hpp.
|
inline |
|
inline |
|
inline |
Definition at line 76 of file container-with-on-empty-signal.hpp.
Referenced by ndn::Face::Impl::asyncRemoveAllPendingInterests().
|
inline |
Definition at line 83 of file container-with-on-empty-signal.hpp.
Referenced by ndn::Face::Impl::afterPrefixRegistered(), ndn::Face::Impl::asyncExpressInterest(), and ndn::Face::Impl::processIncomingInterest().
|
inline |
Definition at line 89 of file container-with-on-empty-signal.hpp.
Referenced by ndn::Face::Impl::asyncRemovePendingInterest().
Base ndn::ContainerWithOnEmptySignal< T >::m_container |
Definition at line 98 of file container-with-on-empty-signal.hpp.
Referenced by ndn::ContainerWithOnEmptySignal< shared_ptr< PendingInterest > >::begin(), ndn::ContainerWithOnEmptySignal< shared_ptr< PendingInterest > >::clear(), ndn::ContainerWithOnEmptySignal< shared_ptr< PendingInterest > >::empty(), ndn::ContainerWithOnEmptySignal< shared_ptr< PendingInterest > >::end(), ndn::ContainerWithOnEmptySignal< shared_ptr< PendingInterest > >::erase(), ndn::ContainerWithOnEmptySignal< shared_ptr< PendingInterest > >::insert(), ndn::ContainerWithOnEmptySignal< shared_ptr< PendingInterest > >::remove_if(), and ndn::ContainerWithOnEmptySignal< shared_ptr< PendingInterest > >::size().
util::Signal<ContainerWithOnEmptySignal<T> > ndn::ContainerWithOnEmptySignal< T >::onEmpty |
Signal to be fired when container becomes empty.
Definition at line 103 of file container-with-on-empty-signal.hpp.
Referenced by ndn::ContainerWithOnEmptySignal< shared_ptr< PendingInterest > >::clear(), ndn::ContainerWithOnEmptySignal< shared_ptr< PendingInterest > >::erase(), ndn::Face::Impl::Impl(), and ndn::ContainerWithOnEmptySignal< shared_ptr< PendingInterest > >::remove_if().