DynaMix  1.3.7
A new take on polymorphism in C++
dynamix::combinators::boolean_and< 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_and< MessageReturnType >

A combinator for a boolean and 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_and< 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 false.

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

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


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