xref: /haiku/headers/private/support/ObjectListPrivate.h (revision 2b76973fa2401f7a5edf68e6470f3d3210cbcff3)
1 /*
2  * Copyright 2011, Oliver Tappe <zooey@hirschkaefer.de>
3  * Distributed under the terms of the MIT License.
4  */
5 #ifndef _OBJECT_LIST_PRIVATE_H
6 #define _OBJECT_LIST_PRIVATE_H
7 
8 
9 #include <ObjectList.h>
10 
11 
12 template<class T>
13 class BObjectList<T>::Private {
14 public:
15 	Private(BObjectList<T>* objectList)
16 		:
17 		fObjectList(objectList)
18 	{
19 	}
20 
21 	BList*
22 	AsBList()
23 	{
24 		return fObjectList;
25 	}
26 
27 	const BList*
28 	AsBList() const
29 	{
30 		return fObjectList;
31 	}
32 
33 private:
34 	BObjectList<T>* fObjectList;
35 };
36 
37 
38 #endif	// _OBJECT_LIST_PRIVATE_H
39