RxCpp
The Reactive Extensions for Native (RxCpp) is a library for composing asynchronous and event-based programs using observable sequences and LINQ-style query operators in both C and C++.
|
binds an observer that consumes values with a composite_subscription that controls lifetime. More...
#include <rx-subscriber.hpp>
Public Types | |
typedef composite_subscription::weak_subscription | weak_subscription |
Public Types inherited from rxcpp::subscriber_base< T > | |
typedef tag_subscriber | subscriber_tag |
Public Types inherited from rxcpp::observer_base< T > | |
typedef T | value_type |
typedef tag_observer | observer_tag |
Public Types inherited from rxcpp::subscription_base | |
typedef tag_subscription | subscription_tag |
Public Member Functions | |
subscriber (const this_type &o) | |
subscriber (this_type &&o) | |
template<class O > | |
subscriber (const subscriber< T, O > &o, typename std::enable_if< !std::is_same< O, observer< T >>::value &&std::is_same< Observer, observer< T >>::value, void ** >::type=nullptr) | |
template<class U > | |
subscriber (trace_id id, composite_subscription cs, U &&o) | |
this_type & | operator= (this_type o) |
const observer_type & | get_observer () const |
observer_type & | get_observer () |
const composite_subscription & | get_subscription () const |
composite_subscription & | get_subscription () |
trace_id | get_id () const |
subscriber< T > | as_dynamic () const |
template<class V > | |
void | on_next (V &&v) const |
void | on_error (std::exception_ptr e) const |
void | on_completed () const |
bool | is_subscribed () const |
weak_subscription | add (subscription s) const |
template<class F > | |
auto | add (F f) const -> typename std::enable_if< detail::is_unsubscribe_function< F >::value, weak_subscription >::type |
void | remove (weak_subscription w) const |
void | clear () const |
void | unsubscribe () const |
Friends | |
template<class U , class O > | |
class | subscriber |
binds an observer that consumes values with a composite_subscription that controls lifetime.
typedef composite_subscription::weak_subscription rxcpp::subscriber< T, Observer >::weak_subscription |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
friend |