summaryrefslogtreecommitdiff
path: root/cpp/src/Freeze/Index.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/Freeze/Index.cpp')
-rw-r--r--cpp/src/Freeze/Index.cpp18
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