From 2cb10f33a1cc8d3d94450fa45cc8f63ba32c137f Mon Sep 17 00:00:00 2001 From: Bernard Normier Date: Tue, 21 Oct 2003 20:40:01 +0000 Subject: Added Freeze evictor indices --- cpp/src/Freeze/Index.cpp | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 cpp/src/Freeze/Index.cpp (limited to 'cpp/src/Freeze/Index.cpp') 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 +#include + +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 +Freeze::Index::untypedFindFirst(const Key& bytes, Int firstN) const +{ + return _impl->untypedFindFirst(bytes, firstN); +} + +vector +Freeze::Index::untypedFind(const Key& bytes) const +{ + return _impl->untypedFind(bytes); +} + +Int +Freeze::Index::untypedCount(const Key& bytes) const +{ + return _impl->untypedCount(bytes); +} -- cgit v1.2.3