xref: /haiku/src/add-ons/print/drivers/gutenprint/GPArray.h (revision 579f1dbca962a2a03df54f69fdc6e9423f91f20e)
1 /*
2 * Copyright 2010, Haiku. All rights reserved.
3 * Distributed under the terms of the MIT License.
4 *
5 * Authors:
6 *		Michael Pfeiffer
7 */
8 #ifndef GP_ARRAY_H
9 #define GP_ARRAY_H
10 
11 template<typename TYPE>
12 class GPArray
13 {
14 public:
15 	typedef TYPE* PointerType;
16 
17 					GPArray();
18 	virtual			~GPArray();
19 
20 	void			SetSize(int size);
21 	int				Size() const;
22 	void			DecreaseSize();
23 	TYPE**			Array();
24 	TYPE**			Array() const;
25 	bool			IsEmpty() const;
26 
27 private:
28 	TYPE**	fArray;
29 	int		fSize;
30 };
31 
32 #include "GPArray.cpp"
33 
34 #endif
35