|
|
| PdfArray () |
| | Create an empty array.
|
| | PdfArray (const PdfArray &rhs) |
| | Deep copy an existing PdfArray.
|
|
| PdfArray (PdfArray &&rhs) noexcept |
| PdfArray & | operator= (const PdfArray &rhs) |
| | assignment operator
|
|
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.
|
|
template<typename T> |
| const ObjectAdapter< T >::TRet | GetAtAs (unsigned idx) const |
|
template<typename T> |
| ObjectAdapter< T >::TRet | GetAtAs (unsigned idx) |
|
template<typename T> |
| const ObjectAdapter< T >::TRet | GetAtAsSafe (unsigned idx, const std::common_type_t< T > &fallback={ }) const |
|
template<typename T> |
| ObjectAdapter< T >::TRet | GetAtAsSafe (unsigned idx, const std::common_type_t< T > &fallback={ }) |
|
template<typename T> |
| bool | TryGetAtAs (unsigned idx, T &value) const |
|
template<typename T> |
| bool | TryGetAtAs (unsigned idx, T &value) |
| const PdfObject * | FindAt (unsigned idx) const |
| | Get the object at the given index out of the array.
|
|
PdfObject * | FindAt (unsigned idx) |
|
const PdfObject & | MustFindAt (unsigned idx) const |
|
PdfObject & | MustFindAt (unsigned idx) |
|
template<typename T> |
| const ObjectAdapter< T >::TRet | FindAtAs (unsigned idx) const |
|
template<typename T> |
| ObjectAdapter< T >::TRet | FindAtAs (unsigned idx) |
|
template<typename T> |
| const ObjectAdapter< T >::TRet | FindAtAsSafe (unsigned idx, const std::common_type_t< T > &fallback={ }) const |
|
template<typename T> |
| ObjectAdapter< T >::TRet | FindAtAsSafe (unsigned idx, const std::common_type_t< T > &fallback={ }) |
|
template<typename T> |
| bool | TryFindAtAs (unsigned idx, T &value) const |
|
template<typename T> |
| bool | TryFindAtAs (unsigned idx, T &value) |
|
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.
|
|
void | Reserve (unsigned n) |
| void | SwapAt (unsigned atIndex, unsigned toIndex) |
| | Swap two elements in the array.
|
| void | MoveTo (unsigned atIndex, unsigned toIndex) |
| | Move an element to a new position.
|
| 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.
|
| const_iterator | begin () const |
| | Returns a read-only (constant) iterator that points to the first element in the array.
|
| iterator | end () |
| | Returns a read/write iterator that points one past the last element in the array.
|
| const_iterator | end () const |
| | Returns a read-only (constant) iterator that points one past the last element in the array.
|
| reverse_iterator | rbegin () |
| | Returns a read/write reverse iterator that points to the last element in the array.
|
| const_reverse_iterator | rbegin () const |
| | Returns a read-only (constant) reverse iterator that points to the last element in the array.
|
| reverse_iterator | rend () |
| | Returns a read/write reverse iterator that points to one before the first element in the array.
|
| const_reverse_iterator | rend () const |
| | Returns a read-only (constant) reverse iterator that points to one before the first element in the array.
|
|
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 () |
| PdfDocument * | GetDocument () const |
| 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.
|
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