Make more defined classes visible outside the BPrivate namespace when including

this header.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35078 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stephan Aßmus
2010-01-14 21:49:53 +00:00
parent edb41bfb71
commit 41777edb47
+9 -3
View File
@@ -88,7 +88,8 @@ public:
typedef HashMapElement<Key, Value> Element; typedef HashMapElement<Key, Value> Element;
public: public:
Iterator(const Iterator& other) Iterator(const Iterator& other)
: fMap(other.fMap), :
fMap(other.fMap),
fIndex(other.fIndex), fIndex(other.fIndex),
fElement(other.fElement), fElement(other.fElement),
fLastElement(other.fElement) fLastElement(other.fElement)
@@ -140,7 +141,8 @@ public:
private: private:
Iterator(const HashMap<Key, Value>* map) Iterator(const HashMap<Key, Value>* map)
: fMap(const_cast<HashMap<Key, Value>*>(map)), :
fMap(const_cast<HashMap<Key, Value>*>(map)),
fIndex(0), fIndex(0),
fElement(NULL), fElement(NULL),
fLastElement(NULL) fLastElement(NULL)
@@ -345,7 +347,8 @@ struct HashKey64 {
// constructor // constructor
template<typename Key, typename Value> template<typename Key, typename Value>
HashMap<Key, Value>::HashMap() HashMap<Key, Value>::HashMap()
: fElementArray(1000), :
fElementArray(1000),
fTable(1000, &fElementArray) fTable(1000, &fElementArray)
{ {
} }
@@ -471,5 +474,8 @@ HashMap<Key, Value>::_FindElement(const Key& key) const
} // namespace BPrivate } // namespace BPrivate
using BPrivate::HashMap; using BPrivate::HashMap;
using BPrivate::HashKey32;
using BPrivate::HashKey64;
using BPrivate::SynchronizedHashMap;
#endif // HASH_MAP_H #endif // HASH_MAP_H