Page MenuHomePhorge

AwaitBase.h
No OneTemporary

Size
1 KB
Referenced Files
None
Subscribers
None

AwaitBase.h

//===-- deluxe/executionpolicies/AwaitBase.h --------------------*- C++ -*-===//
//
// The RoSA Framework
//
//===----------------------------------------------------------------------===//
///
/// \file deluxe/executionpolicies/AwaitBase.h
///
/// \author David Juhasz (david.juhasz@tuwien.ac.at)
///
/// \date 2019
///
/// \brief Declaration of the DeluxeExecutionPolicy AwaitBase.
///
//===----------------------------------------------------------------------===//
#ifndef ROSA_LIB_DELUXE_EXECUTIONPOLICIES_AWAITBASE_H
#define ROSA_LIB_DELUXE_EXECUTIONPOLICIES_AWAITBASE_H
#include "rosa/deluxe/DeluxeExecutionPolicy.h"
#include <functional>
namespace rosa {
namespace deluxe {
class AwaitBase : public DeluxeExecutionPolicy {
protected:
const std::set<size_t> Set;
using CheckerType = std::function<bool(std::set<size_t>::const_iterator,
std::set<size_t>::const_iterator,
std::function<bool(const size_t)>)>;
const CheckerType Checker;
AwaitBase(const std::set<size_t> &S, CheckerType &&Checker);
public:
bool canHandle(const AgentHandle H, const DeluxeSystem &S) const
noexcept override;
bool doExecute(const std::vector<bool> &InputChanged) noexcept override;
private:
bool canHandleNumberOfInputs(const size_t NumberOfInputs) const noexcept;
protected:
std::string dumpS(void) const noexcept;
};
} // End namespace deluxe
} // End namespace rosa
#endif // ROSA_LIB_DELUXE_EXECUTIONPOLICIES_AWAITBASE_H

File Metadata

Mime Type
text/x-c++
Expires
Mon, May 4, 4:51 AM (1 d, 12 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
313879
Default Alt Text
AwaitBase.h (1 KB)

Event Timeline