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++.
Public Types | Public Member Functions | Protected Attributes | List of all members
rxcpp::resource< T > Class Template Reference

#include <rx-subscription.hpp>

Inheritance diagram for rxcpp::resource< T >:
Inheritance graph
[legend]
Collaboration diagram for rxcpp::resource< T >:
Collaboration graph
[legend]

Public Types

typedef composite_subscription::weak_subscription weak_subscription
 
- Public Types inherited from rxcpp::subscription_base
typedef tag_subscription subscription_tag
 

Public Member Functions

 resource ()
 
 resource (T t, composite_subscription cs=composite_subscription())
 
T & get ()
 
composite_subscriptionget_subscription ()
 
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
 

Protected Attributes

composite_subscription lifetime
 
std::shared_ptr< rxu::detail::maybe< T > > value
 

Member Typedef Documentation

Constructor & Destructor Documentation

template<class T >
rxcpp::resource< T >::resource ( )
inline
template<class T >
rxcpp::resource< T >::resource ( t,
composite_subscription  cs = composite_subscription() 
)
inlineexplicit

Member Function Documentation

template<class T >
weak_subscription rxcpp::resource< T >::add ( subscription  s) const
inline
template<class T >
template<class F >
auto rxcpp::resource< T >::add ( f) const -> typename std::enable_if<detail::is_unsubscribe_function<F>::value, weak_subscription>::type
inline
template<class T >
void rxcpp::resource< T >::clear ( ) const
inline
template<class T >
T& rxcpp::resource< T >::get ( )
inline
template<class T >
composite_subscription& rxcpp::resource< T >::get_subscription ( )
inline
template<class T >
bool rxcpp::resource< T >::is_subscribed ( ) const
inline
template<class T >
void rxcpp::resource< T >::remove ( weak_subscription  w) const
inline
template<class T >
void rxcpp::resource< T >::unsubscribe ( ) const
inline

Member Data Documentation

template<class T >
composite_subscription rxcpp::resource< T >::lifetime
protected
template<class T >
std::shared_ptr<rxu::detail::maybe<T> > rxcpp::resource< T >::value
protected

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