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

Base routing class. More...

#include <routing_base.h>

Inherits wiselib::RadioBase< OsModel_P, Radio_P::node_id_t, Radio_P::size_t, Radio_P::block_data_t, MAX_RECEIVERS >.

List of all members.

Public Types

enum  ReturnValues
typedef OsModel_P OsModel
typedef Radio_P::node_id_t node_id_t
typedef Radio_P::size_t size_t
typedef Radio_P::block_data_t block_data_t
typedef delegate3< void,
node_id_t, size_t,
block_data_t * > 
radio_delegate_t
typedef vector_static< OsModel,
radio_delegate_t,
MAX_RECEIVERS > 
CallbackVector
typedef CallbackVector::iterator CallbackVectorIterator

Public Member Functions

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)

Detailed Description

template<typename OsModel_P, typename Radio_P = typename OsModel_P::Radio, int MAX_RECEIVERS = RADIO_BASE_MAX_RECEIVERS>
class wiselib::RoutingBase< OsModel_P, Radio_P, MAX_RECEIVERS >

Base routing class.

Basic routing class that provides helpful classes like registration of callbacks.


Member Typedef Documentation

typedef OsModel_P wiselib::RadioBase< OsModel_P, Radio_P::node_id_t , Radio_P::size_t , Radio_P::block_data_t , MAX_RECEIVERS >::OsModel [inherited]
typedef delegate3<void, node_id_t, size_t, block_data_t*> wiselib::RadioBase< OsModel_P, Radio_P::node_id_t , Radio_P::size_t , Radio_P::block_data_t , MAX_RECEIVERS >::radio_delegate_t [inherited]
typedef Radio_P::size_t wiselib::RadioBase< OsModel_P, Radio_P::node_id_t , Radio_P::size_t , Radio_P::block_data_t , MAX_RECEIVERS >::size_t [inherited]

Member Enumeration Documentation


Member Function Documentation

void wiselib::RadioBase< OsModel_P, Radio_P::node_id_t , Radio_P::size_t , Radio_P::block_data_t , MAX_RECEIVERS >::notify_receivers ( node_id_t  from,
size_t  len,
block_data_t data 
) [inline, inherited]
int wiselib::RadioBase< OsModel_P, Radio_P::node_id_t , Radio_P::size_t , Radio_P::block_data_t , MAX_RECEIVERS >::reg_recv_callback ( T *  obj_pnt) [inline, inherited]
int wiselib::RadioBase< OsModel_P, Radio_P::node_id_t , Radio_P::size_t , Radio_P::block_data_t , MAX_RECEIVERS >::unreg_recv_callback ( int  idx) [inline, inherited]

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