]>
git.ipfire.org Git - thirdparty/cups.git/blob - pdftops/Array.h
1 //========================================================================
5 // Copyright 1996-2003 Glyph & Cog, LLC
7 //========================================================================
14 #ifdef USE_GCC_PRAGMAS
22 //------------------------------------------------------------------------
24 //------------------------------------------------------------------------
35 // Reference counting.
36 int incRef() { return ++ref
; }
37 int decRef() { return --ref
; }
39 // Get number of elements.
40 int getLength() { return length
; }
43 void add(Object
*elem
);
46 Object
*get(int i
, Object
*obj
);
47 Object
*getNF(int i
, Object
*obj
);
51 XRef
*xref
; // the xref table for this PDF file
52 Object
*elems
; // array of elements
53 int size
; // size of <elems> array
54 int length
; // number of elements in array
55 int ref
; // reference count