ReactivePlusPlus
One more implementation of ReactiveX approach in C++ with care about performance and templates in mind
 
Loading...
Searching...
No Matches
rpp::connectable_observable< Type, Subject, OriginalObservable > Class Template Reference

connectable alternative of observable: extends interface with extra functionality. Common subscription will subscribe on underlying subject, but connect/ref_count will initiate subscription on original observable More...

#include <connectable_observable.hpp>

Inheritance diagram for rpp::connectable_observable< Type, Subject, OriginalObservable >:
rpp::details::member_overload< Type, connectable_observable< Type, Subject, OriginalObservable >, details::ref_count_tag >

Public Member Functions

 connectable_observable (const OriginalObservable &original_observable, const Subject &subject=Subject{})
 
 connectable_observable (OriginalObservable &&original_observable, const Subject &subject=Subject{})
 
composite_subscription connect (const composite_subscription &subscription=composite_subscription{}) const
 

Detailed Description

template<constraint::decayed_type Type, subjects::constraint::subject_of_type< Type > Subject, constraint::observable_of_type< Type > OriginalObservable>
class rpp::connectable_observable< Type, Subject, OriginalObservable >

connectable alternative of observable: extends interface with extra functionality. Common subscription will subscribe on underlying subject, but connect/ref_count will initiate subscription on original observable

Template Parameters
Typetype of values emitted by this observable
OriginalObservableoriginal observable wrapped by this observable
See also
https://reactivex.io/documentation/operators/publish.html

The documentation for this class was generated from the following file: