aboutsummaryrefslogtreecommitdiffstats
path: root/searchlib/src/vespa/searchlib/expression/binaryfunctionnode.h
blob: 58a6e37798a5c63aaf5e940ff0a0c5c51c797ab3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once

#include "multiargfunctionnode.h"

namespace search {
namespace expression {

class BinaryFunctionNode : public MultiArgFunctionNode
{
public:
    DECLARE_ABSTRACT_EXPRESSIONNODE(BinaryFunctionNode);
    BinaryFunctionNode() { }
    BinaryFunctionNode(ExpressionNode::UP arg1, ExpressionNode::UP arg2) :
        MultiArgFunctionNode()
    {
        appendArg(std::move(arg1));
        appendArg(std::move(arg2));
    }
};

}
}