diff options
author | Bernard Normier <bernard@zeroc.com> | 2003-10-21 20:40:01 +0000 |
---|---|---|
committer | Bernard Normier <bernard@zeroc.com> | 2003-10-21 20:40:01 +0000 |
commit | 2cb10f33a1cc8d3d94450fa45cc8f63ba32c137f (patch) | |
tree | ee83ca7fa800f497d1e7f340c5d1737545235870 /cpp/include/Freeze/Index.h | |
parent | Fixed code generation bug. (diff) | |
download | ice-2cb10f33a1cc8d3d94450fa45cc8f63ba32c137f.tar.bz2 ice-2cb10f33a1cc8d3d94450fa45cc8f63ba32c137f.tar.xz ice-2cb10f33a1cc8d3d94450fa45cc8f63ba32c137f.zip |
Added Freeze evictor indices
Diffstat (limited to 'cpp/include/Freeze/Index.h')
-rw-r--r-- | cpp/include/Freeze/Index.h | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/cpp/include/Freeze/Index.h b/cpp/include/Freeze/Index.h new file mode 100644 index 00000000000..4a8ce94ac65 --- /dev/null +++ b/cpp/include/Freeze/Index.h @@ -0,0 +1,64 @@ +// ********************************************************************** +// +// 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. +// +// ********************************************************************** + +#ifndef FREEZE_INDEX_H +#define FREEZE_INDEX_H + +#include <Ice/Ice.h> +#include <Freeze/DB.h> +#include <vector> + +namespace Freeze +{ + +class IndexI; +class EvictorI; + +class FREEZE_API Index : public IceUtil::Shared +{ +public: + + virtual ~Index(); + +protected: + + Index(const std::string&); + + virtual bool + marshalKey(const Ice::ObjectPtr&, Freeze::Key&) const = 0; + + std::vector<Ice::Identity> + untypedFindFirst(const Freeze::Key&, Ice::Int) const; + + std::vector<Ice::Identity> + untypedFind(const Freeze::Key&) const; + + Ice::Int + untypedCount(const Freeze::Key&) const; + + friend class IndexI; + + Ice::CommunicatorPtr _communicator; + +private: + + friend class EvictorI; + IndexI* _impl; +}; + +typedef IceUtil::Handle<Index> IndexPtr; +} + +#endif + |