From 8fb02a3d200056b2de36d888c2306bf0c322c5ef Mon Sep 17 00:00:00 2001 From: cxl Date: Tue, 26 Feb 2013 19:12:03 +0000 Subject: [PATCH] Core: Minor InVector changes git-svn-id: svn://ultimatepp.org/upp/trunk@5864 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- uppsrc/Core/InVector.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/uppsrc/Core/InVector.h b/uppsrc/Core/InVector.h index 3c1d99ff4..b23bd2dae 100644 --- a/uppsrc/Core/InVector.h +++ b/uppsrc/Core/InVector.h @@ -454,6 +454,9 @@ public: ConstIterator Begin() const { return iv.Begin(); } ConstIterator End() const { return iv.End(); } ConstIterator GetIter(int pos) const { return iv.GetIter(pos); } + + const InVector& GetKeys() { return iv; } + SortedIndex() {} SortedIndex(const SortedIndex& s, int) : iv(s.iv, 1) {} @@ -513,7 +516,8 @@ public: bool IsPicked() const { return value.IsPicked() || key.IsPicked(); } - const SortedIndex& GetKeys() const { return key; } + const SortedIndex& GetIndex() const { return key; } + const InVector& GetKeys() const { return key.GetKeys(); } const InVector& GetValues() const { return value; } SortedAMap() { SetSlave(); }