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

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

#include <greedy_partition.h>

List of all members.

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)

Detailed Description

template<typename OsModel_P, typename AggregateValue_P>
class wiselib::greedy_partition< 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::greedy_partition< OsModel_P, AggregateValue_P >::block_data_t
template<typename OsModel_P , typename AggregateValue_P >
typedef items_vector_t::iterator wiselib::greedy_partition< OsModel_P, AggregateValue_P >::items_iterator_t
template<typename OsModel_P , typename AggregateValue_P >
typedef wiselib::vector_static<OsModel, struct item, MAX_ITEMS> wiselib::greedy_partition< OsModel_P, AggregateValue_P >::items_vector_t
template<typename OsModel_P , typename AggregateValue_P >
typedef OsModel::Radio::node_id_t wiselib::greedy_partition< OsModel_P, AggregateValue_P >::node_id_t
template<typename OsModel_P , typename AggregateValue_P >
typedef OsModel_P wiselib::greedy_partition< OsModel_P, AggregateValue_P >::OsModel
template<typename OsModel_P , typename AggregateValue_P >
typedef greedy_partition<OsModel,AggregateValue_P> wiselib::greedy_partition< OsModel_P, AggregateValue_P >::self_t
template<typename OsModel_P , typename AggregateValue_P >
typedef OsModel::Radio::size_t wiselib::greedy_partition< OsModel_P, AggregateValue_P >::size_t
template<typename OsModel_P , typename AggregateValue_P >
typedef AggregateValue_P wiselib::greedy_partition< OsModel_P, AggregateValue_P >::value_t

Constructor & Destructor Documentation

template<typename OsModel_P , typename AggregateValue_P >
wiselib::greedy_partition< OsModel_P, AggregateValue_P >::greedy_partition ( ) [inline]
template<typename OsModel_P , typename AggregateValue_P >
wiselib::greedy_partition< OsModel_P, AggregateValue_P >::greedy_partition ( uint32_t  K,
uint32_t  N 
) [inline]
template<typename OsModel_P , typename AggregateValue_P >
wiselib::greedy_partition< OsModel_P, AggregateValue_P >::greedy_partition ( block_data_t buffer) [inline]

Member Function Documentation

template<typename OsModel_P , typename AggregateValue_P >
void wiselib::greedy_partition< OsModel_P, AggregateValue_P >::clear ( ) [inline]
template<typename OsModel_P , typename AggregateValue_P >
self_t wiselib::greedy_partition< OsModel_P, AggregateValue_P >::combine ( self_t rhs) [inline]
template<typename OsModel_P , typename AggregateValue_P >
value_t wiselib::greedy_partition< OsModel_P, AggregateValue_P >::get ( ) [inline]
template<typename OsModel_P , typename AggregateValue_P >
void wiselib::greedy_partition< OsModel_P, AggregateValue_P >::put ( value_t  value,
uint32_t  timeStamp 
) [inline]
template<typename OsModel_P , typename AggregateValue_P >
void wiselib::greedy_partition< OsModel_P, AggregateValue_P >::set ( uint32_t  kk,
uint32_t  nn 
) [inline]
template<typename OsModel_P , typename AggregateValue_P >
void wiselib::greedy_partition< OsModel_P, AggregateValue_P >::set_value ( value_t  v) [inline]
template<typename OsModel_P , typename AggregateValue_P >
size_t wiselib::greedy_partition< OsModel_P, AggregateValue_P >::size ( ) [inline]
template<typename OsModel_P , typename AggregateValue_P >
void wiselib::greedy_partition< 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