Wiselib
Public Types | Public Member Functions
wiselib::aggregate_base< OsModel_P, AggregateValue_P > Class Template Reference

Class that wraps the aggregate value and hides the specific aggregate function. More...

#include <aggregate.h>

List of all members.

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 ()

Detailed Description

template<typename OsModel_P, typename AggregateValue_P>
class wiselib::aggregate_base< OsModel_P, AggregateValue_P >

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.


Member Typedef Documentation

template<typename OsModel_P , typename AggregateValue_P >
typedef OsModel::block_data_t wiselib::aggregate_base< OsModel_P, AggregateValue_P >::block_data_t
template<typename OsModel_P , typename AggregateValue_P >
typedef OsModel::Radio::node_id_t wiselib::aggregate_base< OsModel_P, AggregateValue_P >::node_id_t
template<typename OsModel_P , typename AggregateValue_P >
typedef OsModel_P wiselib::aggregate_base< OsModel_P, AggregateValue_P >::OsModel
template<typename OsModel_P , typename AggregateValue_P >
typedef aggregate_base<OsModel,AggregateValue_P> wiselib::aggregate_base< OsModel_P, AggregateValue_P >::self_t
template<typename OsModel_P , typename AggregateValue_P >
typedef OsModel::Radio::size_t wiselib::aggregate_base< OsModel_P, AggregateValue_P >::size_t
template<typename OsModel_P , typename AggregateValue_P >
typedef AggregateValue_P wiselib::aggregate_base< OsModel_P, AggregateValue_P >::value_t

Constructor & Destructor Documentation

template<typename OsModel_P , typename AggregateValue_P >
wiselib::aggregate_base< OsModel_P, AggregateValue_P >::aggregate_base ( ) [inline]
template<typename OsModel_P , typename AggregateValue_P >
wiselib::aggregate_base< OsModel_P, AggregateValue_P >::aggregate_base ( block_data_t buffer) [inline]

Member Function Documentation

template<typename OsModel_P , typename AggregateValue_P >
self_t wiselib::aggregate_base< OsModel_P, AggregateValue_P >::combine ( self_t rhs) [inline]
template<typename OsModel_P , typename AggregateValue_P >
value_t wiselib::aggregate_base< OsModel_P, AggregateValue_P >::get ( ) [inline]
template<typename OsModel_P , typename AggregateValue_P >
void wiselib::aggregate_base< OsModel_P, AggregateValue_P >::set_value ( value_t  v) [inline]
template<typename OsModel_P , typename AggregateValue_P >
size_t wiselib::aggregate_base< OsModel_P, AggregateValue_P >::size ( ) [inline]
template<typename OsModel_P , typename AggregateValue_P >
void wiselib::aggregate_base< OsModel_P, AggregateValue_P >::writeTo ( uint8_t buffer) [inline]

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