diff options
author | Bernard Normier <bernard@zeroc.com> | 2004-04-09 23:21:15 +0000 |
---|---|---|
committer | Bernard Normier <bernard@zeroc.com> | 2004-04-09 23:21:15 +0000 |
commit | 0dcad3e212de5e8560e57c1a3d2f04909ebe7513 (patch) | |
tree | 412366d59303c0c4a90d281e50f78c39775db31d /cpp/src/Freeze/Index.cpp | |
parent | Each request now has its own set of object factories. (diff) | |
download | ice-0dcad3e212de5e8560e57c1a3d2f04909ebe7513.tar.bz2 ice-0dcad3e212de5e8560e57c1a3d2f04909ebe7513.tar.xz ice-0dcad3e212de5e8560e57c1a3d2f04909ebe7513.zip |
Updated Freeze Evictor with new facets
Diffstat (limited to 'cpp/src/Freeze/Index.cpp')
-rw-r--r-- | cpp/src/Freeze/Index.cpp | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/cpp/src/Freeze/Index.cpp b/cpp/src/Freeze/Index.cpp index db4034fce27..a5343171740 100644 --- a/cpp/src/Freeze/Index.cpp +++ b/cpp/src/Freeze/Index.cpp @@ -24,10 +24,24 @@ Freeze::Index::~Index() delete _impl; } -Freeze::Index::Index(const string& name) : - _impl(new IndexI(*this, name)) +Freeze::Index::Index(const string& name, const string& facet) : + _name(name), + _facet(facet), + _impl(new IndexI(*this)) { } + +const string& +Freeze::Index::name() const +{ + return _name; +} + +const string& +Freeze::Index::facet() const +{ + return _facet; +} vector<Identity> Freeze::Index::untypedFindFirst(const Key& bytes, Int firstN) const |