Wiselib
Public Types | Public Member Functions
wiselib::MaxmindIterator< OsModel_P > Class Template Reference

MaxMinD iterator module. More...

#include <maxmind_it.h>

List of all members.

Public Types

typedef OsModel_P OsModel
typedef OsModel::Radio Radio
typedef OsModel::Timer Timer
typedef OsModel::Debug Debug
typedef MaxmindIterator
< OsModel_P > 
self_t
typedef int cluster_id_t
typedef Radio::node_id_t node_id_t
typedef Radio::block_data_t block_data_t
typedef Radio::size_t size_t
typedef wiselib::vector_static
< OsModel, node_id_t, 250 > 
vector_t
typedef delegate1< void, int > iterator_delegate_t

Public Member Functions

 MaxmindIterator ()
 ~MaxmindIterator ()
void init (Radio &radio, Timer &timer, Debug &debug)
void set_parent (node_id_t parent)
node_id_t parent (void)
void set_cluster_id (cluster_id_t cluster_id)
cluster_id_t cluster_id (void)
void timer_expired (void *data)
void node_joined (node_id_t node)
bool is_empty (void)
void set_theta (int theta)
void set_node_type (int node_type)
int node_type ()
void set_id (node_id_t id)
bool add_to_cluster (node_id_t node)
bool remove_from_cluster (node_id_t node)
bool add_to_non_cluster (node_id_t node)
bool remove_from_non_cluster (node_id_t node)
void present_neibhors ()
void eat_convergecast (uint8_t *payload, size_t len)
bool inform (uint8_t *mess, uint8_t length)
void set_hops (int hops)
int hops ()
void add_neighbor (node_id_t node_id)
node_id_t next_neighbor ()
void get_inform_payload (block_data_t *mess)
void get_convergecast_payload (block_data_t *mess)
void get_rejoin_payload (block_data_t *mess, node_id_t destination)
size_t get_payload_length (int type)
template<typename T , void(T::*)(int) TMethod>
int reg_next_callback (T *obj)
void unreg_next_callback (uint8_t idx)
void enable (void)
void disable (void)

Detailed Description

template<typename OsModel_P>
class wiselib::MaxmindIterator< OsModel_P >

MaxMinD iterator module.


Member Typedef Documentation

template<typename OsModel_P >
typedef Radio::block_data_t wiselib::MaxmindIterator< OsModel_P >::block_data_t
template<typename OsModel_P >
typedef int wiselib::MaxmindIterator< OsModel_P >::cluster_id_t
template<typename OsModel_P >
typedef OsModel::Debug wiselib::MaxmindIterator< OsModel_P >::Debug
template<typename OsModel_P >
typedef delegate1<void, int> wiselib::MaxmindIterator< OsModel_P >::iterator_delegate_t
template<typename OsModel_P >
typedef Radio::node_id_t wiselib::MaxmindIterator< OsModel_P >::node_id_t
template<typename OsModel_P >
typedef OsModel_P wiselib::MaxmindIterator< OsModel_P >::OsModel
template<typename OsModel_P >
typedef OsModel::Radio wiselib::MaxmindIterator< OsModel_P >::Radio
template<typename OsModel_P >
typedef MaxmindIterator<OsModel_P> wiselib::MaxmindIterator< OsModel_P >::self_t
template<typename OsModel_P >
typedef Radio::size_t wiselib::MaxmindIterator< OsModel_P >::size_t
template<typename OsModel_P >
typedef OsModel::Timer wiselib::MaxmindIterator< OsModel_P >::Timer
template<typename OsModel_P >
typedef wiselib::vector_static<OsModel, node_id_t, 250 > wiselib::MaxmindIterator< OsModel_P >::vector_t

Constructor & Destructor Documentation

template<typename OsModel_P >
wiselib::MaxmindIterator< OsModel_P >::MaxmindIterator ( ) [inline]
template<typename OsModel_P >
wiselib::MaxmindIterator< OsModel_P >::~MaxmindIterator ( ) [inline]

Member Function Documentation

template<typename OsModel_P >
void wiselib::MaxmindIterator< OsModel_P >::add_neighbor ( node_id_t  node_id) [inline]
template<typename OsModel_P >
bool wiselib::MaxmindIterator< OsModel_P >::add_to_cluster ( node_id_t  node) [inline]
template<typename OsModel_P >
bool wiselib::MaxmindIterator< OsModel_P >::add_to_non_cluster ( node_id_t  node) [inline]
template<typename OsModel_P >
cluster_id_t wiselib::MaxmindIterator< OsModel_P >::cluster_id ( void  ) [inline]
template<typename OsModel_P >
void wiselib::MaxmindIterator< OsModel_P >::disable ( void  ) [inline]
template<typename OsModel_P >
void wiselib::MaxmindIterator< OsModel_P >::eat_convergecast ( uint8_t payload,
size_t  len 
) [inline]
template<typename OsModel_P >
void wiselib::MaxmindIterator< OsModel_P >::enable ( void  ) [inline]
template<typename OsModel_P >
void wiselib::MaxmindIterator< OsModel_P >::get_convergecast_payload ( block_data_t mess) [inline]
template<typename OsModel_P >
void wiselib::MaxmindIterator< OsModel_P >::get_inform_payload ( block_data_t mess) [inline]
template<typename OsModel_P >
size_t wiselib::MaxmindIterator< OsModel_P >::get_payload_length ( int  type) [inline]
template<typename OsModel_P >
void wiselib::MaxmindIterator< OsModel_P >::get_rejoin_payload ( block_data_t mess,
node_id_t  destination 
) [inline]
template<typename OsModel_P >
int wiselib::MaxmindIterator< OsModel_P >::hops ( void  ) [inline]
template<typename OsModel_P >
bool wiselib::MaxmindIterator< OsModel_P >::inform ( uint8_t mess,
uint8_t  length 
) [inline]
template<typename OsModel_P >
void wiselib::MaxmindIterator< OsModel_P >::init ( Radio radio,
Timer timer,
Debug debug 
) [inline]
template<typename OsModel_P >
bool wiselib::MaxmindIterator< OsModel_P >::is_empty ( void  ) [inline]
template<typename OsModel_P >
node_id_t wiselib::MaxmindIterator< OsModel_P >::next_neighbor ( ) [inline]
template<typename OsModel_P >
void wiselib::MaxmindIterator< OsModel_P >::node_joined ( node_id_t  node)
template<typename OsModel_P >
int wiselib::MaxmindIterator< OsModel_P >::node_type ( void  ) [inline]
template<typename OsModel_P >
node_id_t wiselib::MaxmindIterator< OsModel_P >::parent ( void  ) [inline]
template<typename OsModel_P >
void wiselib::MaxmindIterator< OsModel_P >::present_neibhors ( ) [inline]
template<typename OsModel_P >
template<typename T , void(T::*)(int) TMethod>
int wiselib::MaxmindIterator< OsModel_P >::reg_next_callback ( T *  obj) [inline]
template<typename OsModel_P >
bool wiselib::MaxmindIterator< OsModel_P >::remove_from_cluster ( node_id_t  node) [inline]
template<typename OsModel_P >
bool wiselib::MaxmindIterator< OsModel_P >::remove_from_non_cluster ( node_id_t  node) [inline]
template<typename OsModel_P >
void wiselib::MaxmindIterator< OsModel_P >::set_cluster_id ( cluster_id_t  cluster_id) [inline]
template<typename OsModel_P >
void wiselib::MaxmindIterator< OsModel_P >::set_hops ( int  hops) [inline]
template<typename OsModel_P >
void wiselib::MaxmindIterator< OsModel_P >::set_id ( node_id_t  id) [inline]
template<typename OsModel_P >
void wiselib::MaxmindIterator< OsModel_P >::set_node_type ( int  node_type) [inline]
template<typename OsModel_P >
void wiselib::MaxmindIterator< OsModel_P >::set_parent ( node_id_t  parent) [inline]
template<typename OsModel_P >
void wiselib::MaxmindIterator< OsModel_P >::set_theta ( int  theta) [inline]
template<typename OsModel_P >
void wiselib::MaxmindIterator< OsModel_P >::timer_expired ( void *  data)
template<typename OsModel_P >
void wiselib::MaxmindIterator< OsModel_P >::unreg_next_callback ( uint8_t  idx) [inline]

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