Wiselib
Public Types | Public Member Functions
wiselib::SensorCallbackBase< OsModel_P, Value_P, MAX_RECEIVERS > Class Template Reference

Base State Callback classBasic state callback class that provides helpful methods like registration of callbacks. More...

#include <sensor_callback_base.h>

List of all members.

Public Types

enum  ReturnValues { SUCCESS = OsModel::SUCCESS }
typedef OsModel_P OsModel
typedef Value_P value_t
typedef delegate1< void, value_tsensor_callback_delegate_t
typedef vector_static< OsModel,
sensor_callback_delegate_t,
MAX_RECEIVERS > 
CallbackVector
typedef CallbackVector::iterator CallbackVectorIterator

Public Member Functions

template<class T , void(T::*)(value_t) TMethod>
int register_sensor_callback (T *obj_pnt)
int unreg_read_callback (int idx)
void notify_receivers (value_t value)

Detailed Description

template<typename OsModel_P, typename Value_P, int MAX_RECEIVERS = SENSOR_CALLBACK_BASE_MAX_RECEIVERS>
class wiselib::SensorCallbackBase< OsModel_P, Value_P, MAX_RECEIVERS >

Base State Callback class

Basic state callback class that provides helpful methods like registration of callbacks.


Member Typedef Documentation

template<typename OsModel_P, typename Value_P, int MAX_RECEIVERS = SENSOR_CALLBACK_BASE_MAX_RECEIVERS>
typedef vector_static<OsModel, sensor_callback_delegate_t, MAX_RECEIVERS> wiselib::SensorCallbackBase< OsModel_P, Value_P, MAX_RECEIVERS >::CallbackVector
template<typename OsModel_P, typename Value_P, int MAX_RECEIVERS = SENSOR_CALLBACK_BASE_MAX_RECEIVERS>
typedef CallbackVector::iterator wiselib::SensorCallbackBase< OsModel_P, Value_P, MAX_RECEIVERS >::CallbackVectorIterator
template<typename OsModel_P, typename Value_P, int MAX_RECEIVERS = SENSOR_CALLBACK_BASE_MAX_RECEIVERS>
typedef OsModel_P wiselib::SensorCallbackBase< OsModel_P, Value_P, MAX_RECEIVERS >::OsModel
template<typename OsModel_P, typename Value_P, int MAX_RECEIVERS = SENSOR_CALLBACK_BASE_MAX_RECEIVERS>
typedef delegate1<void, value_t> wiselib::SensorCallbackBase< OsModel_P, Value_P, MAX_RECEIVERS >::sensor_callback_delegate_t
template<typename OsModel_P, typename Value_P, int MAX_RECEIVERS = SENSOR_CALLBACK_BASE_MAX_RECEIVERS>
typedef Value_P wiselib::SensorCallbackBase< OsModel_P, Value_P, MAX_RECEIVERS >::value_t

Member Enumeration Documentation

template<typename OsModel_P, typename Value_P, int MAX_RECEIVERS = SENSOR_CALLBACK_BASE_MAX_RECEIVERS>
enum wiselib::SensorCallbackBase::ReturnValues
Enumerator:
SUCCESS 

Member Function Documentation

template<typename OsModel_P, typename Value_P, int MAX_RECEIVERS = SENSOR_CALLBACK_BASE_MAX_RECEIVERS>
void wiselib::SensorCallbackBase< OsModel_P, Value_P, MAX_RECEIVERS >::notify_receivers ( value_t  value) [inline]
template<typename OsModel_P, typename Value_P, int MAX_RECEIVERS = SENSOR_CALLBACK_BASE_MAX_RECEIVERS>
template<class T , void(T::*)(value_t) TMethod>
int wiselib::SensorCallbackBase< OsModel_P, Value_P, MAX_RECEIVERS >::register_sensor_callback ( T *  obj_pnt) [inline]
template<typename OsModel_P, typename Value_P, int MAX_RECEIVERS = SENSOR_CALLBACK_BASE_MAX_RECEIVERS>
int wiselib::SensorCallbackBase< OsModel_P, Value_P, MAX_RECEIVERS >::unreg_read_callback ( int  idx) [inline]

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines