BornAgain
1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Container to hold callbacks in the context of ModelMapper. More...
Public Member Functions | |
SignalBase ()=default | |
void | connect (T callback, U client) |
template<typename... Args> | |
void | operator() (Args... args) |
Notify clients using given list of arguments. More... | |
void | remove_client (U client) |
Remove client from the list to call back. More... | |
Private Attributes | |
std::list< std::pair< T, U > > | m_callbacks |
Container to hold callbacks in the context of ModelMapper.
Definition at line 31 of file callbackcontainer.h.
|
default |
void ModelView::SignalBase< T, U >::connect | ( | T | callback, |
U | client | ||
) |
Definition at line 45 of file callbackcontainer.h.
Referenced by TEST_F().
void ModelView::SignalBase< T, U >::operator() | ( | Args... | args | ) |
Notify clients using given list of arguments.
Definition at line 53 of file callbackcontainer.h.
void ModelView::SignalBase< T, U >::remove_client | ( | U | client | ) |
Remove client from the list to call back.
Definition at line 62 of file callbackcontainer.h.
Referenced by TEST_F(), ModelView::ItemMapper::ItemMapperImpl::unsubscribe(), and ModelMapper::ModelMapperImpl::unsubscribe().
|
private |
Definition at line 42 of file callbackcontainer.h.