Files
UnrealEngine/Engine/Plugins/Mutable/Source/MutableTools/Private/MuT/ASTOpBoolNot.h
2025-05-18 13:04:45 +08:00

43 lines
953 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "HAL/Platform.h"
#include "MuR/Operations.h"
#include "MuR/Ptr.h"
#include "MuT/AST.h"
namespace mu
{
struct FProgram;
/** */
class ASTOpBoolNot final : public ASTOp
{
public:
ASTChild A;
public:
ASTOpBoolNot();
ASTOpBoolNot(const ASTOpBoolNot&) = delete;
~ASTOpBoolNot();
// ASTOp interface
virtual EOpType GetOpType() const override { return EOpType::BO_NOT; }
virtual uint64 Hash() const override;
virtual bool IsEqual(const ASTOp&) const override;
virtual Ptr<ASTOp> Clone(MapChildFuncRef) const override;
virtual void ForEachChild(const TFunctionRef<void(ASTChild&)>) override;
virtual void Link(FProgram&, FLinkerOptions*) override;
virtual FBoolEvalResult EvaluateBool(ASTOpList& Facts, FEvaluateBoolCache*) const override;
virtual Ptr<ASTOp> OptimiseSemantic(const FModelOptimizationOptions&, int32 Pass) const override;
};
}