blob: d2c18c2eb71f55dce2950768d6b8c41cbdeeca56 (
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 Vespa.ai. 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();
}
}
|