Factorization of code for the subject part of the Observer pattern.
More...
#include <IteratorHelpers.hpp>
Factorization of code for the subject part of the Observer pattern.
Add an observer to the iterator. Such an observer is provided as a functor.
- Parameters
-
[in] | f | : functor to be subscribed to the iterator notifications. |
Notify all the subscribed functors about the start of the iteration.
void notifyInc |
( |
u_int64_t |
current | ) |
|
|
inlineprotected |
Notify all the subscribed functors.
- Parameters
-
[in] | current | : number of currently iterated items during the iteration. |
Notify all the subscribed functors about the start of the iteration.
Remove an observer from the iterator. Such an observer is provided as a functor.
- Parameters
-
[in] | f | : functor to be unsubscribed from the iterator notifications. |
void setMessage |
( |
const std::string & |
message | ) |
|
|
inline |
Set a message to the observers.
The documentation for this class was generated from the following file:
- /builds/workspace/publish-doc-api-gitlab/gatb-core/src/gatb/tools/designpattern/impl/IteratorHelpers.hpp