diff options
author | Fridrich Štrba <fridrich.strba@bluewin.ch> | 2011-02-06 00:56:21 +0100 |
---|---|---|
committer | Fridrich Štrba <fridrich.strba@bluewin.ch> | 2011-02-06 00:59:10 +0100 |
commit | eb1d9d3cda2da6b00749ff61ea63931f00a5b2b7 (patch) | |
tree | 4d31232cf0d58f153ca474ba8802344f954c9836 /sc/inc/dpcachetable.hxx | |
parent | 82d08610465649dd1a49f8b7f6d4e7cf80f15c16 (diff) |
port repository calc to boost unordered containers
Diffstat (limited to 'sc/inc/dpcachetable.hxx')
-rw-r--r-- | sc/inc/dpcachetable.hxx | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/sc/inc/dpcachetable.hxx b/sc/inc/dpcachetable.hxx index b8fb00a0bcec..06eecef19763 100644 --- a/sc/inc/dpcachetable.hxx +++ b/sc/inc/dpcachetable.hxx @@ -35,8 +35,7 @@ #include "collect.hxx" #include <vector> -#include <hash_map> -#include <hash_set> +#include <boost/unordered_set.hpp> #include <boost/shared_ptr.hpp> #include <com/sun/star/uno/Reference.hxx> @@ -153,7 +152,7 @@ public: /** Set filter on/off flag to each row to control visibility. The caller must ensure that the table is filled before calling this function. */ - void filterByPageDimension(const ::std::vector<Criterion>& rCriteria, const ::std::hash_set<sal_Int32>& rRepeatIfEmptyDims); + void filterByPageDimension(const ::std::vector<Criterion>& rCriteria, const ::boost::unordered_set<sal_Int32>& rRepeatIfEmptyDims); /** Get the cell instance at specified location within the data grid. Note that the data grid doesn't include the header row. Don't delete the @@ -172,7 +171,7 @@ public: a drill-down data table. */ void filterTable(const ::std::vector<Criterion>& rCriteria, ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any > >& rTabData, - const ::std::hash_set<sal_Int32>& rRepeatIfEmptyDims); + const ::boost::unordered_set<sal_Int32>& rRepeatIfEmptyDims); void clear(); bool empty() const; @@ -187,7 +186,7 @@ private: * @param nRow index of row to be tested. * @param rCriteria a list of criteria */ - bool isRowQualified(sal_Int32 nRow, const ::std::vector<Criterion>& rCriteria, const ::std::hash_set<sal_Int32>& rRepeatIfEmptyDims) const; + bool isRowQualified(sal_Int32 nRow, const ::std::vector<Criterion>& rCriteria, const ::boost::unordered_set<sal_Int32>& rRepeatIfEmptyDims) const; void getValueData(ScDocument* pDoc, const ScAddress& rPos, ScDPCacheCell& rCell); void initNoneCache( ScDocument* pDoc ); |