Wiselib
|
Class that wraps the aggregate value and hides the specific aggregate function. More...
#include <greedy_partition.h>
Classes | |
struct | item |
Public Types | |
typedef OsModel_P | OsModel |
typedef OsModel::block_data_t | block_data_t |
typedef OsModel::Radio::node_id_t | node_id_t |
typedef OsModel::Radio::size_t | size_t |
typedef AggregateValue_P | value_t |
typedef greedy_partition < OsModel, AggregateValue_P > | self_t |
typedef wiselib::vector_static < OsModel, struct item, MAX_ITEMS > | items_vector_t |
typedef items_vector_t::iterator | items_iterator_t |
Public Member Functions | |
greedy_partition () | |
greedy_partition (uint32_t K, uint32_t N) | |
void | clear () |
greedy_partition (block_data_t *buffer) | |
void | writeTo (uint8_t *buffer) |
void | set_value (value_t v) |
value_t | get () |
void | put (value_t value, uint32_t timeStamp) |
self_t | combine (self_t &rhs) |
size_t | size () |
void | set (uint32_t kk, uint32_t nn) |
Class that wraps the aggregate value and hides the specific aggregate function.
Changing the aggregate class we can use the same implementation of the aggregation protocol with different combine functions.
typedef OsModel::block_data_t wiselib::greedy_partition< OsModel_P, AggregateValue_P >::block_data_t |
typedef items_vector_t::iterator wiselib::greedy_partition< OsModel_P, AggregateValue_P >::items_iterator_t |
typedef wiselib::vector_static<OsModel, struct item, MAX_ITEMS> wiselib::greedy_partition< OsModel_P, AggregateValue_P >::items_vector_t |
typedef OsModel::Radio::node_id_t wiselib::greedy_partition< OsModel_P, AggregateValue_P >::node_id_t |
typedef OsModel_P wiselib::greedy_partition< OsModel_P, AggregateValue_P >::OsModel |
typedef greedy_partition<OsModel,AggregateValue_P> wiselib::greedy_partition< OsModel_P, AggregateValue_P >::self_t |
typedef OsModel::Radio::size_t wiselib::greedy_partition< OsModel_P, AggregateValue_P >::size_t |
typedef AggregateValue_P wiselib::greedy_partition< OsModel_P, AggregateValue_P >::value_t |
wiselib::greedy_partition< OsModel_P, AggregateValue_P >::greedy_partition | ( | ) | [inline] |
wiselib::greedy_partition< OsModel_P, AggregateValue_P >::greedy_partition | ( | uint32_t | K, |
uint32_t | N | ||
) | [inline] |
wiselib::greedy_partition< OsModel_P, AggregateValue_P >::greedy_partition | ( | block_data_t * | buffer | ) | [inline] |
void wiselib::greedy_partition< OsModel_P, AggregateValue_P >::clear | ( | ) | [inline] |
self_t wiselib::greedy_partition< OsModel_P, AggregateValue_P >::combine | ( | self_t & | rhs | ) | [inline] |
value_t wiselib::greedy_partition< OsModel_P, AggregateValue_P >::get | ( | ) | [inline] |
void wiselib::greedy_partition< OsModel_P, AggregateValue_P >::put | ( | value_t | value, |
uint32_t | timeStamp | ||
) | [inline] |
void wiselib::greedy_partition< OsModel_P, AggregateValue_P >::set | ( | uint32_t | kk, |
uint32_t | nn | ||
) | [inline] |
void wiselib::greedy_partition< OsModel_P, AggregateValue_P >::set_value | ( | value_t | v | ) | [inline] |
size_t wiselib::greedy_partition< OsModel_P, AggregateValue_P >::size | ( | ) | [inline] |
void wiselib::greedy_partition< OsModel_P, AggregateValue_P >::writeTo | ( | uint8_t * | buffer | ) | [inline] |