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

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

#include <state_callback_base.h>

List of all members.

Public Types

enum  ReturnValues { SUCCESS = OsModel::SUCCESS }
typedef OsModel_P OsModel
typedef delegate1< void, int > state_callback_delegate_t
typedef vector_static< OsModel,
state_callback_delegate_t,
MAX_RECEIVERS > 
CallbackVector
typedef CallbackVector::iterator CallbackVectorIterator

Public Member Functions

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

Detailed Description

template<typename OsModel_P, int MAX_RECEIVERS = STATE_CALLBACK_BASE_MAX_RECEIVERS>
class wiselib::StateCallbackBase< OsModel_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 , int MAX_RECEIVERS = STATE_CALLBACK_BASE_MAX_RECEIVERS>
typedef vector_static<OsModel, state_callback_delegate_t, MAX_RECEIVERS> wiselib::StateCallbackBase< OsModel_P, MAX_RECEIVERS >::CallbackVector
template<typename OsModel_P , int MAX_RECEIVERS = STATE_CALLBACK_BASE_MAX_RECEIVERS>
typedef CallbackVector::iterator wiselib::StateCallbackBase< OsModel_P, MAX_RECEIVERS >::CallbackVectorIterator
template<typename OsModel_P , int MAX_RECEIVERS = STATE_CALLBACK_BASE_MAX_RECEIVERS>
typedef OsModel_P wiselib::StateCallbackBase< OsModel_P, MAX_RECEIVERS >::OsModel
template<typename OsModel_P , int MAX_RECEIVERS = STATE_CALLBACK_BASE_MAX_RECEIVERS>
typedef delegate1<void, int> wiselib::StateCallbackBase< OsModel_P, MAX_RECEIVERS >::state_callback_delegate_t

Member Enumeration Documentation

template<typename OsModel_P , int MAX_RECEIVERS = STATE_CALLBACK_BASE_MAX_RECEIVERS>
enum wiselib::StateCallbackBase::ReturnValues
Enumerator:
SUCCESS 

Member Function Documentation

template<typename OsModel_P , int MAX_RECEIVERS = STATE_CALLBACK_BASE_MAX_RECEIVERS>
void wiselib::StateCallbackBase< OsModel_P, MAX_RECEIVERS >::notify_receivers ( int  value) [inline]
template<typename OsModel_P , int MAX_RECEIVERS = STATE_CALLBACK_BASE_MAX_RECEIVERS>
template<class T , void(T::*)(int) TMethod>
int wiselib::StateCallbackBase< OsModel_P, MAX_RECEIVERS >::register_state_callback ( T *  obj_pnt) [inline]
template<typename OsModel_P , int MAX_RECEIVERS = STATE_CALLBACK_BASE_MAX_RECEIVERS>
int wiselib::StateCallbackBase< OsModel_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