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

#include "unarybitfunctionnode.h"

namespace search::expression {

class XorBitFunctionNode : public UnaryBitFunctionNode
{
public:
    DECLARE_EXPRESSIONNODE(XorBitFunctionNode);
    XorBitFunctionNode();
    XorBitFunctionNode(ExpressionNode::UP arg, unsigned numBits);
    ~XorBitFunctionNode();
private:
    mutable std::vector<uint8_t> _tmpXor;
    bool internalExecute(const vespalib::nbostream & os) const override;
    void onPrepareResult() override;
};

}