Ditto 4.7.2-rc.1
Loading...
Searching...
No Matches
Public Member Functions | List of all members
ditto::StoreObserver Class Reference

#include <StoreObserver.hpp>

Inheritance diagram for ditto::StoreObserver:
ditto::Observer

Public Member Functions

 StoreObserver (StoreObserver &&)
 
StoreObserveroperator= (StoreObserver &&)
 
void cancel ()
 Cancels the observation. The handler that was passed in when registering this store observer will no longer be called. No-op if this store observer is already cancelled or the owning Ditto object goes out of scope.
 
bool is_cancelled ()
 Convenience property, returns true if the store observer has been cancelled, otherwise returns false. Also, a store observer is considered cancelled if the owning Ditto object goes out of scope.
 

Detailed Description

A store observer invokes a change handler whenever results for its query change.

Create a store observer by calling Store::register_observer().