Wiselib
|
Base clustering classBasic clustering class that provides helpful methods like registration of callbacks. More...
#include <clustering_base.h>
Public Types | |
enum | ReturnValues { SUCCESS = OsModel::SUCCESS } |
typedef OsModel_P | OsModel |
typedef delegate1< void, int > | cluster_delegate_t |
typedef vector_static< OsModel, cluster_delegate_t, MAX_RECEIVERS > | CallbackVector |
typedef CallbackVector::iterator | CallbackVectorIterator |
Public Member Functions | |
template<class T , void(T::*)(int) TMethod> | |
int | reg_state_changed_callback (T *obj_pnt) |
int | unreg_state_changed_callback (int idx) |
void | state_changed (int event) |
Base clustering class
Basic clustering class that provides helpful methods like registration of callbacks.
typedef vector_static<OsModel, cluster_delegate_t, MAX_RECEIVERS> wiselib::ClusteringBase< OsModel_P, MAX_RECEIVERS >::CallbackVector |
typedef CallbackVector::iterator wiselib::ClusteringBase< OsModel_P, MAX_RECEIVERS >::CallbackVectorIterator |
typedef delegate1<void, int> wiselib::ClusteringBase< OsModel_P, MAX_RECEIVERS >::cluster_delegate_t |
typedef OsModel_P wiselib::ClusteringBase< OsModel_P, MAX_RECEIVERS >::OsModel |
Reimplemented in wiselib::FrontsCore< OsModel_P, Radio_P, HeadDecision_P, JoinDecision_P, Iterator_P >, wiselib::LcaCore< OsModel_P, Radio_P, HeadDecision_P, JoinDecision_P, Iterator_P >, wiselib::MaxmindCore< OsModel_P, HeadDecision_P, JoinDecision_P, Iterator_P >, and wiselib::MocaCore< OsModel_P, HeadDecision_P, JoinDecision_P, Iterator_P >.
enum wiselib::ClusteringBase::ReturnValues |
int wiselib::ClusteringBase< OsModel_P, MAX_RECEIVERS >::reg_state_changed_callback | ( | T * | obj_pnt | ) | [inline] |
void wiselib::ClusteringBase< OsModel_P, MAX_RECEIVERS >::state_changed | ( | int | event | ) | [inline] |
int wiselib::ClusteringBase< OsModel_P, MAX_RECEIVERS >::unreg_state_changed_callback | ( | int | idx | ) | [inline] |