blob: 11e03595caf6ca5dfa23d871c60f2036f9f020be (
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
25
26
27
28
|
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include "attribute_spec.h"
#include <vespa/searchcommon/attribute/config.h>
namespace proton {
AttributeSpec::AttributeSpec(const vespalib::string &name, const Config &cfg)
: _name(name),
_cfg(std::make_unique<Config>(cfg))
{
}
AttributeSpec::AttributeSpec(AttributeSpec &&) noexcept = default;
AttributeSpec &
AttributeSpec::operator=(AttributeSpec &&) noexcept = default;
AttributeSpec::~AttributeSpec() = default;
bool
AttributeSpec::operator==(const AttributeSpec &rhs) const
{
return ((_name == rhs._name) &&
(_cfg == rhs._cfg));
}
}
|