fix: PASSFUNCTIONDEL
This commit is contained in:
@@ -16,16 +16,24 @@ class DBPhaseEntryBase;
|
|||||||
#define PASSFUNCTIONDECL \
|
#define PASSFUNCTIONDECL \
|
||||||
([[maybe_unused]] const std::shared_ptr<DBPhaseEntryBase> thisPhase, \
|
([[maybe_unused]] const std::shared_ptr<DBPhaseEntryBase> thisPhase, \
|
||||||
[[maybe_unused]] const std::shared_ptr<DBPhaseEntryBase> otherPhase)
|
[[maybe_unused]] const std::shared_ptr<DBPhaseEntryBase> otherPhase)
|
||||||
|
|
||||||
struct PassFunction
|
struct PassFunction
|
||||||
{
|
{
|
||||||
using Fn = std::function<bool PASSFUNCTIONDECL>;
|
using Fn = std::function<
|
||||||
PassFunction(Fn passFunction) : mPassFn{std::move(passFunction)} {}
|
bool(const std::shared_ptr<DBPhaseEntryBase>&,
|
||||||
|
const std::shared_ptr<DBPhaseEntryBase>&)>;
|
||||||
|
|
||||||
bool execute PASSFUNCTIONDECL { return mPassFn(thisPhase, otherPhase); }
|
explicit PassFunction(Fn passFunction) : mPassFn{std::move(passFunction)} {}
|
||||||
|
|
||||||
|
bool execute PASSFUNCTIONDECL
|
||||||
|
{
|
||||||
|
return mPassFn(thisPhase, otherPhase);
|
||||||
|
}
|
||||||
|
|
||||||
Fn mPassFn;
|
Fn mPassFn;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
class TimeDependency
|
class TimeDependency
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|||||||
Reference in New Issue
Block a user