Kaydet (Commit) 5be8ac97 authored tarafından Kohei Yoshida's avatar Kohei Yoshida

Function object for printing bucket content. Used only for debugging.

Change-Id: I8090ef9bbcbf335f742c2bb8843dd72a757ef048
üst 388ce838
...@@ -168,6 +168,21 @@ struct Bucket ...@@ -168,6 +168,21 @@ struct Bucket
maValue(rValue), mnOrderIndex(nOrder), mnDataIndex(nData), mnValueSortIndex(0) {} maValue(rValue), mnOrderIndex(nOrder), mnDataIndex(nData), mnValueSortIndex(0) {}
}; };
#if DEBUG_PIVOT_TABLE
#include <iostream>
using std::cout;
using std::endl;
struct PrintBucket : std::unary_function<Bucket, void>
{
void operator() (const Bucket& v) const
{
cout << "value: " << v.maValue.GetValue() << " order index: " << v.mnOrderIndex << " data index: " << v.mnDataIndex << " value sort index: " << v.mnValueSortIndex << endl;
}
};
#endif
struct LessByValue : std::binary_function<Bucket, Bucket, bool> struct LessByValue : std::binary_function<Bucket, Bucket, bool>
{ {
bool operator() (const Bucket& left, const Bucket& right) const bool operator() (const Bucket& left, const Bucket& right) const
...@@ -1100,10 +1115,6 @@ long ScDPCache::GetColumnCount() const ...@@ -1100,10 +1115,6 @@ long ScDPCache::GetColumnCount() const
#if DEBUG_PIVOT_TABLE #if DEBUG_PIVOT_TABLE
#include <iostream>
using std::cout;
using std::endl;
namespace { namespace {
std::ostream& operator<< (::std::ostream& os, const rtl::OUString& str) std::ostream& operator<< (::std::ostream& os, const rtl::OUString& str)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment