wxMaxima
Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes
wxPdfArray Class Reference

Class representing an array object. (For internal use only) More...

#include <pdfobjects.h>

Inheritance diagram for wxPdfArray:
[legend]
Collaboration diagram for wxPdfArray:
[legend]

Public Member Functions

 wxPdfArray ()
 Constructor.
 
virtual ~wxPdfArray ()
 Destructor.
 
void Add (wxPdfObject *obj)
 Append an object to the array.
 
void Add (int value)
 Append an integer value to the array.
 
void Add (double value)
 Append a floating point value to the array.
 
wxPdfObject * Get (size_t index)
 Get the array element with the given index.
 
size_t GetSize ()
 Get the size of the array.
 
int GetType ()
 Get the type of the object.
 
void SetObjNum (int objNum, int objGen=0)
 Set object and generation number.
 
int GetNumber ()
 Get object number.
 
int GetGeneration ()
 Get generation number.
 
void SetActualId (int actualId)
 Set actual object id.
 
int GetActualId ()
 
void SetCreatedIndirect (bool indirect)
 Flag this object as created through an indirect reference.
 
bool IsCreatedIndirect ()
 Check whether this object was created through an indirect reference.
 
bool CanBeInObjStm ()
 Check whether this object can be in an object stream.
 
bool IsNull ()
 Checks whether this is a wxPdfNull object.
 
bool IsBoolean ()
 Checks whether this is a wxPdfBoolean object.
 
bool IsNumber ()
 Checks whether this is a wxPdfNumber object.
 
bool IsString ()
 Checks whether this is a wxPdfString object.
 
bool IsName ()
 Checks whether this is a wxPdfName object.
 
bool IsArray ()
 Checks whether this is a wxPdfArray object.
 
bool IsDictionary ()
 Checks whether this is a wxPdfDictionary object.
 
bool IsStream ()
 Checks whether this PdfObject is of the type PdfStream.
 
bool IsIndirect ()
 Checks if this is an indirect object.
 

Protected Attributes

int m_type
 Object type.
 
int m_objNum
 Object number.
 
int m_objGen
 Object generation.
 
int m_actualId
 Actual object id.
 
bool m_indirect
 Flag whether created through indirect reference.
 

Detailed Description

Class representing an array object. (For internal use only)

Member Function Documentation

◆ Add() [1/3]

void wxPdfArray::Add ( double  value)

Append a floating point value to the array.

Parameters
valueThe floating point value to append

◆ Add() [2/3]

void wxPdfArray::Add ( int  value)

Append an integer value to the array.

Parameters
valueThe integer value to append

◆ Add() [3/3]

void wxPdfArray::Add ( wxPdfObject *  obj)

Append an object to the array.

Parameters
objThe object to append

◆ CanBeInObjStm()

bool wxPdfObject::CanBeInObjStm ( )
inherited

Check whether this object can be in an object stream.

Returns
true if the object can be in an object stream, false otherwise

◆ Get()

wxPdfObject * wxPdfArray::Get ( size_t  index)

Get the array element with the given index.

Parameters
indexThe element index
Returns
The object at the given index, or NULL if the index is out of range

◆ GetActualId()

int wxPdfObject::GetActualId ( )
inlineinherited
Returns
The actual object ID

◆ GetGeneration()

int wxPdfObject::GetGeneration ( )
inlineinherited

Get generation number.

Returns
The generation number

◆ GetNumber()

int wxPdfObject::GetNumber ( )
inlineinherited

Get object number.

Returns
The object number

◆ GetSize()

size_t wxPdfArray::GetSize ( )
inline

Get the size of the array.

Returns
The number of elements in the array

◆ GetType()

int wxPdfObject::GetType ( )
inlineinherited

Get the type of the object.

Returns
The object type

◆ IsArray()

bool wxPdfObject::IsArray ( )
inlineinherited

Checks whether this is a wxPdfArray object.

Returns
true if this is an array object, false otherwise

◆ IsBoolean()

bool wxPdfObject::IsBoolean ( )
inlineinherited

Checks whether this is a wxPdfBoolean object.

Returns
true if this is a boolean object, false otherwise

◆ IsCreatedIndirect()

bool wxPdfObject::IsCreatedIndirect ( )
inlineinherited

Check whether this object was created through an indirect reference.

Returns
true if the object was created through an indirect reference, false otherwise

◆ IsDictionary()

bool wxPdfObject::IsDictionary ( )
inlineinherited

Checks whether this is a wxPdfDictionary object.

Returns
true if this is a dictionary object, false otherwise

◆ IsIndirect()

bool wxPdfObject::IsIndirect ( )
inlineinherited

Checks if this is an indirect object.

Returns
true if this is an indirect object, false otherwise

◆ IsName()

bool wxPdfObject::IsName ( )
inlineinherited

Checks whether this is a wxPdfName object.

Returns
true if this is a name object, false otherwise

◆ IsNull()

bool wxPdfObject::IsNull ( )
inlineinherited

Checks whether this is a wxPdfNull object.

Returns
true if this is a null object, false otherwise

◆ IsNumber()

bool wxPdfObject::IsNumber ( )
inlineinherited

Checks whether this is a wxPdfNumber object.

Returns
true if this is a number object, false otherwise

◆ IsStream()

bool wxPdfObject::IsStream ( )
inlineinherited

Checks whether this PdfObject is of the type PdfStream.

Returns
true if this is a stream object, false otherwise

◆ IsString()

bool wxPdfObject::IsString ( )
inlineinherited

Checks whether this is a wxPdfString object.

Returns
true if this is a string object, false otherwise

◆ SetActualId()

void wxPdfObject::SetActualId ( int  actualId)
inlineinherited

Set actual object id.

Parameters
actualIdThe actual object ID

◆ SetCreatedIndirect()

void wxPdfObject::SetCreatedIndirect ( bool  indirect)
inlineinherited

Flag this object as created through an indirect reference.

Parameters
indirectFlag whether the object is an indirect reference

◆ SetObjNum()

void wxPdfObject::SetObjNum ( int  objNum,
int  objGen = 0 
)
inherited

Set object and generation number.

Parameters
objNumThe object number
objGenThe generation number

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