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_CrossRefTable Class Reference

#include <cpdf_cross_ref_table.h>

+ Collaboration diagram for CPDF_CrossRefTable:

Classes

struct  ObjectInfo
 

Public Types

enum class  ObjectType : uint8_t { kFree = 0 , kNormal = 1 , kCompressed = 2 , kNull = 3 }
 

Public Member Functions

 CPDF_CrossRefTable ()
 
 CPDF_CrossRefTable (RetainPtr< CPDF_Dictionary > trailer, uint32_t trailer_object_number)
 
 ~CPDF_CrossRefTable ()
 
void AddCompressed (uint32_t obj_num, uint32_t archive_obj_num, uint32_t archive_obj_index)
 
void AddNormal (uint32_t obj_num, uint16_t gen_num, bool is_object_stream, FX_FILESIZE pos)
 
void SetFree (uint32_t obj_num)
 
void SetTrailer (RetainPtr< CPDF_Dictionary > trailer, uint32_t trailer_object_number)
 
uint32_t trailer_object_number () const
 
const CPDF_Dictionarytrailer () const
 
CPDF_DictionaryGetMutableTrailerForTesting ()
 
const ObjectInfoGetObjectInfo (uint32_t obj_num) const
 
const std::map< uint32_t, ObjectInfo > & objects_info () const
 
void Update (std::unique_ptr< CPDF_CrossRefTable > new_cross_ref)
 
void SetObjectMapSize (uint32_t size)
 

Static Public Member Functions

static std::unique_ptr< CPDF_CrossRefTableMergeUp (std::unique_ptr< CPDF_CrossRefTable > current, std::unique_ptr< CPDF_CrossRefTable > top)
 

Detailed Description

Definition at line 18 of file cpdf_cross_ref_table.h.

Member Enumeration Documentation

◆ ObjectType

enum class CPDF_CrossRefTable::ObjectType : uint8_t
strong
Enumerator
kFree 
kNormal 
kCompressed 
kNull 

Definition at line 21 of file cpdf_cross_ref_table.h.

Constructor & Destructor Documentation

◆ CPDF_CrossRefTable() [1/2]

CPDF_CrossRefTable::CPDF_CrossRefTable ( )
default

◆ CPDF_CrossRefTable() [2/2]

CPDF_CrossRefTable::CPDF_CrossRefTable ( RetainPtr< CPDF_Dictionary > trailer,
uint32_t trailer_object_number )

Definition at line 30 of file cpdf_cross_ref_table.cpp.

References CPDF_CrossRefTable().

Referenced by CPDF_CrossRefTable().

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

◆ ~CPDF_CrossRefTable()

CPDF_CrossRefTable::~CPDF_CrossRefTable ( )
default

Member Function Documentation

◆ AddCompressed()

void CPDF_CrossRefTable::AddCompressed ( uint32_t obj_num,
uint32_t archive_obj_num,
uint32_t archive_obj_index )

Definition at line 37 of file cpdf_cross_ref_table.cpp.

References kCompressed, and CPDF_Parser::kMaxObjectNumber.

◆ AddNormal()

void CPDF_CrossRefTable::AddNormal ( uint32_t obj_num,
uint16_t gen_num,
bool is_object_stream,
FX_FILESIZE pos )

Definition at line 60 of file cpdf_cross_ref_table.cpp.

References kCompressed, CPDF_Parser::kMaxObjectNumber, and kNormal.

◆ GetMutableTrailerForTesting()

CPDF_Dictionary * CPDF_CrossRefTable::GetMutableTrailerForTesting ( )
inline

Definition at line 67 of file cpdf_cross_ref_table.h.

◆ GetObjectInfo()

const CPDF_CrossRefTable::ObjectInfo * CPDF_CrossRefTable::GetObjectInfo ( uint32_t obj_num) const

Definition at line 94 of file cpdf_cross_ref_table.cpp.

◆ MergeUp()

std::unique_ptr< CPDF_CrossRefTable > CPDF_CrossRefTable::MergeUp ( std::unique_ptr< CPDF_CrossRefTable > current,
std::unique_ptr< CPDF_CrossRefTable > top )
static

Definition at line 15 of file cpdf_cross_ref_table.cpp.

◆ objects_info()

const std::map< uint32_t, ObjectInfo > & CPDF_CrossRefTable::objects_info ( ) const
inline

Definition at line 71 of file cpdf_cross_ref_table.h.

◆ SetFree()

void CPDF_CrossRefTable::SetFree ( uint32_t obj_num)

Definition at line 79 of file cpdf_cross_ref_table.cpp.

References kFree, and CPDF_Parser::kMaxObjectNumber.

◆ SetObjectMapSize()

void CPDF_CrossRefTable::SetObjectMapSize ( uint32_t size)

Definition at line 106 of file cpdf_cross_ref_table.cpp.

◆ SetTrailer()

void CPDF_CrossRefTable::SetTrailer ( RetainPtr< CPDF_Dictionary > trailer,
uint32_t trailer_object_number )

Definition at line 88 of file cpdf_cross_ref_table.cpp.

◆ trailer()

const CPDF_Dictionary * CPDF_CrossRefTable::trailer ( ) const
inline

Definition at line 66 of file cpdf_cross_ref_table.h.

Referenced by testing.tools.encode_pdf_filter._Ascii85DecodePdfStream::close(), and testing.tools.encode_pdf_filter._Ascii85DecodePdfStream::write().

+ Here is the caller graph for this function:

◆ trailer_object_number()

uint32_t CPDF_CrossRefTable::trailer_object_number ( ) const
inline

Definition at line 65 of file cpdf_cross_ref_table.h.

Referenced by TEST(), TEST(), and TEST_F().

+ Here is the caller graph for this function:

◆ Update()

void CPDF_CrossRefTable::Update ( std::unique_ptr< CPDF_CrossRefTable > new_cross_ref)

Definition at line 100 of file cpdf_cross_ref_table.cpp.


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