DynaMix  1.3.7
A new take on polymorphism in C++
dynamix::combinators::mean< MessageReturnType > Class Template Reference

#include <combinators.hpp>

Public Types

typedef MessageReturnType result_type
 

Public Member Functions

void set_num_results (size_t num)
 The function called by the multicast caller to set the number of results.
 
bool add_result (const MessageReturnType &r)
 The function used by the code generated for multicast messages.
 
result_type result () const
 
void reset ()
 Resets the result, so the instance could be reused.
 

Detailed Description

template<typename MessageReturnType>
class dynamix::combinators::mean< MessageReturnType >

A combinator that calculates an arithmetic mean of all return values in the multicast chain

Template Parameters
MessageReturnTypeThe actual return type of the messages.

Member Function Documentation

template<typename MessageReturnType >
result_type dynamix::combinators::mean< MessageReturnType >::result ( ) const
inline

The result of the operation if the multicast call has been made with an input/output parameter - an instance of mean


The documentation for this class was generated from the following file: