summaryrefslogtreecommitdiff
path: root/cpp/src/Freeze/Index.cpp
diff options
context:
space:
mode:
authorBernard Normier <bernard@zeroc.com>2003-10-21 20:40:01 +0000
committerBernard Normier <bernard@zeroc.com>2003-10-21 20:40:01 +0000
commit2cb10f33a1cc8d3d94450fa45cc8f63ba32c137f (patch)
treeee83ca7fa800f497d1e7f340c5d1737545235870 /cpp/src/Freeze/Index.cpp
parentFixed code generation bug. (diff)
downloadice-2cb10f33a1cc8d3d94450fa45cc8f63ba32c137f.tar.bz2
ice-2cb10f33a1cc8d3d94450fa45cc8f63ba32c137f.tar.xz
ice-2cb10f33a1cc8d3d94450fa45cc8f63ba32c137f.zip
Added Freeze evictor indices
Diffstat (limited to 'cpp/src/Freeze/Index.cpp')
-rw-r--r--cpp/src/Freeze/Index.cpp48
1 files changed, 48 insertions, 0 deletions
diff --git a/cpp/src/Freeze/Index.cpp b/cpp/src/Freeze/Index.cpp
new file mode 100644
index 00000000000..db4034fce27
--- /dev/null
+++ b/cpp/src/Freeze/Index.cpp
@@ -0,0 +1,48 @@
+// **********************************************************************
+//
+// Copyright (c) 2003
+// ZeroC, Inc.
+// Billerica, MA, USA
+//
+// All Rights Reserved.
+//
+// Ice is free software; you can redistribute it and/or modify it under
+// the terms of the GNU General Public License version 2 as published by
+// the Free Software Foundation.
+//
+// **********************************************************************
+
+#include <Freeze/Index.h>
+#include <Freeze/IndexI.h>
+
+using namespace Freeze;
+using namespace Ice;
+using namespace std;
+
+Freeze::Index::~Index()
+{
+ delete _impl;
+}
+
+Freeze::Index::Index(const string& name) :
+ _impl(new IndexI(*this, name))
+{
+}
+
+vector<Identity>
+Freeze::Index::untypedFindFirst(const Key& bytes, Int firstN) const
+{
+ return _impl->untypedFindFirst(bytes, firstN);
+}
+
+vector<Identity>
+Freeze::Index::untypedFind(const Key& bytes) const
+{
+ return _impl->untypedFind(bytes);
+}
+
+Int
+Freeze::Index::untypedCount(const Key& bytes) const
+{
+ return _impl->untypedCount(bytes);
+}