|
| PdfArray () |
| Create an empty array.
|
|
| PdfArray (const PdfArray &rhs) |
| Deep copy an existing PdfArray. More...
|
|
| PdfArray (PdfArray &&rhs) noexcept |
|
PdfArray & | operator= (const PdfArray &rhs) |
| assignment operator More...
|
|
PdfArray & | operator= (PdfArray &&rhs) noexcept |
|
unsigned | GetSize () const |
|
bool | IsEmpty () const |
|
void | Clear () |
| Remove all elements from the array.
|
|
void | Write (OutputStream &stream, PdfWriteFlags writeMode, const PdfStatefulEncrypt *encrypt, charbuff &buffer) const override |
| Write the complete datatype to a file. More...
|
|
template<typename T > |
T | GetAtAs (unsigned idx) const |
|
template<typename T > |
T | GetAtAsSafe (unsigned idx, const std::common_type_t< T > &defvalue={ }) const |
|
template<typename T > |
bool | TryGetAtAs (unsigned idx, T &value) const |
|
const PdfObject * | FindAt (unsigned idx) const |
| Get the object at the given index out of the array. More...
|
|
PdfObject * | FindAt (unsigned idx) |
|
const PdfObject & | MustFindAt (unsigned idx) const |
|
PdfObject & | MustFindAt (unsigned idx) |
|
template<typename T > |
T | FindAtAs (unsigned idx, const std::common_type_t< T > &defvalue={ }) const |
|
template<typename T > |
T | FindAtAsSafe (unsigned idx, const std::common_type_t< T > &defvalue={ }) const |
|
template<typename T > |
bool | TryFindAtAs (unsigned idx, T &value) const |
|
void | RemoveAt (unsigned idx) |
|
PdfObject & | Add (const PdfObject &obj) |
|
PdfObject & | Add (PdfObject &&obj) |
|
void | AddIndirect (const PdfObject &obj) |
|
PdfObject & | AddIndirectSafe (const PdfObject &obj) |
|
PdfObject & | SetAt (unsigned idx, const PdfObject &obj) |
|
PdfObject & | SetAt (unsigned idx, PdfObject &&obj) |
|
void | SetAtIndirect (unsigned idx, const PdfObject *obj) |
|
PdfObject & | SetAtIndirectSafe (unsigned idx, const PdfObject &obj) |
|
PdfArrayIndirectIterable | GetIndirectIterator () |
|
PdfArrayConstIndirectIterable | GetIndirectIterator () const |
|
void | Resize (unsigned count, const PdfObject &val=PdfObject()) |
| Resize the internal vector. More...
|
|
void | Reserve (unsigned n) |
|
void | SwapAt (unsigned atIndex, unsigned toIndex) |
|
void | MoveTo (unsigned atIndex, unsigned toIndex) |
|
size_t | size () const |
|
PdfObject & | operator[] (size_type idx) |
|
const PdfObject & | operator[] (size_type idx) const |
|
iterator | begin () |
| Returns a read/write iterator that points to the first element in the array. More...
|
|
const_iterator | begin () const |
| Returns a read-only (constant) iterator that points to the first element in the array. More...
|
|
iterator | end () |
| Returns a read/write iterator that points one past the last element in the array. More...
|
|
const_iterator | end () const |
| Returns a read-only (constant) iterator that points one past the last element in the array. More...
|
|
reverse_iterator | rbegin () |
| Returns a read/write reverse iterator that points to the last element in the array. More...
|
|
const_reverse_iterator | rbegin () const |
| Returns a read-only (constant) reverse iterator that points to the last element in the array. More...
|
|
reverse_iterator | rend () |
| Returns a read/write reverse iterator that points to one before the first element in the array. More...
|
|
const_reverse_iterator | rend () const |
| Returns a read-only (constant) reverse iterator that points to one before the first element in the array. More...
|
|
void | resize (size_t size) |
|
void | reserve (size_t size) |
|
iterator | insert (const iterator &pos, const PdfObject &obj) |
|
iterator | insert (const iterator &pos, PdfObject &&obj) |
|
template<typename InputIterator > |
void | insert (const iterator &pos, const InputIterator &first, const InputIterator &last) |
|
void | erase (const iterator &pos) |
|
void | erase (const iterator &first, const iterator &last) |
|
reference | front () |
|
const_reference | front () const |
|
reference | back () |
|
const_reference | back () const |
|
bool | operator== (const PdfArray &rhs) const |
|
bool | operator!= (const PdfArray &rhs) const |
|
const PdfObject * | GetOwner () const |
|
PdfObject * | GetOwner () |
|
std::string | ToString (PdfWriteFlags flags=PdfWriteFlags::None) const |
| Converts the current object into a string representation which can be written directly to a PDF file on disc. More...
|
|
void | ToString (std::string &str, PdfWriteFlags flags=PdfWriteFlags::None) const |
|
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