Ipelib
ipe::PdfArray Class Reference

#include <ipepdfparser.h>

Inherits ipe::PdfObj.

Public Member Functions

 PdfArray ()
 
 ~PdfArray ()
 
virtual const PdfArrayarray () const noexcept
 
virtual void write (Stream &stream, const PdfRenumber *renumber, bool inflate) const noexcept
 
void append (const PdfObj *)
 
int count () const noexcept
 
const PdfObjobj (int index, const PdfFile *file) const noexcept
 
- Public Member Functions inherited from ipe::PdfObj
virtual ~PdfObj ()=0
 
virtual const PdfNullnull () const noexcept
 
virtual const PdfBoolboolean () const noexcept
 
virtual const PdfNumbernumber () const noexcept
 
virtual const PdfStringstring () const noexcept
 
virtual const PdfNamename () const noexcept
 
virtual const PdfRefref () const noexcept
 
virtual const PdfDictdict () const noexcept
 
String repr () const noexcept
 

Detailed Description

The PDF array object.

Constructor & Destructor Documentation

◆ PdfArray()

ipe::PdfArray::PdfArray ( )
inlineexplicit

Referenced by array().

◆ ~PdfArray()

PdfArray::~PdfArray ( )

Member Function Documentation

◆ array()

const PdfArray * PdfArray::array ( ) const
virtualnoexcept

Return this object as PDF array object.

Reimplemented from ipe::PdfObj.

References PdfArray().

◆ write()

void PdfArray::write ( Stream & stream,
const PdfRenumber * renumber,
bool inflate ) const
virtualnoexcept

Implements ipe::PdfObj.

References count(), and obj().

◆ append()

void PdfArray::append ( const PdfObj * obj)

Append an object to array.

Array takes ownership of the object.

References obj().

◆ count()

int ipe::PdfArray::count ( ) const
inlinenoexcept

References count().

Referenced by count(), ipe::PdfDict::deflated(), and write().

◆ obj()

const PdfObj * PdfArray::obj ( int index,
const PdfFile * file ) const
noexcept

Return object with index in array.

Indirect objects (references) are looked up if file is not nullptr, and the object referred to is returned (nullptr if it does not exist). Object remains owned by array.

References obj().

Referenced by append(), ipe::PdfDict::deflated(), ipe::Face::Face(), ipe::PdfDict::getNumberArray(), obj(), ipe::Latex::readPdf(), and write().


The documentation for this class was generated from the following files: