summaryrefslogtreecommitdiff
path: root/sc/inc/scmatrix.hxx
diff options
context:
space:
mode:
authorPierre-Eric Pelloux-Prayer <pierre-eric@lanedo.com>2013-08-16 16:29:27 +0200
committerKohei Yoshida <kohei.yoshida@suse.de>2013-08-27 14:12:38 +0000
commit7334f8db6f6004d48e2dbf014f27878a7ae21eb1 (patch)
tree3d7a773e5d48ac07063c4572f215ebfdb580f99a /sc/inc/scmatrix.hxx
parente5321437322fd812b93fee266af309e782479488 (diff)
matrix: add functions to lookup a double or string in columns
Allows efficient lookup, instead of doing per cell fetch + match. Change-Id: I3cd0d26a8fc91ed38fd339229fc0e948fb849f5e Reviewed-on: https://gerrit.libreoffice.org/5454 Reviewed-by: Kohei Yoshida <kohei.yoshida@suse.de> Tested-by: Kohei Yoshida <kohei.yoshida@suse.de>
Diffstat (limited to 'sc/inc/scmatrix.hxx')
-rw-r--r--sc/inc/scmatrix.hxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/sc/inc/scmatrix.hxx b/sc/inc/scmatrix.hxx
index 4057cc4a84dd..2ef596b1eda3 100644
--- a/sc/inc/scmatrix.hxx
+++ b/sc/inc/scmatrix.hxx
@@ -334,6 +334,8 @@ public:
IterateResult SumSquare(bool bTextAsZero) const;
IterateResult Product(bool bTextAsZero) const;
size_t Count(bool bCountStrings) const;
+ size_t MatchDoubleInColumns(double fValue, size_t nCol1, size_t nCol2) const;
+ size_t MatchStringInColumns(const OUString& rStr, size_t nCol1, size_t nCol2) const;
double GetMaxValue( bool bTextAsZero ) const;
double GetMinValue( bool bTextAsZero ) const;