repo.or.cz
/
haiku.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
vfs: check userland buffers before reading them.
[haiku.git]
/
src
/
add-ons
/
print
/
drivers
/
gutenprint
/
GPArray.h
blob
91b11ed19957e01aa235dd03a2766d2eb7d4174c
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