summaryrefslogtreecommitdiffstats
path: root/sc/inc/dpresfilter.hxx
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@gmail.com>2013-04-18 16:35:23 -0400
committerKohei Yoshida <kohei.yoshida@gmail.com>2013-04-19 00:30:10 -0400
commit1939399c0a1558e7b8b5f05a5eace5d84f896939 (patch)
tree2a1a7e4c047248da3f11221cbf8347f8f04ff8ba /sc/inc/dpresfilter.hxx
parentAdd some more notes to make it easier to pick up on this for my next visit. (diff)
downloadcore-1939399c0a1558e7b8b5f05a5eace5d84f896939.tar.gz
core-1939399c0a1558e7b8b5f05a5eace5d84f896939.zip
More progress. Getting more clue, but still not out of the dark yet.
Change-Id: I0467cd95e2c6f2f353333b24e1aba737d99e5c20
Diffstat (limited to 'sc/inc/dpresfilter.hxx')
-rw-r--r--sc/inc/dpresfilter.hxx16
1 files changed, 13 insertions, 3 deletions
diff --git a/sc/inc/dpresfilter.hxx b/sc/inc/dpresfilter.hxx
index 05bcdcb45ae1..5e6f3e7199a6 100644
--- a/sc/inc/dpresfilter.hxx
+++ b/sc/inc/dpresfilter.hxx
@@ -17,10 +17,10 @@
#if DEBUG_PIVOT_TABLE
#include <map>
-#else
-#include <boost/unordered_map.hpp>
#endif
+#include <boost/unordered_map.hpp>
+
struct ScDPResultFilter
{
OUString maDimName;
@@ -48,6 +48,12 @@ struct ScDPResultFilter
*/
class ScDPResultFilterSet : boost::noncopyable
{
+public:
+ typedef std::vector<double> ValuesType;
+ typedef boost::unordered_map<OUString, OUString, OUStringHash> FilterSetType;
+
+private:
+
struct MemberNode;
struct DimensionNode;
#if DEBUG_PIVOT_TABLE
@@ -58,7 +64,6 @@ class ScDPResultFilterSet : boost::noncopyable
typedef boost::unordered_map<ScDPItemData, MemberNode*, ScDPItemData::Hash> MembersType;
typedef boost::unordered_map<OUString, DimensionNode*, OUStringHash> DimensionsType;
#endif
- typedef std::vector<double> ValuesType;
struct DimensionNode : boost::noncopyable
{
@@ -92,6 +97,7 @@ class ScDPResultFilterSet : boost::noncopyable
MemberNode* mpRoot;
public:
+
ScDPResultFilterSet();
~ScDPResultFilterSet();
@@ -110,6 +116,10 @@ public:
void swap(ScDPResultFilterSet& rOther);
+ bool empty() const;
+
+ bool getValues(FilterSetType& rFilters, ValuesType& rValues) const;
+
#if DEBUG_PIVOT_TABLE
void dump() const;
#endif