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
+16 -10
View File
@@ -88,10 +88,11 @@ public:
typedef HashMapElement<Key, Value> Element; typedef HashMapElement<Key, Value> Element;
public: public:
Iterator(const Iterator& other) Iterator(const Iterator& other)
: fMap(other.fMap), :
fIndex(other.fIndex), fMap(other.fMap),
fElement(other.fElement), fIndex(other.fIndex),
fLastElement(other.fElement) fElement(other.fElement),
fLastElement(other.fElement)
{ {
} }
@@ -140,10 +141,11 @@ public:
private: private:
Iterator(const HashMap<Key, Value>* map) Iterator(const HashMap<Key, Value>* map)
: fMap(const_cast<HashMap<Key, Value>*>(map)), :
fIndex(0), fMap(const_cast<HashMap<Key, Value>*>(map)),
fElement(NULL), fIndex(0),
fLastElement(NULL) fElement(NULL),
fLastElement(NULL)
{ {
// find first // find first
_FindNext(); _FindNext();
@@ -345,8 +347,9 @@ struct HashKey64 {
// constructor // constructor
template<typename Key, typename Value> template<typename Key, typename Value>
HashMap<Key, Value>::HashMap() HashMap<Key, Value>::HashMap()
: fElementArray(1000), :
fTable(1000, &fElementArray) fElementArray(1000),
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