blob: c65bb2db6fc1c00ad5af041331b73fa9794b86d1 (
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 "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;
};
}
|