Files
UnrealEngineUWP/Engine/Source/Editor/BlueprintGraph/Classes/K2Node_CommutativeAssociativeBinaryOperator.h
Jaroslaw Palczynski f23f29257b Back out changelist 2481333
Rob asked me to back out GENERATED_*_BODY -> GENERATED_BODY change for now until the "_Validate and _Implementation auto-generation" discussion is over.

#codereview Robert.Manuszewski

[CL 2481343 by Jaroslaw Palczynski in Main branch]
2015-03-17 05:38:32 -04:00

45 lines
1.4 KiB
C++

// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
#pragma once
#include "K2Node_CallFunction.h"
#include "K2Node_CommutativeAssociativeBinaryOperator.generated.h"
UCLASS(MinimalAPI)
class UK2Node_CommutativeAssociativeBinaryOperator : public UK2Node_CallFunction
{
GENERATED_UCLASS_BODY()
/** The number of additional input pins to generate for this node (2 base pins are not included) */
UPROPERTY()
int32 NumAdditionalInputs;
private:
const static int32 BinaryOperatorInputsNum = 2;
static int32 GetMaxInputPinsNum();
static FString GetNameForPin(int32 PinIndex);
FEdGraphPinType GetType() const;
void AddInputPinInner(int32 AdditionalPinIndex);
bool CanAddPin() const;
bool CanRemovePin(const UEdGraphPin* Pin) const;
public:
BLUEPRINTGRAPH_API UEdGraphPin* FindOutPin() const;
BLUEPRINTGRAPH_API UEdGraphPin* FindSelfPin() const;
/** Get TRUE input type (self, etc.. are skipped) */
BLUEPRINTGRAPH_API UEdGraphPin* GetInputPin(int32 InputPinIndex);
BLUEPRINTGRAPH_API void AddInputPin();
BLUEPRINTGRAPH_API void RemoveInputPin(UEdGraphPin* Pin);
// UEdGraphNode interface
virtual void AllocateDefaultPins() override;
// End of UEdGraphNode interface
// UK2Node interface
virtual void GetContextMenuActions(const FGraphNodeContextMenuBuilder& Context) const override;
virtual void ExpandNode(class FKismetCompilerContext& CompilerContext, UEdGraph* SourceGraph) override;
// End of UK2Node interface
};