Wiselib
|
Class that wraps the aggregate value and hides the specific aggregate function. More...
#include <aggregate.h>
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 aggregate_base < OsModel, AggregateValue_P > | self_t |
Public Member Functions | |
aggregate_base () | |
aggregate_base (block_data_t *buffer) | |
void | set_value (value_t v) |
value_t | get () |
self_t | combine (self_t &rhs) |
void | writeTo (uint8_t *buffer) |
size_t | size () |
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::aggregate_base< OsModel_P, AggregateValue_P >::block_data_t |
typedef OsModel::Radio::node_id_t wiselib::aggregate_base< OsModel_P, AggregateValue_P >::node_id_t |
typedef OsModel_P wiselib::aggregate_base< OsModel_P, AggregateValue_P >::OsModel |
typedef aggregate_base<OsModel,AggregateValue_P> wiselib::aggregate_base< OsModel_P, AggregateValue_P >::self_t |
typedef OsModel::Radio::size_t wiselib::aggregate_base< OsModel_P, AggregateValue_P >::size_t |
typedef AggregateValue_P wiselib::aggregate_base< OsModel_P, AggregateValue_P >::value_t |
wiselib::aggregate_base< OsModel_P, AggregateValue_P >::aggregate_base | ( | ) | [inline] |
wiselib::aggregate_base< OsModel_P, AggregateValue_P >::aggregate_base | ( | block_data_t * | buffer | ) | [inline] |
self_t wiselib::aggregate_base< OsModel_P, AggregateValue_P >::combine | ( | self_t & | rhs | ) | [inline] |
value_t wiselib::aggregate_base< OsModel_P, AggregateValue_P >::get | ( | ) | [inline] |
void wiselib::aggregate_base< OsModel_P, AggregateValue_P >::set_value | ( | value_t | v | ) | [inline] |
size_t wiselib::aggregate_base< OsModel_P, AggregateValue_P >::size | ( | ) | [inline] |
void wiselib::aggregate_base< OsModel_P, AggregateValue_P >::writeTo | ( | uint8_t * | buffer | ) | [inline] |