Make BObjectList<> publically available:
* cleaned up ObjectList.h * switched several uses of new() to new(std::nothrow) * moved ugly AsBList() hack into BObjectList<>::Private class and adjusted all callers accordingly git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40252 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,38 @@
|
||||
/*
|
||||
* Copyright 2011, Oliver Tappe <[email protected]>
|
||||
* Distributed under the terms of the MIT License.
|
||||
*/
|
||||
#ifndef _OBJECT_LIST_PRIVATE_H
|
||||
#define _OBJECT_LIST_PRIVATE_H
|
||||
|
||||
|
||||
#include <ObjectList.h>
|
||||
|
||||
|
||||
template<class T>
|
||||
class BObjectList<T>::Private {
|
||||
public:
|
||||
Private(BObjectList<T>* objectList)
|
||||
:
|
||||
fObjectList(objectList)
|
||||
{
|
||||
}
|
||||
|
||||
BList*
|
||||
AsBList()
|
||||
{
|
||||
return fObjectList;
|
||||
}
|
||||
|
||||
const BList*
|
||||
AsBList() const
|
||||
{
|
||||
return fObjectList;
|
||||
}
|
||||
|
||||
private:
|
||||
BObjectList<T>* fObjectList;
|
||||
};
|
||||
|
||||
|
||||
#endif // _OBJECT_LIST_PRIVATE_H
|
||||
Reference in New Issue
Block a user