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

#include <combinators.hpp>

Public Types

typedef bool result_type
 

Public Member Functions

bool add_result (const MessageReturnType &r)
 
bool result () const
 
void reset ()
 Resets the result, so the instance could be reused.
 

Detailed Description

template<typename MessageReturnType = bool>
class dynamix::combinators::boolean_or< MessageReturnType >

A combinator for a boolean or operation.

Template Parameters
MessageReturnTypeThe actual return type of the messages. Its default value is bool, but such an operation is valid for various other classes that can be cast to bool, such as pointers, std streams, etc.

Member Function Documentation

template<typename MessageReturnType = bool>
bool dynamix::combinators::boolean_or< MessageReturnType >::add_result ( const MessageReturnType &  r)
inline

The function used by the code generated for multicast messages. Stops the execution of the multicast chain at the first true.

template<typename MessageReturnType = bool>
bool dynamix::combinators::boolean_or< MessageReturnType >::result ( ) const
inline

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


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