|
SObjectizer 5.8
|
An interface of data sources repository. More...
#include <repository.hpp>
Public Member Functions | |
| virtual void | add (source_t &what)=0 |
| Registration of new data source. | |
| virtual void | remove (source_t &what) noexcept=0 |
| Deregistration of previously registered data source. | |
Protected Member Functions | |
| repository_t (const repository_t &)=delete | |
| repository_t (repository_t &&)=delete | |
| repository_t & | operator= (const repository_t &)=delete |
| repository_t & | operator= (repository_t &&)=delete |
| repository_t ()=default | |
| virtual | ~repository_t () noexcept=default |
Static Protected Member Functions | |
| static void | source_list_add (source_t &what, source_t *&head, source_t *&tail) noexcept |
| Helper method for adding data source to existing list. | |
| static void | source_list_remove (source_t &what, source_t *&head, source_t *&tail) noexcept |
| Helper method for removing data source from existing list. | |
| static source_t * | source_list_next (const source_t &what) noexcept |
| Helper method for accessing next data source in the list. | |
|
protecteddelete |
|
protecteddelete |
|
protecteddefault |
|
protectedvirtualdefaultnoexcept |
|
pure virtual |
Registration of new data source.
Caller must guarantee that the data source will live until it is registered in the repository.
Implemented in so_5::env_infrastructures::st_reusable_stuff::stats_controller_t< Lock_Holder >, so_5::env_infrastructures::st_reusable_stuff::stats_controller_t< so_5::details::actual_lock_holder_t<> >, so_5::env_infrastructures::st_reusable_stuff::stats_controller_t< so_5::details::no_lock_holder_t >, and so_5::stats::impl::std_controller_t.
|
protecteddelete |
|
protecteddelete |
|
pure virtualnoexcept |
Deregistration of previously registered data source.
Implemented in so_5::env_infrastructures::st_reusable_stuff::stats_controller_t< Lock_Holder >, so_5::env_infrastructures::st_reusable_stuff::stats_controller_t< so_5::details::actual_lock_holder_t<> >, so_5::env_infrastructures::st_reusable_stuff::stats_controller_t< so_5::details::no_lock_holder_t >, and so_5::stats::impl::std_controller_t.
|
staticprotectednoexcept |
Helper method for adding data source to existing list.
| what | A new data source to be added to the list. |
| head | Marker of the list head. Will be modified if the list is empty. |
| tail | Marker of the list tail. Will be modified. |
Definition at line 25 of file repository.cpp.
|
staticprotectednoexcept |
Helper method for accessing next data source in the list.
| what | The current item. |
Definition at line 64 of file repository.cpp.
|
staticprotectednoexcept |
Helper method for removing data source from existing list.
| what | An item to be removed. |
| head | Marker of the list head. Will be modified if the list becomes empty. |
| tail | Marker of the list tail. Will be modified if the item at the end of the list. |
Definition at line 47 of file repository.cpp.