text: // Copyright 1998-2017 Epic Games, Inc. All Rights Reserved.
  
  #pragma once
  
  #include "CoreMinimal.h"
  #include "UObject/ObjectMacros.h"
  #include "EdGraph/EdGraphPin.h"
  #include "K2Node_CallFunction.h"
  #include "K2Node_AddPinInterface.h"
  #include "K2Node_CommutativeAssociativeBinaryOperator.generated.h"
  
  class UEdGraph;
  
  UCLASS(MinimalAPI)
  class UK2Node_CommutativeAssociativeBinaryOperator : public UK2Node_CallFunction, public IK2Node_AddPinInterface
  {
  	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 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 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
  
  	// IK2Node_AddPinInterface interface
  	BLUEPRINTGRAPH_API virtual void AddInputPin() override;
  	virtual bool CanAddPin() const override;
  	// End of IK2Node_AddPinInterface interface
  };
  