//===-- deluxe/executionpolicies/AwaitAll.cpp -------------------*- C++ -*-===//
//
//                                 The RoSA Framework
//
//===----------------------------------------------------------------------===//
///
/// \file deluxe/executionpolicies/AwaitAll.cpp
///
/// \author David Juhasz (david.juhasz@tuwien.ac.at)
///
/// \date 2019
///
/// \brief Implementation for deluxe/executionpolicies/AwaitAll.h.
///
//===----------------------------------------------------------------------===//

#include "AwaitAll.h"

#include <algorithm>

namespace rosa {
namespace deluxe {

AwaitAll::AwaitAll(const std::set<size_t> &S)
    : AwaitBase(S,
                CheckerType(std::all_of<std::set<size_t>::const_iterator,
                                        std::function<bool(const size_t)>>)) {}

std::string AwaitAll::dump(void) const noexcept {
  return "Await all of " + dumpS();
}

} // End namespace deluxe
} // End namespace rosa
