PoDoFo 0.9.20
|
#include <PdfReference.h>
Public Member Functions | |
PdfReference () | |
PdfReference (const uint32_t objectNo, const uint16_t generationNo) | |
PdfReference (const PdfReference &rhs)=default | |
std::string | ToString () const |
PdfReference & | operator= (const PdfReference &rhs)=default |
bool | operator== (const PdfReference &rhs) const |
bool | operator!= (const PdfReference &rhs) const |
bool | operator< (const PdfReference &rhs) const |
bool | IsIndirect () const |
void | SetObjectNumber (uint32_t o) |
uint32_t | ObjectNumber () const |
void | SetGenerationNumber (const uint16_t g) |
uint16_t | GenerationNumber () const |
A reference is a pointer to a object in the PDF file of the form "4 0 R", where 4 is the object number and 0 is the generation number. Every object in the PDF file can be identified this way.
This class is a indirect reference in a PDF file.
PdfReference::PdfReference | ( | ) |
Create a PdfReference with object number and generation number initialized to 0.
PdfReference::PdfReference | ( | const uint32_t | objectNo, |
const uint16_t | generationNo ) |
Create a PdfReference to an object with a given object and generation number.
nObjectNo | the object number |
nGenerationNo | the generation number |
|
default |
Create a copy of an existing PdfReference.
rhs | the object to copy |
|
inline |
Get the generation number.
bool PdfReference::IsIndirect | ( | ) | const |
Allows to check if a reference points to an indirect object.
A reference is indirect if object number and generation number are both not equal 0.
|
inline |
Get the object number.
bool PdfReference::operator!= | ( | const PdfReference & | rhs | ) | const |
Compare to PdfReference objects.
bool PdfReference::operator< | ( | const PdfReference & | rhs | ) | const |
Compare to PdfReference objects.
|
default |
Assign the value of another object to this PdfReference.
rhs | the object to copy |
bool PdfReference::operator== | ( | const PdfReference & | rhs | ) | const |
Compare to PdfReference objects.
|
inline |
Set the generation number of this object
g | the new generation number |
|
inline |
Set the object number of this object
o | the new object number |
string PdfReference::ToString | ( | ) | const |
Convert the reference to a string.