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

#include <combinators.hpp>

Public Types

typedef MessageReturnType result_type
 

Public Member Functions

bool add_result (const MessageReturnType &r)
 The function used by the code generated for multicast messages.
 
const result_type & result () const
 
void reset ()
 Resets the result, so the instance could be reused.
 

Detailed Description

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

A combinator for a sum operation. Sums all the return values of the multicast chain.

Template Parameters
MessageReturnTypeThe actual return type of the messages.

Member Function Documentation

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

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


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