aboutsummaryrefslogtreecommitdiffstats
path: root/searchlib/src/vespa/searchlib/attribute/valuemodifier.cpp
blob: 56bffa2a551f81647755a734e4adc1f9af17938c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Copyright Yahoo. 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();
    }
}

}