boost::mixin::combinators::boolean_or
// In header: <boost/mixin/combinators.hpp> template<typename MessageReturnType = bool> class boolean_or { public: // types typedef bool result_type; // construct/copy/destruct boolean_or(); // public member functions bool add_result(const MessageReturnType &); bool result() const; void reset(); };
A combinator for a boolean or
operation.
typename MessageReturnType = bool
The 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.
boolean_or
public member functionsbool add_result(const MessageReturnType & r);
The function used by the code generated for multicast messages. Stops the execution of the multicast chain at the first true
.
bool result() const;
The result of the operation if the multicast call has been made with an input/output parameter - an instance of boolean_or
void reset();Resets the result, so the instance could be reused.