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

HDL clustering algorithm. More...

#include <hdlclustering.h>

List of all members.

Public Types

enum  EventIds { CLUSTER_HEAD_CHANGED = 0, NODE_JOINED = 1, NODE_LEFT = 2 }
enum  ClusterIds { UNKNOWN_CLUSTER_HEAD = 0 }
typedef int cluster_id_t
typedef int cluster_level_t
typedef OsModel_P OsModel
typedef Radio_P Radio
typedef HdlClustering
< OsModel_P, Radio_P > 
self_t
typedef Radio::node_id_t node_id_t
typedef Radio::size_t size_t
typedef Radio::block_data_t block_data_t
typedef delegate1< void, int > cluster_delegate_t

Public Member Functions

void enable (void)
void disable (void)
cluster_id_t cluster_id (cluster_level_t)
cluster_level_t cluster_level ()
template<class T , void(T::*)(int) TMethod>
int reg_changed_callback (T *obj_pnt)
void unreg_changed_callback (int idx)
void receive (node_id_t from, size_t len, block_data_t *data)
void set_sink (bool sink)
Construction / Destruction
 HdlClustering ()
 ~HdlClustering ()

Detailed Description

template<typename OsModel_P, typename Radio_P = typename OsModel_P::Radio>
class wiselib::HdlClustering< OsModel_P, Radio_P >

HDL clustering algorithm.


Member Typedef Documentation

template<typename OsModel_P , typename Radio_P = typename OsModel_P::Radio>
typedef Radio::block_data_t wiselib::HdlClustering< OsModel_P, Radio_P >::block_data_t
template<typename OsModel_P , typename Radio_P = typename OsModel_P::Radio>
typedef delegate1<void, int> wiselib::HdlClustering< OsModel_P, Radio_P >::cluster_delegate_t
template<typename OsModel_P , typename Radio_P = typename OsModel_P::Radio>
typedef int wiselib::HdlClustering< OsModel_P, Radio_P >::cluster_id_t
template<typename OsModel_P , typename Radio_P = typename OsModel_P::Radio>
typedef int wiselib::HdlClustering< OsModel_P, Radio_P >::cluster_level_t
template<typename OsModel_P , typename Radio_P = typename OsModel_P::Radio>
typedef Radio::node_id_t wiselib::HdlClustering< OsModel_P, Radio_P >::node_id_t
template<typename OsModel_P , typename Radio_P = typename OsModel_P::Radio>
typedef OsModel_P wiselib::HdlClustering< OsModel_P, Radio_P >::OsModel
template<typename OsModel_P , typename Radio_P = typename OsModel_P::Radio>
typedef Radio_P wiselib::HdlClustering< OsModel_P, Radio_P >::Radio
template<typename OsModel_P , typename Radio_P = typename OsModel_P::Radio>
typedef HdlClustering<OsModel_P, Radio_P> wiselib::HdlClustering< OsModel_P, Radio_P >::self_t
template<typename OsModel_P , typename Radio_P = typename OsModel_P::Radio>
typedef Radio::size_t wiselib::HdlClustering< OsModel_P, Radio_P >::size_t

Member Enumeration Documentation

template<typename OsModel_P , typename Radio_P = typename OsModel_P::Radio>
enum wiselib::HdlClustering::ClusterIds
Enumerator:
UNKNOWN_CLUSTER_HEAD 
template<typename OsModel_P , typename Radio_P = typename OsModel_P::Radio>
enum wiselib::HdlClustering::EventIds
Enumerator:
CLUSTER_HEAD_CHANGED 
NODE_JOINED 
NODE_LEFT 

Constructor & Destructor Documentation

template<typename OsModel_P , typename Radio_P = typename OsModel_P::Radio>
wiselib::HdlClustering< OsModel_P, Radio_P >::HdlClustering ( ) [inline]
template<typename OsModel_P , typename Radio_P = typename OsModel_P::Radio>
wiselib::HdlClustering< OsModel_P, Radio_P >::~HdlClustering ( ) [inline]

Member Function Documentation

template<typename OsModel_P , typename Radio_P = typename OsModel_P::Radio>
cluster_id_t wiselib::HdlClustering< OsModel_P, Radio_P >::cluster_id ( cluster_level_t  ) [inline]
template<typename OsModel_P , typename Radio_P = typename OsModel_P::Radio>
cluster_level_t wiselib::HdlClustering< OsModel_P, Radio_P >::cluster_level ( ) [inline]
template<typename OsModel_P , typename Radio_P >
void wiselib::HdlClustering< OsModel_P, Radio_P >::disable ( void  ) [inline]
template<typename OsModel_P , typename Radio_P >
void wiselib::HdlClustering< OsModel_P, Radio_P >::enable ( void  ) [inline]
template<typename OsModel_P , typename Radio_P >
void wiselib::HdlClustering< OsModel_P, Radio_P >::receive ( node_id_t  from,
size_t  len,
block_data_t data 
) [inline]
template<typename OsModel_P , typename Radio_P = typename OsModel_P::Radio>
template<class T , void(T::*)(int) TMethod>
int wiselib::HdlClustering< OsModel_P, Radio_P >::reg_changed_callback ( T *  obj_pnt) [inline]
template<typename OsModel_P , typename Radio_P = typename OsModel_P::Radio>
void wiselib::HdlClustering< OsModel_P, Radio_P >::set_sink ( bool  sink) [inline]
template<typename OsModel_P , typename Radio_P = typename OsModel_P::Radio>
void wiselib::HdlClustering< OsModel_P, Radio_P >::unreg_changed_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