blob: 1793234e46c301837598ff061ddd4b1da97fc758 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include "external_data_value_factory.h"
#include "external_data_value.h"
#include "basic_value.h"
#include <vespa/vespalib/util/stash.h>
namespace vespalib::slime {
ExternalDataValueFactory::~ExternalDataValueFactory() = default;
Value *
ExternalDataValueFactory::create(Stash &stash) const
{
if (!input) {
return &stash.create<BasicDataValue>(Memory(), stash);
}
return &stash.create<ExternalDataValue>(std::move(input));
}
} // namespace vespalib::slime
|