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

Ddfs graph implementation of Graph ConceptDdfs graph implementation of Graph Concept. More...

#include <ddfs_graph.h>

List of all members.

Public Types

typedef OsModel_P OsModel
typedef Radio_P Radio
typedef Debug_P Debug
typedef OsModel_P::Timer Timer
typedef DdfsGraph< OsModel,
Radio, Debug, MAX_NODES > 
self_type
typedef Radio::node_id_t node_id_t
typedef Radio::size_t size_t
typedef Radio::block_data_t block_data_t
typedef Timer::millis_t millis_t
typedef delegate0< void > ddfs_delegate_t

Public Member Functions

void set_startup_time (millis_t startup_time)
void set_neighbourhood_construction_time (millis_t neighbourhood_construction_time)
template<class T , void(T::*)() TMethod>
void reg_finish_callback (T *obj_pnt)
void init (Radio &radio, Timer &timer, Debug &debug)
void destruct ()
Construction / Destruction
 DdfsGraph ()
 ~DdfsGraph ()
Main Control
void enable (void)
void disable (void)
void set_root (void)
Methods called by Timer
void timer0 (void *userdata)
void timer1 (void *userdata)
Methods called by RadioModel
void receive (node_id_t from, size_t len, block_data_t *data)

Public Attributes

Data
node_id_t parent_
vector_static< OsModel,
node_id_t, MAX_NODES > 
children_

Detailed Description

template<typename OsModel_P, typename Radio_P = typename OsModel_P::Radio, typename Debug_P = typename OsModel_P::Debug, uint16_t MAX_NODES = 32>
class wiselib::DdfsGraph< OsModel_P, Radio_P, Debug_P, MAX_NODES >

Ddfs graph implementation of Graph Concept

Ddfs graph implementation of Graph Concept.


Member Typedef Documentation

template<typename OsModel_P , typename Radio_P = typename OsModel_P::Radio, typename Debug_P = typename OsModel_P::Debug, uint16_t MAX_NODES = 32>
typedef Radio::block_data_t wiselib::DdfsGraph< OsModel_P, Radio_P, Debug_P, MAX_NODES >::block_data_t
template<typename OsModel_P , typename Radio_P = typename OsModel_P::Radio, typename Debug_P = typename OsModel_P::Debug, uint16_t MAX_NODES = 32>
typedef delegate0<void> wiselib::DdfsGraph< OsModel_P, Radio_P, Debug_P, MAX_NODES >::ddfs_delegate_t
template<typename OsModel_P , typename Radio_P = typename OsModel_P::Radio, typename Debug_P = typename OsModel_P::Debug, uint16_t MAX_NODES = 32>
typedef Debug_P wiselib::DdfsGraph< OsModel_P, Radio_P, Debug_P, MAX_NODES >::Debug
template<typename OsModel_P , typename Radio_P = typename OsModel_P::Radio, typename Debug_P = typename OsModel_P::Debug, uint16_t MAX_NODES = 32>
typedef Timer::millis_t wiselib::DdfsGraph< OsModel_P, Radio_P, Debug_P, MAX_NODES >::millis_t
template<typename OsModel_P , typename Radio_P = typename OsModel_P::Radio, typename Debug_P = typename OsModel_P::Debug, uint16_t MAX_NODES = 32>
typedef Radio::node_id_t wiselib::DdfsGraph< OsModel_P, Radio_P, Debug_P, MAX_NODES >::node_id_t
template<typename OsModel_P , typename Radio_P = typename OsModel_P::Radio, typename Debug_P = typename OsModel_P::Debug, uint16_t MAX_NODES = 32>
typedef OsModel_P wiselib::DdfsGraph< OsModel_P, Radio_P, Debug_P, MAX_NODES >::OsModel
template<typename OsModel_P , typename Radio_P = typename OsModel_P::Radio, typename Debug_P = typename OsModel_P::Debug, uint16_t MAX_NODES = 32>
typedef Radio_P wiselib::DdfsGraph< OsModel_P, Radio_P, Debug_P, MAX_NODES >::Radio
template<typename OsModel_P , typename Radio_P = typename OsModel_P::Radio, typename Debug_P = typename OsModel_P::Debug, uint16_t MAX_NODES = 32>
typedef DdfsGraph<OsModel, Radio, Debug, MAX_NODES> wiselib::DdfsGraph< OsModel_P, Radio_P, Debug_P, MAX_NODES >::self_type
template<typename OsModel_P , typename Radio_P = typename OsModel_P::Radio, typename Debug_P = typename OsModel_P::Debug, uint16_t MAX_NODES = 32>
typedef Radio::size_t wiselib::DdfsGraph< OsModel_P, Radio_P, Debug_P, MAX_NODES >::size_t
template<typename OsModel_P , typename Radio_P = typename OsModel_P::Radio, typename Debug_P = typename OsModel_P::Debug, uint16_t MAX_NODES = 32>
typedef OsModel_P::Timer wiselib::DdfsGraph< OsModel_P, Radio_P, Debug_P, MAX_NODES >::Timer

Constructor & Destructor Documentation

template<typename OsModel_P , typename Radio_P , typename Debug_P , uint16_t MAX_NODES>
wiselib::DdfsGraph< OsModel_P, Radio_P, Debug_P, MAX_NODES >::DdfsGraph ( )
template<typename OsModel_P , typename Radio_P , typename Debug_P , uint16_t MAX_NODES>
wiselib::DdfsGraph< OsModel_P, Radio_P, Debug_P, MAX_NODES >::~DdfsGraph ( )

Member Function Documentation

template<typename OsModel_P , typename Radio_P = typename OsModel_P::Radio, typename Debug_P = typename OsModel_P::Debug, uint16_t MAX_NODES = 32>
void wiselib::DdfsGraph< OsModel_P, Radio_P, Debug_P, MAX_NODES >::destruct ( void  ) [inline]
template<typename OsModel_P , typename Radio_P , typename Debug_P , uint16_t MAX_NODES>
void wiselib::DdfsGraph< OsModel_P, Radio_P, Debug_P, MAX_NODES >::disable ( void  )
template<typename OsModel_P , typename Radio_P , typename Debug_P , uint16_t MAX_NODES>
void wiselib::DdfsGraph< OsModel_P, Radio_P, Debug_P, MAX_NODES >::enable ( void  )
template<typename OsModel_P , typename Radio_P = typename OsModel_P::Radio, typename Debug_P = typename OsModel_P::Debug, uint16_t MAX_NODES = 32>
void wiselib::DdfsGraph< OsModel_P, Radio_P, Debug_P, MAX_NODES >::init ( Radio radio,
Timer timer,
Debug debug 
) [inline]
template<typename OsModel_P , typename Radio_P , typename Debug_P , uint16_t MAX_NODES>
void wiselib::DdfsGraph< OsModel_P, Radio_P, Debug_P, MAX_NODES >::receive ( node_id_t  from,
size_t  len,
block_data_t data 
)
template<typename OsModel_P , typename Radio_P = typename OsModel_P::Radio, typename Debug_P = typename OsModel_P::Debug, uint16_t MAX_NODES = 32>
template<class T , void(T::*)() TMethod>
void wiselib::DdfsGraph< OsModel_P, Radio_P, Debug_P, MAX_NODES >::reg_finish_callback ( T *  obj_pnt) [inline]
template<typename OsModel_P , typename Radio_P = typename OsModel_P::Radio, typename Debug_P = typename OsModel_P::Debug, uint16_t MAX_NODES = 32>
void wiselib::DdfsGraph< OsModel_P, Radio_P, Debug_P, MAX_NODES >::set_neighbourhood_construction_time ( millis_t  neighbourhood_construction_time) [inline]
template<typename OsModel_P , typename Radio_P = typename OsModel_P::Radio, typename Debug_P = typename OsModel_P::Debug, uint16_t MAX_NODES = 32>
void wiselib::DdfsGraph< OsModel_P, Radio_P, Debug_P, MAX_NODES >::set_root ( void  ) [inline]
template<typename OsModel_P , typename Radio_P = typename OsModel_P::Radio, typename Debug_P = typename OsModel_P::Debug, uint16_t MAX_NODES = 32>
void wiselib::DdfsGraph< OsModel_P, Radio_P, Debug_P, MAX_NODES >::set_startup_time ( millis_t  startup_time) [inline]
template<typename OsModel_P , typename Radio_P , typename Debug_P , uint16_t MAX_NODES>
void wiselib::DdfsGraph< OsModel_P, Radio_P, Debug_P, MAX_NODES >::timer0 ( void *  userdata)
template<typename OsModel_P , typename Radio_P , typename Debug_P , uint16_t MAX_NODES>
void wiselib::DdfsGraph< OsModel_P, Radio_P, Debug_P, MAX_NODES >::timer1 ( void *  userdata)

Member Data Documentation

template<typename OsModel_P , typename Radio_P = typename OsModel_P::Radio, typename Debug_P = typename OsModel_P::Debug, uint16_t MAX_NODES = 32>
vector_static<OsModel, node_id_t, MAX_NODES> wiselib::DdfsGraph< OsModel_P, Radio_P, Debug_P, MAX_NODES >::children_
template<typename OsModel_P , typename Radio_P = typename OsModel_P::Radio, typename Debug_P = typename OsModel_P::Debug, uint16_t MAX_NODES = 32>
node_id_t wiselib::DdfsGraph< OsModel_P, Radio_P, Debug_P, MAX_NODES >::parent_

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