aboutsummaryrefslogtreecommitdiffstats
path: root/searchlib/src/vespa/searchlib/attribute/valuemodifier.cpp
blob: c2635facb317ee11b07224297ccf8899971cd4d6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.

#include "valuemodifier.h"
#include "attributevector.h"

namespace search::attribute {

ValueModifier::ValueModifier(AttributeVector &attr)
    : _attr(&attr)
{ }

ValueModifier::~ValueModifier() {
    if (_attr) {
        _attr->incGeneration();
    }
}

}