A simple container that will fire up onEmpty signal when there are no entries left. 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 simple container that will fire up onEmpty signal when there are no entries left.
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.
|
inline |
Definition at line 48 of file container-with-on-empty-signal.hpp.
Referenced by ndn::ContainerWithOnEmptySignal< shared_ptr< PendingInterest > >::insert().
|
inline |
Definition at line 54 of file container-with-on-empty-signal.hpp.
|
inline |
Definition at line 60 of file container-with-on-empty-signal.hpp.
Referenced by ndn::ContainerWithOnEmptySignal< shared_ptr< PendingInterest > >::erase(), and ndn::ContainerWithOnEmptySignal< shared_ptr< PendingInterest > >::remove_if().
|
inline |
Definition at line 66 of file container-with-on-empty-signal.hpp.
|
inline |
Definition at line 76 of file container-with-on-empty-signal.hpp.
|
inline |
Definition at line 83 of file container-with-on-empty-signal.hpp.
|
inline |
Definition at line 89 of file container-with-on-empty-signal.hpp.
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(), and ndn::ContainerWithOnEmptySignal< shared_ptr< PendingInterest > >::remove_if().