ObservableImplRef< ObservableClass, DELEGATE > Class Template Reference

#include <observable.h>

Inheritance diagram for ObservableImplRef< ObservableClass, DELEGATE >:

Detailed Description

template<typename ObservableClass, typename DELEGATE>
class maxon::ObservableImplRef< ObservableClass, DELEGATE >

Helper template reference class for implementation of observables.

Template Parameters
ObservableClassCan be either ObservableClass or ObservableRPCClass.
DELEGATEDelegate of the observable class defined in the MAXON_OBSERVABLE macro. Usually "Delegate" is appended to the observable name, e.g. ObservableMachineStateChangedDelegate.

Public Member Functions

 ObservableImplRef ()
 
- Public Member Functions inherited from ObservableRef< DELEGATE >
template<typename FN >
Result< FunctionBaseRef > AddObserver (ObserverObjectInterface *observer, FN &&fn, Int priority=ADDOBSERVER_DEFAULTPRIORITY) const
 
template<typename FN >
Result< FunctionBaseRef > AddObserver (ObserverObjectInterface *observer, FN &&fn, const JobQueueRef &queue, Int priority=ADDOBSERVER_DEFAULTPRIORITY) const
 
template<typename FN >
Result< FunctionBaseRef > AddObserver (FN &&fn, Int priority=ADDOBSERVER_DEFAULTPRIORITY) const
 
template<typename FN , typename = typename std::enable_if<!STD_IS_REPLACEMENT(convertible, typename std::decay<FN>::type, ObserverObjectInterface*)>::type>
Result< FunctionBaseRef > AddObserver (FN &&fn, const JobQueueRef &queue, Int priority=ADDOBSERVER_DEFAULTPRIORITY) const
 

Additional Inherited Members

- Static Public Member Functions inherited from ObservableRef< DELEGATE >
static ObservableRef< DELEGATE > NullValue ()
 

Constructor & Destructor Documentation

◆ ObservableImplRef()

Default constructor, allocates the object.