Ipelib
Public Member Functions | List of all members
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

◆ ~PdfArray()

PdfArray::~PdfArray ( )

Member Function Documentation

◆ array()

const PdfArray * PdfArray::array ( ) const
virtualnoexcept

Return this object as PDF array object.

Reimplemented from ipe::PdfObj.

◆ write()

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

Implements ipe::PdfObj.

◆ 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

Referenced by ipe::PdfDict::deflated().

◆ 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 ipe::PdfObj::ref(), and ipe::PdfRef::value().

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


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