boost::mixin::combinators::boolean_and
// In header: <boost/mixin/combinators.hpp> template<typename MessageReturnType = bool> class boolean_and { public: // types typedef bool result_type; // construct/copy/destruct boolean_and(); // public member functions bool add_result(const MessageReturnType &); bool result() const; void reset(); };
A combinator for a boolean and 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_and 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 false.
bool result() const;
The result of the operation if the multicast call has been made with an input/ouput parameter - an instance of boolean_and
void reset();Resets the result, so the instance could be reused.