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

Fronts iterator module. More...

#include <fronts_it.h>

List of all members.

Public Types

typedef OsModel_P OsModel
typedef Radio_P Radio
typedef OsModel::Timer Timer
typedef OsModel::Debug Debug
typedef FrontsIterator
< OsModel_P, Radio_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 wiselib::vector_static
< OsModel, node_id_t, 10 > 
vector_t
typedef wiselib::pair
< node_id_t, cluster_id_t
gateway_vector_entry_t
typedef wiselib::vector_static
< OsModel,
gateway_vector_entry_t, 10 > 
gateway_vector_t
typedef wiselib::vector_static
< OsModel, wiselib::pair
< node_id_t, node_id_t >, 20 > 
tree_childs_t

Public Member Functions

 FrontsIterator ()
 ~FrontsIterator ()
void init (Radio &radio, Timer &timer, Debug &debug)
void set_parent (node_id_t parent)
void set_cluster_id (cluster_id_t cluster_id)
void set_hops (int hops)
void set_node_type (int node_type)
void clear_any_joined ()
void did_joined ()
cluster_id_t cluster_id (void)
node_id_t parent (void)
int hops ()
int node_type ()
bool any_joined ()
void reset (void)
void node_joined (node_id_t node)
void add_resume (node_id_t from, node_id_t originator)
node_id_t get_child (node_id_t target)
void node_not_joined (node_id_t node, cluster_id_t cluster)
bool is_gateway ()
void drop_node (node_id_t node)
int childs_count ()
void childs (node_id_t *list)
int get_outer_nodes (node_id_t *position)
ResumeClusterMsg< OsModel, Radioget_resume_payload ()
void present_neighbors ()

Public Attributes

vector_t cluster_neighbors_
gateway_vector_t non_cluster_neighbors_
tree_childs_t tree_childs

Detailed Description

template<typename OsModel_P, typename Radio_P>
class wiselib::FrontsIterator< OsModel_P, Radio_P >

Fronts iterator module.


Member Typedef Documentation

template<typename OsModel_P, typename Radio_P>
typedef Radio::block_data_t wiselib::FrontsIterator< OsModel_P, Radio_P >::block_data_t
template<typename OsModel_P, typename Radio_P>
typedef int wiselib::FrontsIterator< OsModel_P, Radio_P >::cluster_id_t
template<typename OsModel_P, typename Radio_P>
typedef OsModel::Debug wiselib::FrontsIterator< OsModel_P, Radio_P >::Debug
template<typename OsModel_P, typename Radio_P>
typedef wiselib::pair<node_id_t, cluster_id_t> wiselib::FrontsIterator< OsModel_P, Radio_P >::gateway_vector_entry_t
template<typename OsModel_P, typename Radio_P>
typedef wiselib::vector_static<OsModel, gateway_vector_entry_t, 10 > wiselib::FrontsIterator< OsModel_P, Radio_P >::gateway_vector_t
template<typename OsModel_P, typename Radio_P>
typedef Radio::node_id_t wiselib::FrontsIterator< OsModel_P, Radio_P >::node_id_t
template<typename OsModel_P, typename Radio_P>
typedef OsModel_P wiselib::FrontsIterator< OsModel_P, Radio_P >::OsModel
template<typename OsModel_P, typename Radio_P>
typedef Radio_P wiselib::FrontsIterator< OsModel_P, Radio_P >::Radio
template<typename OsModel_P, typename Radio_P>
typedef FrontsIterator<OsModel_P, Radio_P> wiselib::FrontsIterator< OsModel_P, Radio_P >::self_t
template<typename OsModel_P, typename Radio_P>
typedef OsModel::Timer wiselib::FrontsIterator< OsModel_P, Radio_P >::Timer
template<typename OsModel_P, typename Radio_P>
typedef wiselib::vector_static<OsModel, wiselib::pair<node_id_t, node_id_t>, 20 > wiselib::FrontsIterator< OsModel_P, Radio_P >::tree_childs_t
template<typename OsModel_P, typename Radio_P>
typedef wiselib::vector_static<OsModel, node_id_t, 10 > wiselib::FrontsIterator< OsModel_P, Radio_P >::vector_t

Constructor & Destructor Documentation

template<typename OsModel_P, typename Radio_P>
wiselib::FrontsIterator< OsModel_P, Radio_P >::FrontsIterator ( ) [inline]
template<typename OsModel_P, typename Radio_P>
wiselib::FrontsIterator< OsModel_P, Radio_P >::~FrontsIterator ( ) [inline]

Member Function Documentation

template<typename OsModel_P, typename Radio_P>
void wiselib::FrontsIterator< OsModel_P, Radio_P >::add_resume ( node_id_t  from,
node_id_t  originator 
) [inline]
template<typename OsModel_P, typename Radio_P>
bool wiselib::FrontsIterator< OsModel_P, Radio_P >::any_joined ( ) [inline]
template<typename OsModel_P, typename Radio_P>
void wiselib::FrontsIterator< OsModel_P, Radio_P >::childs ( node_id_t list) [inline]
template<typename OsModel_P, typename Radio_P>
int wiselib::FrontsIterator< OsModel_P, Radio_P >::childs_count ( ) [inline]
template<typename OsModel_P, typename Radio_P>
void wiselib::FrontsIterator< OsModel_P, Radio_P >::clear_any_joined ( ) [inline]
template<typename OsModel_P, typename Radio_P>
cluster_id_t wiselib::FrontsIterator< OsModel_P, Radio_P >::cluster_id ( void  ) [inline]
template<typename OsModel_P, typename Radio_P>
void wiselib::FrontsIterator< OsModel_P, Radio_P >::did_joined ( ) [inline]
template<typename OsModel_P, typename Radio_P>
void wiselib::FrontsIterator< OsModel_P, Radio_P >::drop_node ( node_id_t  node) [inline]
template<typename OsModel_P, typename Radio_P>
node_id_t wiselib::FrontsIterator< OsModel_P, Radio_P >::get_child ( node_id_t  target) [inline]
template<typename OsModel_P, typename Radio_P>
int wiselib::FrontsIterator< OsModel_P, Radio_P >::get_outer_nodes ( node_id_t position) [inline]
template<typename OsModel_P, typename Radio_P>
ResumeClusterMsg<OsModel, Radio> wiselib::FrontsIterator< OsModel_P, Radio_P >::get_resume_payload ( ) [inline]
template<typename OsModel_P, typename Radio_P>
int wiselib::FrontsIterator< OsModel_P, Radio_P >::hops ( void  ) [inline]
template<typename OsModel_P, typename Radio_P>
void wiselib::FrontsIterator< OsModel_P, Radio_P >::init ( Radio radio,
Timer timer,
Debug debug 
) [inline]
template<typename OsModel_P, typename Radio_P>
bool wiselib::FrontsIterator< OsModel_P, Radio_P >::is_gateway ( ) [inline]
template<typename OsModel_P, typename Radio_P>
void wiselib::FrontsIterator< OsModel_P, Radio_P >::node_joined ( node_id_t  node) [inline]
template<typename OsModel_P, typename Radio_P>
void wiselib::FrontsIterator< OsModel_P, Radio_P >::node_not_joined ( node_id_t  node,
cluster_id_t  cluster 
) [inline]
template<typename OsModel_P, typename Radio_P>
int wiselib::FrontsIterator< OsModel_P, Radio_P >::node_type ( void  ) [inline]
template<typename OsModel_P, typename Radio_P>
node_id_t wiselib::FrontsIterator< OsModel_P, Radio_P >::parent ( void  ) [inline]
template<typename OsModel_P, typename Radio_P>
void wiselib::FrontsIterator< OsModel_P, Radio_P >::present_neighbors ( ) [inline]
template<typename OsModel_P, typename Radio_P>
void wiselib::FrontsIterator< OsModel_P, Radio_P >::reset ( void  ) [inline]
template<typename OsModel_P, typename Radio_P>
void wiselib::FrontsIterator< OsModel_P, Radio_P >::set_cluster_id ( cluster_id_t  cluster_id) [inline]
template<typename OsModel_P, typename Radio_P>
void wiselib::FrontsIterator< OsModel_P, Radio_P >::set_hops ( int  hops) [inline]
template<typename OsModel_P, typename Radio_P>
void wiselib::FrontsIterator< OsModel_P, Radio_P >::set_node_type ( int  node_type) [inline]
template<typename OsModel_P, typename Radio_P>
void wiselib::FrontsIterator< OsModel_P, Radio_P >::set_parent ( node_id_t  parent) [inline]

Member Data Documentation

template<typename OsModel_P, typename Radio_P>
vector_t wiselib::FrontsIterator< OsModel_P, Radio_P >::cluster_neighbors_
template<typename OsModel_P, typename Radio_P>
gateway_vector_t wiselib::FrontsIterator< OsModel_P, Radio_P >::non_cluster_neighbors_
template<typename OsModel_P, typename Radio_P>
tree_childs_t wiselib::FrontsIterator< OsModel_P, Radio_P >::tree_childs

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