Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
CPDF_IndirectObjectHolder Class Reference

#include <cpdf_indirect_object_holder.h>

+ Inheritance diagram for CPDF_IndirectObjectHolder:
+ Collaboration diagram for CPDF_IndirectObjectHolder:

Public Types

using const_iterator
 

Public Member Functions

 CPDF_IndirectObjectHolder ()
 
virtual ~CPDF_IndirectObjectHolder ()
 
RetainPtr< CPDF_ObjectGetOrParseIndirectObject (uint32_t objnum)
 
RetainPtr< const CPDF_ObjectGetIndirectObject (uint32_t objnum) const
 
RetainPtr< CPDF_ObjectGetMutableIndirectObject (uint32_t objnum)
 
void DeleteIndirectObject (uint32_t objnum)
 
template<typename T , typename... Args>
RetainPtr< T > NewIndirect (Args &&... args)
 
template<typename T , typename... Args>
std::enable_if< CanInternStrings< T >::value, RetainPtr< T > >::type New (Args &&... args)
 
template<typename T , typename... Args>
std::enable_if<!CanInternStrings< T >::value, RetainPtr< T > >::type New (Args &&... args)
 
uint32_t AddIndirectObject (RetainPtr< CPDF_Object > pObj)
 
bool ReplaceIndirectObjectIfHigherGeneration (uint32_t objnum, RetainPtr< CPDF_Object > pObj)
 
uint32_t GetLastObjNum () const
 
void SetLastObjNum (uint32_t objnum)
 
WeakPtr< ByteStringPoolGetByteStringPool () const
 
const_iterator begin () const
 
const_iterator end () const
 

Protected Member Functions

virtual RetainPtr< CPDF_ObjectParseIndirectObject (uint32_t objnum)
 

Friends

class CPDF_Reference
 

Detailed Description

Definition at line 21 of file cpdf_indirect_object_holder.h.

Member Typedef Documentation

◆ const_iterator

Initial value:
std::map<uint32_t, RetainPtr<CPDF_Object>>::const_iterator
std::map< uint32_t, RetainPtr< CPDF_Object > >::const_iterator const_iterator

Definition at line 23 of file cpdf_indirect_object_holder.h.

Constructor & Destructor Documentation

◆ CPDF_IndirectObjectHolder()

CPDF_IndirectObjectHolder::CPDF_IndirectObjectHolder ( )

Definition at line 25 of file cpdf_indirect_object_holder.cpp.

References CPDF_IndirectObjectHolder().

Referenced by CPDF_IndirectObjectHolder().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ~CPDF_IndirectObjectHolder()

CPDF_IndirectObjectHolder::~CPDF_IndirectObjectHolder ( )
virtual

Definition at line 28 of file cpdf_indirect_object_holder.cpp.

Member Function Documentation

◆ AddIndirectObject()

uint32_t CPDF_IndirectObjectHolder::AddIndirectObject ( RetainPtr< CPDF_Object > pObj)

Definition at line 87 of file cpdf_indirect_object_holder.cpp.

Referenced by CPDF_Dictionary::ConvertToIndirectObjectFor(), FPDFPage_Flatten(), NewIndirect(), TEST(), TEST_F(), and TEST_F().

+ Here is the caller graph for this function:

◆ begin()

const_iterator CPDF_IndirectObjectHolder::begin ( ) const
inline

Definition at line 72 of file cpdf_indirect_object_holder.h.

◆ DeleteIndirectObject()

void CPDF_IndirectObjectHolder::DeleteIndirectObject ( uint32_t objnum)

Definition at line 113 of file cpdf_indirect_object_holder.cpp.

Referenced by CPDF_Document::CreateNewPage(), and TEST().

+ Here is the caller graph for this function:

◆ end()

const_iterator CPDF_IndirectObjectHolder::end ( ) const
inline

Definition at line 73 of file cpdf_indirect_object_holder.h.

◆ GetByteStringPool()

WeakPtr< ByteStringPool > CPDF_IndirectObjectHolder::GetByteStringPool ( ) const
inline

Definition at line 68 of file cpdf_indirect_object_holder.h.

◆ GetIndirectObject()

RetainPtr< const CPDF_Object > CPDF_IndirectObjectHolder::GetIndirectObject ( uint32_t objnum) const

Definition at line 32 of file cpdf_indirect_object_holder.cpp.

Referenced by TEST().

+ Here is the caller graph for this function:

◆ GetLastObjNum()

uint32_t CPDF_IndirectObjectHolder::GetLastObjNum ( ) const
inline

Definition at line 65 of file cpdf_indirect_object_holder.h.

◆ GetMutableIndirectObject()

RetainPtr< CPDF_Object > CPDF_IndirectObjectHolder::GetMutableIndirectObject ( uint32_t objnum)

Definition at line 37 of file cpdf_indirect_object_holder.cpp.

◆ GetOrParseIndirectObject()

RetainPtr< CPDF_Object > CPDF_IndirectObjectHolder::GetOrParseIndirectObject ( uint32_t objnum)

Definition at line 52 of file cpdf_indirect_object_holder.cpp.

Referenced by CPDF_Document::LoadPages(), TEST(), TEST(), and TEST().

+ Here is the caller graph for this function:

◆ New() [1/2]

template<typename T , typename... Args>
std::enable_if< CanInternStrings< T >::value, RetainPtr< T > >::type CPDF_IndirectObjectHolder::New ( Args &&... args)
inline

Definition at line 47 of file cpdf_indirect_object_holder.h.

◆ New() [2/2]

template<typename T , typename... Args>
std::enable_if<!CanInternStrings< T >::value, RetainPtr< T > >::type CPDF_IndirectObjectHolder::New ( Args &&... args)
inline

Definition at line 53 of file cpdf_indirect_object_holder.h.

◆ NewIndirect()

template<typename T , typename... Args>
RetainPtr< T > CPDF_IndirectObjectHolder::NewIndirect ( Args &&... args)
inline

Definition at line 37 of file cpdf_indirect_object_holder.h.

References AddIndirectObject().

+ Here is the call graph for this function:

◆ ParseIndirectObject()

RetainPtr< CPDF_Object > CPDF_IndirectObjectHolder::ParseIndirectObject ( uint32_t objnum)
protectedvirtual

Reimplemented in CPDF_Document.

Definition at line 82 of file cpdf_indirect_object_holder.cpp.

◆ ReplaceIndirectObjectIfHigherGeneration()

bool CPDF_IndirectObjectHolder::ReplaceIndirectObjectIfHigherGeneration ( uint32_t objnum,
RetainPtr< CPDF_Object > pObj )

Definition at line 95 of file cpdf_indirect_object_holder.cpp.

References CPDF_Object::GetGenNum(), and CPDF_Object::kInvalidObjNum.

Referenced by TEST().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SetLastObjNum()

void CPDF_IndirectObjectHolder::SetLastObjNum ( uint32_t objnum)
inline

Definition at line 66 of file cpdf_indirect_object_holder.h.

Friends And Related Symbol Documentation

◆ CPDF_Reference

friend class CPDF_Reference
friend

Definition at line 79 of file cpdf_indirect_object_holder.h.


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