diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2017-03-03 11:48:21 +0100 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2017-03-08 21:38:37 +0000 |
commit | 1f5ec300402aeb0f20a8a011c669fcefdd72f847 (patch) | |
tree | da58163192626f4d03edd54e43129843016e8899 /eval | |
parent | be9df8bfa22cf5a7164f4f3deba44cdbd2b8e7cf (diff) |
deinline large destructors
Diffstat (limited to 'eval')
-rw-r--r-- | eval/src/vespa/eval/eval/interpreted_function.cpp | 15 | ||||
-rw-r--r-- | eval/src/vespa/eval/eval/interpreted_function.h | 5 |
2 files changed, 13 insertions, 7 deletions
diff --git a/eval/src/vespa/eval/eval/interpreted_function.cpp b/eval/src/vespa/eval/eval/interpreted_function.cpp index 61edc4567b7..b308de6b3c0 100644 --- a/eval/src/vespa/eval/eval/interpreted_function.cpp +++ b/eval/src/vespa/eval/eval/interpreted_function.cpp @@ -4,15 +4,12 @@ #include "node_visitor.h" #include "node_traverser.h" #include "check_type.h" -#include <cmath> -#include <vespa/vespalib/util/approx.h> -#include "operation.h" -#include <set> #include "tensor_spec.h" -#include "simple_tensor_engine.h" #include <vespa/vespalib/util/classname.h> #include <vespa/eval/eval/llvm/compile_cache.h> #include <vespa/vespalib/util/benchmark_timer.h> +#include <set> + namespace vespalib { namespace eval { @@ -520,6 +517,12 @@ InterpretedFunction::LazyParams::~LazyParams() { } +InterpretedFunction::SimpleParams::SimpleParams(const std::vector<double> ¶ms_in) + : params(params_in) +{} + +InterpretedFunction::SimpleParams::~SimpleParams() { } + const Value & InterpretedFunction::SimpleParams::resolve(size_t idx, Stash &stash) const { @@ -544,6 +547,8 @@ InterpretedFunction::State::State(const TensorEngine &engine_in) { } +InterpretedFunction::State::~State() {} + void InterpretedFunction::State::init(const LazyParams ¶ms_in) { params = ¶ms_in; diff --git a/eval/src/vespa/eval/eval/interpreted_function.h b/eval/src/vespa/eval/eval/interpreted_function.h index d0e6de119af..540f8212256 100644 --- a/eval/src/vespa/eval/eval/interpreted_function.h +++ b/eval/src/vespa/eval/eval/interpreted_function.h @@ -3,9 +3,9 @@ #pragma once #include "function.h" -#include <vespa/vespalib/util/stash.h> #include "simple_tensor_engine.h" #include "node_types.h" +#include <vespa/vespalib/util/stash.h> namespace vespalib { namespace eval { @@ -39,7 +39,8 @@ public: **/ struct SimpleParams : LazyParams { std::vector<double> params; - explicit SimpleParams(const std::vector<double> ¶ms_in) : params(params_in) {} + explicit SimpleParams(const std::vector<double> ¶ms_in); + ~SimpleParams(); const Value &resolve(size_t idx, Stash &stash) const override; }; /** |