Leptonica  1.77.0
Image processing and image analysis suite
ptra.h
Go to the documentation of this file.
1 /*====================================================================*
2  - Copyright (C) 2001 Leptonica. All rights reserved.
3  -
4  - Redistribution and use in source and binary forms, with or without
5  - modification, are permitted provided that the following conditions
6  - are met:
7  - 1. Redistributions of source code must retain the above copyright
8  - notice, this list of conditions and the following disclaimer.
9  - 2. Redistributions in binary form must reproduce the above
10  - copyright notice, this list of conditions and the following
11  - disclaimer in the documentation and/or other materials
12  - provided with the distribution.
13  -
14  - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
15  - ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
16  - LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
17  - A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL ANY
18  - CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
19  - EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
20  - PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
21  - PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
22  - OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
23  - NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
24  - SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25  *====================================================================*/
26 
27 #ifndef LEPTONICA_PTRA_H
28 #define LEPTONICA_PTRA_H
29 
46 /*------------------------------------------------------------------------*
47  * Generic Ptr Array Structs *
48  *------------------------------------------------------------------------*/
49 
51 struct L_Ptra
52 {
53  l_int32 nalloc;
54  l_int32 imax;
55  l_int32 nactual;
56  void **array;
57 };
58 typedef struct L_Ptra L_PTRA;
59 
60 
62 struct L_Ptraa
63 {
64  l_int32 nalloc;
65  struct L_Ptra **ptra;
66 };
67 typedef struct L_Ptraa L_PTRAA;
68 
69 
70 
71 /*------------------------------------------------------------------------*
72  * Array flags *
73  *------------------------------------------------------------------------*/
74 
76 enum {
79 };
80 
82 enum {
86 };
87 
89 enum {
91  L_REMOVE = 1
92 };
93 
94 
95 #endif /* LEPTONICA_PTRA_H */
Definition: ptra.h:91
l_int32 nalloc
Definition: ptra.h:64
l_int32 nactual
Definition: ptra.h:55
Definition: ptra.h:51
l_int32 imax
Definition: ptra.h:54
l_int32 nalloc
Definition: ptra.h:53
Definition: ptra.h:62
struct L_Ptra ** ptra
Definition: ptra.h:65
void ** array
Definition: ptra.h:56