summaryrefslogtreecommitdiffstats
path: root/searchcore/src/vespa/searchcorespi/index/indexsearchablevisitor.h
diff options
context:
space:
mode:
Diffstat (limited to 'searchcore/src/vespa/searchcorespi/index/indexsearchablevisitor.h')
-rw-r--r--searchcore/src/vespa/searchcorespi/index/indexsearchablevisitor.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/searchcore/src/vespa/searchcorespi/index/indexsearchablevisitor.h b/searchcore/src/vespa/searchcorespi/index/indexsearchablevisitor.h
new file mode 100644
index 00000000000..f85a2cf4af6
--- /dev/null
+++ b/searchcore/src/vespa/searchcorespi/index/indexsearchablevisitor.h
@@ -0,0 +1,26 @@
+// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
+
+#pragma once
+
+namespace searchcorespi {
+
+namespace index {
+
+struct IDiskIndex;
+struct IMemoryIndex;
+
+}
+
+/*
+ * Interface for visiting an index searchable containing disk and
+ * memory indexes.
+ */
+class IndexSearchableVisitor
+{
+public:
+ virtual ~IndexSearchableVisitor() { }
+ virtual void visit(const index::IDiskIndex &index) = 0;
+ virtual void visit(const index::IMemoryIndex &index) = 0;
+};
+
+} // namespace searchcorespi