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/externalrefmgr.hxx | |
parent | Some cppcheck cleaning (diff) | |
download | core-eb1d9d3cda2da6b00749ff61ea63931f00a5b2b7.tar.gz core-eb1d9d3cda2da6b00749ff61ea63931f00a5b2b7.zip |
port repository calc to boost unordered containers
Diffstat (limited to 'sc/inc/externalrefmgr.hxx')
-rw-r--r-- | sc/inc/externalrefmgr.hxx | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/sc/inc/externalrefmgr.hxx b/sc/inc/externalrefmgr.hxx index 478fb519d4e5..1f155b250162 100644 --- a/sc/inc/externalrefmgr.hxx +++ b/sc/inc/externalrefmgr.hxx @@ -40,8 +40,8 @@ #include "rangelst.hxx" #include "formula/token.hxx" -#include <hash_map> -#include <hash_set> +#include <boost/unordered_map.hpp> +#include <boost/unordered_set.hpp> #include <boost/shared_ptr.hpp> #include <vector> #include <list> @@ -122,8 +122,8 @@ private: TokenRef mxToken; sal_uInt32 mnFmtIndex; }; - typedef ::std::hash_map<SCCOL, Cell> RowDataType; - typedef ::std::hash_map<SCROW, RowDataType> RowsDataType; + typedef ::boost::unordered_map<SCCOL, Cell> RowDataType; + typedef ::boost::unordered_map<SCROW, RowDataType> RowsDataType; public: // SUNWS needs a forward declared friend, otherwise types and members @@ -207,7 +207,7 @@ public: }; typedef ::boost::shared_ptr<Table> TableTypeRef; - typedef ::std::hash_map<String, size_t, ScStringHashCode> TableNameIndexMap; + typedef ::boost::unordered_map<String, size_t, ScStringHashCode> TableNameIndexMap; ScExternalRefCache(); ~ScExternalRefCache(); @@ -322,9 +322,9 @@ private: } }; - typedef ::std::hash_map<String, TokenArrayRef, ScStringHashCode> RangeNameMap; - typedef ::std::hash_map<ScRange, TokenArrayRef, RangeHash> RangeArrayMap; - typedef ::std::hash_map<String, String, ScStringHashCode> NamePairMap; + typedef ::boost::unordered_map<String, TokenArrayRef, ScStringHashCode> RangeNameMap; + typedef ::boost::unordered_map<ScRange, TokenArrayRef, RangeHash> RangeArrayMap; + typedef ::boost::unordered_map<String, String, ScStringHashCode> NamePairMap; // SUNWS needs a forward declared friend, otherwise types and members // of the outer class are not accessible. @@ -351,7 +351,7 @@ private: DocItem() : mbInitFromSource(false) {} }; - typedef ::std::hash_map<sal_uInt16, DocItem> DocDataType; + typedef ::boost::unordered_map<sal_uInt16, DocItem> DocDataType; DocItem* getDocItem(sal_uInt16 nFileId) const; private: @@ -365,7 +365,7 @@ class SC_DLLPUBLIC ScExternalRefManager : public formula::ExternalReferenceHelpe public: typedef ::std::set<ScFormulaCell*> RefCellSet; - typedef ::std::hash_map<sal_uInt16, RefCellSet> RefCellMap; + typedef ::boost::unordered_map<sal_uInt16, RefCellSet> RefCellMap; enum LinkUpdateType { LINK_MODIFIED, LINK_BROKEN }; @@ -413,14 +413,14 @@ private: Time maLastAccess; }; - typedef ::std::hash_map<sal_uInt16, SrcShell> DocShellMap; - typedef ::std::hash_map<sal_uInt16, bool> LinkedDocMap; + typedef ::boost::unordered_map<sal_uInt16, SrcShell> DocShellMap; + typedef ::boost::unordered_map<sal_uInt16, bool> LinkedDocMap; - typedef ::std::hash_map<sal_uInt16, SvNumberFormatterMergeMap> NumFmtMap; + typedef ::boost::unordered_map<sal_uInt16, SvNumberFormatterMergeMap> NumFmtMap; - typedef ::std::hash_set<LinkListener*, LinkListener::Hash> LinkListeners; - typedef ::std::hash_map<sal_uInt16, LinkListeners> LinkListenerMap; + typedef ::boost::unordered_set<LinkListener*, LinkListener::Hash> LinkListeners; + typedef ::boost::unordered_map<sal_uInt16, LinkListeners> LinkListenerMap; public: /** Source document meta-data container. */ |