aboutsummaryrefslogtreecommitdiffstats
path: root/streamingvisitors/src/vespa/vsm/common/fieldmodifier.cpp
blob: 93a071deade071e4f437dbfb75a67321435a5c8f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.

#include "fieldmodifier.h"
#include <vespa/vespalib/stllike/hash_map.hpp>

namespace vsm {

FieldModifierMap::FieldModifierMap() :
    _map()
{ }

FieldModifierMap::~FieldModifierMap() { }

FieldModifier *
FieldModifierMap::getModifier(FieldIdT fId) const
{
    auto itr = _map.find(fId);
    if (itr == _map.end()) {
        return nullptr;
    }
    return itr->second.get();
}

}