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.
References ndn::ContainerWithOnEmptySignal< T >::m_container.
|
inline |
Definition at line 48 of file container-with-on-empty-signal.hpp.
References ndn::ContainerWithOnEmptySignal< T >::m_container.
Referenced by ndn::ContainerWithOnEmptySignal< T >::insert().
|
inline |
Definition at line 54 of file container-with-on-empty-signal.hpp.
References ndn::ContainerWithOnEmptySignal< T >::m_container.
|
inline |
Definition at line 60 of file container-with-on-empty-signal.hpp.
References ndn::ContainerWithOnEmptySignal< T >::m_container.
Referenced by ndn::ContainerWithOnEmptySignal< T >::erase(), and ndn::ContainerWithOnEmptySignal< T >::remove_if().
|
inline |
Definition at line 66 of file container-with-on-empty-signal.hpp.
References ndn::ContainerWithOnEmptySignal< T >::empty(), ndn::ContainerWithOnEmptySignal< T >::m_container, and ndn::ContainerWithOnEmptySignal< T >::onEmpty.
|
inline |
Definition at line 76 of file container-with-on-empty-signal.hpp.
References ndn::ContainerWithOnEmptySignal< T >::m_container, and ndn::ContainerWithOnEmptySignal< T >::onEmpty.
|
inline |
Definition at line 83 of file container-with-on-empty-signal.hpp.
References ndn::ContainerWithOnEmptySignal< T >::end(), and ndn::ContainerWithOnEmptySignal< T >::m_container.
|
inline |
Definition at line 89 of file container-with-on-empty-signal.hpp.
References ndn::ContainerWithOnEmptySignal< T >::empty(), ndn::ContainerWithOnEmptySignal< T >::m_container, and ndn::ContainerWithOnEmptySignal< T >::onEmpty.
Base ndn::ContainerWithOnEmptySignal< T >::m_container |
Definition at line 98 of file container-with-on-empty-signal.hpp.
Referenced by ndn::ContainerWithOnEmptySignal< T >::begin(), ndn::ContainerWithOnEmptySignal< T >::clear(), ndn::ContainerWithOnEmptySignal< T >::empty(), ndn::ContainerWithOnEmptySignal< T >::end(), ndn::ContainerWithOnEmptySignal< T >::erase(), ndn::ContainerWithOnEmptySignal< T >::insert(), ndn::ContainerWithOnEmptySignal< T >::remove_if(), and ndn::ContainerWithOnEmptySignal< T >::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< T >::clear(), ndn::ContainerWithOnEmptySignal< T >::erase(), and ndn::ContainerWithOnEmptySignal< T >::remove_if().