vfs: check userland buffers before reading them.
[haiku.git] / src / add-ons / print / drivers / gutenprint / GPArray.h
blob91b11ed19957e01aa235dd03a2766d2eb7d4174c
1 /*
2 * Copyright 2010, Haiku. All rights reserved.
3 * Distributed under the terms of the MIT License.
5 * Authors:
6 * Michael Pfeiffer
7 */
8 #ifndef GP_ARRAY_H
9 #define GP_ARRAY_H
11 template<typename TYPE>
12 class GPArray
14 public:
15 typedef TYPE* PointerType;
17 GPArray();
18 virtual ~GPArray();
20 void SetSize(int size);
21 int Size() const;
22 void DecreaseSize();
23 TYPE** Array();
24 TYPE** Array() const;
25 bool IsEmpty() const;
27 private:
28 TYPE** fArray;
29 int fSize;
32 #include "GPArray.cpp"
34 #endif