blob: e84efe18bc1dfc6584341feb0016cbf6ad69be92 (
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 2017 Yahoo Holdings. 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
{
FieldModifierMapT::const_iterator itr = _map.find(fId);
if (itr == _map.end()) {
return NULL;
}
return itr->second.get();
}
}
|