From d2a15fedd93ee1fa30e2a7ef769f3378675d3be3 Mon Sep 17 00:00:00 2001 From: Henning Baldersheim Date: Mon, 6 May 2019 12:12:35 +0000 Subject: Deinline test code. --- .../vespa/searchcore/proton/test/attribute_vectors.cpp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 searchcore/src/vespa/searchcore/proton/test/attribute_vectors.cpp (limited to 'searchcore/src') diff --git a/searchcore/src/vespa/searchcore/proton/test/attribute_vectors.cpp b/searchcore/src/vespa/searchcore/proton/test/attribute_vectors.cpp new file mode 100644 index 00000000000..280ef358d26 --- /dev/null +++ b/searchcore/src/vespa/searchcore/proton/test/attribute_vectors.cpp @@ -0,0 +1,17 @@ +// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. +#pragma once + +#include "attribute_utils.h" +#include +#include + +namespace proton::test { + +using Int32Attribute = search::SingleValueNumericAttribute >; + +inline std::unique_ptr +createInt32Attribute(const vespalib::string &name) { + return std::make_unique(name, AttributeUtils::getInt32Config()); +} + +} -- cgit v1.2.3