Wiselib
Public Types | Public Member Functions
wiselib::ExtendedRadioBase< OsModel_P, NodeId_P, Size_P, BlockData_P, MAX_RECEIVERS, ExtendedData_P > Class Template Reference

Base extended radio classBasic extended radio class that provides helpful methods like registration of callbacks. More...

#include <extended_radio_base.h>

Inherits wiselib::RadioBase< OsModel_P, NodeId_P, Size_P, BlockData_P, MAX_RECEIVERS >.

List of all members.

Public Types

enum  ReturnValues { SUCCESS = OsModel::SUCCESS }
typedef ExtendedData_P ExtendedData
typedef OsModel_P OsModel
typedef NodeId_P node_id_t
typedef Size_P size_t
typedef BlockData_P block_data_t
typedef delegate3< void,
node_id_t, size_t,
block_data_t * > 
radio_delegate_t
typedef delegate4< void,
node_id_t, size_t,
block_data_t *, const
ExtendedData & > 
extended_radio_delegate_t
typedef vector_static< OsModel,
radio_delegate_t,
MAX_RECEIVERS > 
CallbackVector
typedef CallbackVector::iterator CallbackVectorIterator
typedef vector_static< OsModel,
extended_radio_delegate_t,
MAX_RECEIVERS > 
ExtendedCallbackVector
typedef
ExtendedCallbackVector::iterator 
ExtendedCallbackVectorIterator

Public Member Functions

template<class T , void(T::*)(node_id_t, size_t, block_data_t *) TMethod>
int reg_recv_callback (T *obj_pnt)
template<class T , void(T::*)(node_id_t, size_t, block_data_t *, const ExtendedData &) TMethod>
int reg_recv_callback (T *obj_pnt)
int unreg_recv_callback (int idx)
void notify_receivers (node_id_t from, size_t len, block_data_t *data)
void notify_receivers (node_id_t from, size_t len, block_data_t *data, const ExtendedData &ext_data)

Detailed Description

template<typename OsModel_P, typename NodeId_P, typename Size_P, typename BlockData_P, int MAX_RECEIVERS = RADIO_BASE_MAX_RECEIVERS, typename ExtendedData_P = BaseExtendedData<OsModel_P>>
class wiselib::ExtendedRadioBase< OsModel_P, NodeId_P, Size_P, BlockData_P, MAX_RECEIVERS, ExtendedData_P >

Base extended radio class

Basic extended radio class that provides helpful methods like registration of callbacks.


Member Typedef Documentation

template<typename OsModel_P, typename NodeId_P, typename Size_P, typename BlockData_P, int MAX_RECEIVERS = RADIO_BASE_MAX_RECEIVERS, typename ExtendedData_P = BaseExtendedData<OsModel_P>>
typedef BlockData_P wiselib::ExtendedRadioBase< OsModel_P, NodeId_P, Size_P, BlockData_P, MAX_RECEIVERS, ExtendedData_P >::block_data_t
template<typename OsModel_P, typename NodeId_P, typename Size_P, typename BlockData_P, int MAX_RECEIVERS = RADIO_BASE_MAX_RECEIVERS, typename ExtendedData_P = BaseExtendedData<OsModel_P>>
typedef vector_static<OsModel, radio_delegate_t, MAX_RECEIVERS> wiselib::ExtendedRadioBase< OsModel_P, NodeId_P, Size_P, BlockData_P, MAX_RECEIVERS, ExtendedData_P >::CallbackVector
template<typename OsModel_P, typename NodeId_P, typename Size_P, typename BlockData_P, int MAX_RECEIVERS = RADIO_BASE_MAX_RECEIVERS, typename ExtendedData_P = BaseExtendedData<OsModel_P>>
typedef CallbackVector::iterator wiselib::ExtendedRadioBase< OsModel_P, NodeId_P, Size_P, BlockData_P, MAX_RECEIVERS, ExtendedData_P >::CallbackVectorIterator
template<typename OsModel_P, typename NodeId_P, typename Size_P, typename BlockData_P, int MAX_RECEIVERS = RADIO_BASE_MAX_RECEIVERS, typename ExtendedData_P = BaseExtendedData<OsModel_P>>
typedef delegate4<void, node_id_t, size_t, block_data_t*, const ExtendedData&> wiselib::ExtendedRadioBase< OsModel_P, NodeId_P, Size_P, BlockData_P, MAX_RECEIVERS, ExtendedData_P >::extended_radio_delegate_t
template<typename OsModel_P, typename NodeId_P, typename Size_P, typename BlockData_P, int MAX_RECEIVERS = RADIO_BASE_MAX_RECEIVERS, typename ExtendedData_P = BaseExtendedData<OsModel_P>>
typedef vector_static<OsModel, extended_radio_delegate_t, MAX_RECEIVERS> wiselib::ExtendedRadioBase< OsModel_P, NodeId_P, Size_P, BlockData_P, MAX_RECEIVERS, ExtendedData_P >::ExtendedCallbackVector
template<typename OsModel_P, typename NodeId_P, typename Size_P, typename BlockData_P, int MAX_RECEIVERS = RADIO_BASE_MAX_RECEIVERS, typename ExtendedData_P = BaseExtendedData<OsModel_P>>
typedef ExtendedCallbackVector::iterator wiselib::ExtendedRadioBase< OsModel_P, NodeId_P, Size_P, BlockData_P, MAX_RECEIVERS, ExtendedData_P >::ExtendedCallbackVectorIterator
template<typename OsModel_P, typename NodeId_P, typename Size_P, typename BlockData_P, int MAX_RECEIVERS = RADIO_BASE_MAX_RECEIVERS, typename ExtendedData_P = BaseExtendedData<OsModel_P>>
typedef ExtendedData_P wiselib::ExtendedRadioBase< OsModel_P, NodeId_P, Size_P, BlockData_P, MAX_RECEIVERS, ExtendedData_P >::ExtendedData
template<typename OsModel_P, typename NodeId_P, typename Size_P, typename BlockData_P, int MAX_RECEIVERS = RADIO_BASE_MAX_RECEIVERS, typename ExtendedData_P = BaseExtendedData<OsModel_P>>
typedef NodeId_P wiselib::ExtendedRadioBase< OsModel_P, NodeId_P, Size_P, BlockData_P, MAX_RECEIVERS, ExtendedData_P >::node_id_t
template<typename OsModel_P, typename NodeId_P, typename Size_P, typename BlockData_P, int MAX_RECEIVERS = RADIO_BASE_MAX_RECEIVERS, typename ExtendedData_P = BaseExtendedData<OsModel_P>>
typedef OsModel_P wiselib::ExtendedRadioBase< OsModel_P, NodeId_P, Size_P, BlockData_P, MAX_RECEIVERS, ExtendedData_P >::OsModel
template<typename OsModel_P, typename NodeId_P, typename Size_P, typename BlockData_P, int MAX_RECEIVERS = RADIO_BASE_MAX_RECEIVERS, typename ExtendedData_P = BaseExtendedData<OsModel_P>>
typedef delegate3<void, node_id_t, size_t, block_data_t*> wiselib::ExtendedRadioBase< OsModel_P, NodeId_P, Size_P, BlockData_P, MAX_RECEIVERS, ExtendedData_P >::radio_delegate_t
template<typename OsModel_P, typename NodeId_P, typename Size_P, typename BlockData_P, int MAX_RECEIVERS = RADIO_BASE_MAX_RECEIVERS, typename ExtendedData_P = BaseExtendedData<OsModel_P>>
typedef Size_P wiselib::ExtendedRadioBase< OsModel_P, NodeId_P, Size_P, BlockData_P, MAX_RECEIVERS, ExtendedData_P >::size_t

Member Enumeration Documentation

template<typename OsModel_P, typename NodeId_P, typename Size_P, typename BlockData_P, int MAX_RECEIVERS = RADIO_BASE_MAX_RECEIVERS, typename ExtendedData_P = BaseExtendedData<OsModel_P>>
enum wiselib::ExtendedRadioBase::ReturnValues

Member Function Documentation

template<typename OsModel_P, typename NodeId_P, typename Size_P, typename BlockData_P, int MAX_RECEIVERS = RADIO_BASE_MAX_RECEIVERS, typename ExtendedData_P = BaseExtendedData<OsModel_P>>
void wiselib::ExtendedRadioBase< OsModel_P, NodeId_P, Size_P, BlockData_P, MAX_RECEIVERS, ExtendedData_P >::notify_receivers ( node_id_t  from,
size_t  len,
block_data_t data 
) [inline]
template<typename OsModel_P, typename NodeId_P, typename Size_P, typename BlockData_P, int MAX_RECEIVERS = RADIO_BASE_MAX_RECEIVERS, typename ExtendedData_P = BaseExtendedData<OsModel_P>>
void wiselib::ExtendedRadioBase< OsModel_P, NodeId_P, Size_P, BlockData_P, MAX_RECEIVERS, ExtendedData_P >::notify_receivers ( node_id_t  from,
size_t  len,
block_data_t data,
const ExtendedData ext_data 
) [inline]
template<typename OsModel_P, typename NodeId_P, typename Size_P, typename BlockData_P, int MAX_RECEIVERS = RADIO_BASE_MAX_RECEIVERS, typename ExtendedData_P = BaseExtendedData<OsModel_P>>
template<class T , void(T::*)(node_id_t, size_t, block_data_t *, const ExtendedData &) TMethod>
int wiselib::ExtendedRadioBase< OsModel_P, NodeId_P, Size_P, BlockData_P, MAX_RECEIVERS, ExtendedData_P >::reg_recv_callback ( T *  obj_pnt) [inline]
template<typename OsModel_P, typename NodeId_P, typename Size_P, typename BlockData_P, int MAX_RECEIVERS = RADIO_BASE_MAX_RECEIVERS, typename ExtendedData_P = BaseExtendedData<OsModel_P>>
template<class T , void(T::*)(node_id_t, size_t, block_data_t *) TMethod>
int wiselib::ExtendedRadioBase< OsModel_P, NodeId_P, Size_P, BlockData_P, MAX_RECEIVERS, ExtendedData_P >::reg_recv_callback ( T *  obj_pnt) [inline]
template<typename OsModel_P, typename NodeId_P, typename Size_P, typename BlockData_P, int MAX_RECEIVERS = RADIO_BASE_MAX_RECEIVERS, typename ExtendedData_P = BaseExtendedData<OsModel_P>>
int wiselib::ExtendedRadioBase< OsModel_P, NodeId_P, Size_P, BlockData_P, MAX_RECEIVERS, ExtendedData_P >::unreg_recv_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