The listener interface for receiving notifications on the changes of observed subscription.
More...
|
| static std::shared_ptr< ObservableSubscriptionChangeListener > | create (std::function< void(const std::unordered_set< SymbolWrapper > &symbols)> onSymbolsAdded) |
| | Creates a listener that will notify the callback about added symbols.
|
| |
| static std::shared_ptr< ObservableSubscriptionChangeListener > | create (std::function< void(const std::unordered_set< SymbolWrapper > &symbols)> onSymbolsAdded, std::function< void(const std::unordered_set< SymbolWrapper > &symbols)> onSymbolsRemoved, std::function< void()> onSubscriptionClosed) |
| | Creates a listener that will notify callbacks about events of adding and deleting symbols, as well as about the event of closing a subscription.
|
| |
| static auto | createShared (Args &&...args) |
| | Creates a smart pointer to an object.
|
| |
|
|
using | Ptr = std::shared_ptr<SharedEntity> |
| | The alias to a type of shared pointer to the SharedEntity object.
|
| |
| template<typename T> |
| bool | is () const noexcept |
| | Checks that the pointer to the current type could be converted to type T* In other words: whether type T belongs to the type hierarchy in which the current type resides.
|
| |
| template<typename T> |
| std::shared_ptr< T > | sharedAs () noexcept |
| | Returns a pointer to the current object wrapped in a smart pointer to type T.
|
| |
| template<typename T> |
| std::shared_ptr< T > | sharedAs () const noexcept |
| | Returns a pointer to the current object wrapped in a smart pointer to type T.
|
| |
| virtual std::string | toString () const |
| | Returns a string representation of the current object.
|
| |
|
virtual | ~Entity () noexcept=default |
| | The default virtual d-tor.
|
| |
The listener interface for receiving notifications on the changes of observed subscription.
All methods on this interface are invoked while holding a lock on the ObservableSubscription instance, thus all changes for a given subscription are synchronized with respect to each other.