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++.
Classes | Public Types | Public Member Functions | Static Public Member Functions | Protected Attributes | Friends | List of all members
rxcpp::subscription Class Reference

#include <rx-subscription.hpp>

Inheritance diagram for rxcpp::subscription:
Inheritance graph
[legend]
Collaboration diagram for rxcpp::subscription:
Collaboration graph
[legend]

Public Types

typedef std::weak_ptr< base_subscription_state > weak_state_type
 
- Public Types inherited from rxcpp::subscription_base
typedef tag_subscription subscription_tag
 

Public Member Functions

 subscription ()
 
template<class U >
 subscription (U u, typename std::enable_if<!is_subscription< U >::value, void ** >::type=nullptr)
 
template<class U >
 subscription (U u, typename std::enable_if<!std::is_same< subscription, U >::value &&is_subscription< U >::value, void ** >::type=nullptr)
 
 subscription (const subscription &o)
 
 subscription (subscription &&o)
 
subscriptionoperator= (subscription o)
 
bool is_subscribed () const
 
void unsubscribe () const
 
weak_state_type get_weak ()
 

Static Public Member Functions

static subscription lock (weak_state_type w)
 

Protected Attributes

std::shared_ptr< base_subscription_state > state
 

Friends

bool operator< (const subscription &, const subscription &)
 
bool operator== (const subscription &, const subscription &)
 

Member Typedef Documentation

typedef std::weak_ptr<base_subscription_state> rxcpp::subscription::weak_state_type

Constructor & Destructor Documentation

rxcpp::subscription::subscription ( )
inline
template<class U >
rxcpp::subscription::subscription ( u,
typename std::enable_if<!is_subscription< U >::value, void ** >::type  = nullptr 
)
inlineexplicit
template<class U >
rxcpp::subscription::subscription ( u,
typename std::enable_if<!std::is_same< subscription, U >::value &&is_subscription< U >::value, void ** >::type  = nullptr 
)
inlineexplicit
rxcpp::subscription::subscription ( const subscription o)
inline
rxcpp::subscription::subscription ( subscription &&  o)
inline

Member Function Documentation

weak_state_type rxcpp::subscription::get_weak ( )
inline
bool rxcpp::subscription::is_subscribed ( ) const
inline
static subscription rxcpp::subscription::lock ( weak_state_type  w)
inlinestatic
subscription& rxcpp::subscription::operator= ( subscription  o)
inline
void rxcpp::subscription::unsubscribe ( ) const
inline

Friends And Related Function Documentation

bool operator< ( const subscription lhs,
const subscription rhs 
)
friend
bool operator== ( const subscription lhs,
const subscription rhs 
)
friend

Member Data Documentation

std::shared_ptr<base_subscription_state> rxcpp::subscription::state
protected

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