summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2017-08-04 13:47:39 +0300
committerTor Lillqvist <tml@collabora.com>2017-08-04 13:47:39 +0300
commit3dd30f7ec568852ffd95932b486d0a09a2021d71 (patch)
tree54303f1c7b2e4668e5b2460bc61e57a95b708ebf
parent1717f57705770ebbfac625945478d0e07e816965 (diff)
Add debug output operator<< for ParamIfsResult
Change-Id: I82cfed0d86c42feabb646301b399695ed71308ed
-rw-r--r--sc/source/core/inc/interpre.hxx15
1 files changed, 15 insertions, 0 deletions
diff --git a/sc/source/core/inc/interpre.hxx b/sc/source/core/inc/interpre.hxx
index 7fa41cb9a561..113cf6aa4ec6 100644
--- a/sc/source/core/inc/interpre.hxx
+++ b/sc/source/core/inc/interpre.hxx
@@ -40,6 +40,7 @@
#include <memory>
#include <vector>
#include <limits>
+#include <ostream>
class ScDocument;
class SbxVariable;
@@ -72,6 +73,20 @@ struct ParamIfsResult
double mfMax = std::numeric_limits<double>::lowest();
};
+template<typename charT, typename traits>
+inline std::basic_ostream<charT, traits> & operator <<(std::basic_ostream<charT, traits> & stream, const ParamIfsResult& rRes)
+{
+ stream << "{" <<
+ "sum=" << rRes.mfSum << "," <<
+ "mem=" << rRes.mfMem << "," <<
+ "count=" << rRes.mfCount << "," <<
+ "min=" << rRes.mfMin << "," <<
+ "max=" << rRes.mfMax << "," <<
+ "}";
+
+ return stream;
+}
+
}
namespace svl {