#include <PdfArray.h>
This class represents a PdfArray Use it for all arrays that are written to a PDF file.
A PdfArray can hold any PdfVariant.
- See also
- PdfVariant
PdfArray::PdfArray |
( |
const PdfArray & |
rhs | ) |
|
Deep copy an existing PdfArray
- Parameters
-
- Returns
- a read/write reference to the data at the last element of the array.
- Returns
- a read-only (constant) reference to the data at the last element of the array.
PdfArray::iterator PdfArray::begin |
( |
| ) |
|
Returns a read/write iterator that points to the first element in the array. Iteration is done in ordinary element order.
PdfArray::const_iterator PdfArray::begin |
( |
| ) |
const |
Returns a read-only (constant) iterator that points to the first element in the array. Iteration is done in ordinary element order.
Remove all elements from the array
PdfArray::iterator PdfArray::end |
( |
| ) |
|
Returns a read/write iterator that points one past the last element in the array. Iteration is done in ordinary element order.
PdfArray::const_iterator PdfArray::end |
( |
| ) |
const |
Returns a read-only (constant) iterator that points one past the last element in the array. Iteration is done in ordinary element order.
const PdfObject * PdfArray::FindAt |
( |
unsigned |
idx | ) |
const |
Get the object at the given index out of the array.
Lookup in the indirect objects as well, if the shallow object was a reference. The returned value is a pointer to the internal object in the dictionary so it MUST not be deleted.
- Parameters
-
- Returns
- pointer to the found value. nullptr if the index was out of the boundaries
- Returns
- a read/write reference to the data at the first element of the array.
- Returns
- a read-only (constant) reference to the data at the first element of the array.
unsigned PdfArray::GetSize |
( |
| ) |
const |
- Returns
- the size of the array
bool PdfArray::IsEmpty |
( |
| ) |
const |
assignment operator
- Parameters
-
PdfArray::reverse_iterator PdfArray::rbegin |
( |
| ) |
|
Returns a read/write reverse iterator that points to the last element in the array. Iteration is done in reverse element order.
PdfArray::const_reverse_iterator PdfArray::rbegin |
( |
| ) |
const |
Returns a read-only (constant) reverse iterator that points to the last element in the array. Iteration is done in reverse element order.
PdfArray::reverse_iterator PdfArray::rend |
( |
| ) |
|
Returns a read/write reverse iterator that points to one before the first element in the array. Iteration is done in reverse element order.
PdfArray::const_reverse_iterator PdfArray::rend |
( |
| ) |
const |
Returns a read-only (constant) reverse iterator that points to one before the first element in the array. Iteration is done in reverse element order.
Resize the internal vector.
- Parameters
-
count | new size |
value | refernce value |
size_t PdfArray::size |
( |
| ) |
const |
- Returns
- the size of the array
Write the complete datatype to a file.
- Parameters
-
device | write the object to this device |
writeMode | additional options for writing this object |
encrypt | an encryption object which is used to encrypt this object or nullptr to not encrypt this object |
Implements PoDoFo::PdfDataProvider.