summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2022-10-18 12:32:57 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2022-10-18 12:32:57 +0000
commit810477063603f2e8a91a9703f1fe4c53ff80522a (patch)
tree0f2de9dd830a292a3fca4571682b5c2fd9487592
parent132b1cf81cd016a8b4bff2e74c6cb1b9fba1b226 (diff)
Deinline IFlushTarget constructor and destructor
-rw-r--r--searchcore/src/vespa/searchcorespi/flush/CMakeLists.txt1
-rw-r--r--searchcore/src/vespa/searchcorespi/flush/iflushtarget.h20
2 files changed, 7 insertions, 14 deletions
diff --git a/searchcore/src/vespa/searchcorespi/flush/CMakeLists.txt b/searchcore/src/vespa/searchcorespi/flush/CMakeLists.txt
index b2777d4327a..f4c28cf4c5d 100644
--- a/searchcore/src/vespa/searchcorespi/flush/CMakeLists.txt
+++ b/searchcore/src/vespa/searchcorespi/flush/CMakeLists.txt
@@ -2,5 +2,6 @@
vespa_add_library(searchcorespi_flush STATIC OBJECT
SOURCES
flushstats.cpp
+ iflushtarget.cpp
DEPENDS
)
diff --git a/searchcore/src/vespa/searchcorespi/flush/iflushtarget.h b/searchcore/src/vespa/searchcorespi/flush/iflushtarget.h
index dff6041d7d5..e3ddf98ce9f 100644
--- a/searchcore/src/vespa/searchcorespi/flush/iflushtarget.h
+++ b/searchcore/src/vespa/searchcorespi/flush/iflushtarget.h
@@ -67,20 +67,16 @@ public:
/**
* Convenience typedefs.
*/
- typedef std::shared_ptr<IFlushTarget> SP;
- typedef std::vector<SP> List;
- typedef FlushTask Task;
+ using SP = std::shared_ptr<IFlushTarget>;
+ using List = std::vector<SP>;
+ using Task = FlushTask;
/**
* Constructs a new instance of this class.
*
* @param name The handler-wide unique name of this target.
*/
- IFlushTarget(const vespalib::string &name) noexcept
- : _name(name),
- _type(Type::OTHER),
- _component(Component::OTHER)
- { }
+ IFlushTarget(const vespalib::string &name) noexcept;
/**
* Constructs a new instance of this class.
@@ -91,16 +87,12 @@ public:
*/
IFlushTarget(const vespalib::string &name,
const Type &type,
- const Component &component) noexcept
- : _name(name),
- _type(type),
- _component(component)
- { }
+ const Component &component) noexcept;
/**
* Virtual destructor required for inheritance.
*/
- virtual ~IFlushTarget() = default;
+ virtual ~IFlushTarget();
/**
* Returns the handler-wide unique name of this target.