|
virtual uint32 | getSize () const =0 |
| Get the current size of the array.
|
|
virtual IPDFObjectPtr | get (uint32 index) const =0 |
| Get the object stored at the given index. An exception will be thrown if the index is out of range.
|
|
virtual ePDFObjectType | getTypeAtIndex (uint32 index) const =0 |
| Get the type of the object stored at the given index. An exception will be thrown if the index is out of range.
|
|
virtual void | put (uint32 index, const IPDFObjectPtr &value)=0 |
| Store the given object in the array at the given index, replacing the currently stored object. If the index is outside the array, it will be resized to suit. An exception will be thrown if the index is out of range.
|
|
virtual void | insert (uint32 index, const IPDFObjectPtr &value)=0 |
| Insert the given object in the array at the given index, moving the following objects forward to make room. An exception will be thrown if the index is out of range.
|
|
virtual void | remove (uint32 index)=0 |
| Remove the object at the given index from the array, decreasing the size of the array by 1. An exception will be thrown if the index is out of range.
|
|
virtual void | append (const IPDFObjectPtr &value)=0 |
| Convenience member to append an object to the end of the array.
|
|
virtual void | copy (uint32 destIndex, const IPDFArrayPtr &sourceArray, uint32 sourceIndex)=0 |
| Copy (but not clone) an entry from another array into an existing posision in this array, replacing any currently stored object. Usually more efficient for bulk operations.
|
|
virtual bool | getNumbers (CDoubleVect &numbers)=0 |
| If the array consists entirely of numbers, retrieve those numbers.
|
|
virtual bool | getBox (FBox &box)=0 |
| If the array consists of four numbers, retrieve those numbers as a box (left, bottom, right, top)
|
|
virtual int32 | getInteger (uint32 index) const =0 |
| Convenience member to obtain an integer from the array at the given index. An exception will be thrown if the index is out of range or the object is not an integer.
|
|
virtual bool | containsCompositeObject (const IPDFObjectPtr &object) const =0 |
| Recursively check to see if the array contains the given composite object (That is, a dictionary, stream, or array).
|
|
virtual ePDFObjectType | getType () const =0 |
| Get the type of this PDF object.
|
|
virtual IPDFObjectPtr | clone () const =0 |
| Create a clone of this PDF object if appropriate. Note that simple immutable objects are not actually cloned and instead the same object is returned.
|
|
virtual IPDFObjectPtr | deepClone () const =0 |
| Create a deep clone of this PDF object if appropriate. Note that simple immutable objects are not actually cloned and instead the same object is returned. If the object is composite (an IPDFArray, IPDFDictionary or IPDFStream) then the object will be cloned as well as the consituent objects in a recursive fashion.
|
|
virtual bool | getIsExecutable () const =0 |
| Get whether or not the object is considered executable, such as an executable name, array, or operator.
|
|
virtual bool | containsReferences () const =0 |
| Get whether or not the object contains indirect references to other objects (that is, does the object or any constituent object contain IPDFReference or IPDFFarReference objects).
|
|
virtual void | emitPostScriptCode (const IOutputStreamPtr &dest) const =0 |
| Convert the object to PostScript code and write to the given stream. Only allowed for objects that are representable in PostScript.
|
|
virtual bool | getNumber (double &number) const =0 |
| If the object is a number (a real or integer) obtain that number.
|
|
virtual bool | getNumber (float &number) const =0 |
| If the object is a number (a real or integer) within the range of a 32-bit float, obtain that number. If the object is an integer, thiw will fail if the integer cannot be represented exactly in a single precision float.
|
|
virtual bool | getNumber (int32 &number) const =0 |
| If the object is an integer (a integral real or integer) within the range of a 32-bit integer, obtain that number.
|
|
virtual bool | getString (RawString &string) const =0 |
| If the object is a string or a name, retrieve the raw string data.
|
|
virtual void | addRef () const =0 |
| Increases the reference count of the actual object pointed to. This would take place during an assignment or copying.
|
|
virtual bool | decRef () const =0 |
| Decreases the reference count of the actual object pointed to. When the reference count falls to Zero, it deletes the actual object pointed to.
|
|
virtual int32 | getRefCount () const =0 |
| Retrieve the current reference count of the actual object pointed to.
|
|
virtual uint64 | hash () const |
| Obtain a 64-bit hash of the receiving object.
|
|
virtual void | updateHash (uint64 &hash) const =0 |
| Update the given hash to include the receiver.
|
|
|
static JAWSMAKO_API IPDFArrayPtr | create (uint32 size=0, bool executable=false) |
| Create a new PDF array of the given initial size.
|
|
static JAWSMAKO_API IPDFArrayPtr | create (const CPDFObjectVect &objects, bool executable=false) |
| Create a new PDF array from a vector of IPDFObjects.
|
|
static JAWSMAKO_API IPDFArrayPtr | createFromNumbers (const CDoubleVect &numbers) |
| Create from a vector of numbers.
|
|
static JAWSMAKO_API IPDFArrayPtr | createFromNumbersArray (const double *numbers, uint32 numNumbers) |
| Create from an array of numbers.
|
|
static JAWSMAKO_API IPDFArrayPtr | createFromFBox (const FBox &box) |
| Create from an FBox.
|
|
static JAWSMAKO_API IPDFObjectPtr | createNumber (double number) |
| If the given number is an integer, create an IPDFInteger, otherwise create an IPDFReal.
|
|
A simple class representing a mutable array of other PDF objects.