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

#include "unaryfunctionnode.h"

namespace search {
namespace expression {

class NegateFunctionNode : public UnaryFunctionNode
{
public:
    DECLARE_EXPRESSIONNODE(NegateFunctionNode);
    NegateFunctionNode() { }
    NegateFunctionNode(ExpressionNode::UP arg) : UnaryFunctionNode(std::move(arg)) { }
private:
    bool onExecute() const override;
};

}
}