Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <cpdf_cross_ref_table.h>
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_Dictionary * | trailer () const |
CPDF_Dictionary * | GetMutableTrailerForTesting () |
const ObjectInfo * | GetObjectInfo (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_CrossRefTable > | MergeUp (std::unique_ptr< CPDF_CrossRefTable > current, std::unique_ptr< CPDF_CrossRefTable > top) |
Definition at line 18 of file cpdf_cross_ref_table.h.
|
strong |
Enumerator | |
---|---|
kFree | |
kNormal | |
kCompressed | |
kNull |
Definition at line 21 of file cpdf_cross_ref_table.h.
|
default |
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().
|
default |
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.
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.
|
inline |
Definition at line 67 of file cpdf_cross_ref_table.h.
const CPDF_CrossRefTable::ObjectInfo * CPDF_CrossRefTable::GetObjectInfo | ( | uint32_t | obj_num | ) | const |
Definition at line 94 of file cpdf_cross_ref_table.cpp.
|
static |
Definition at line 15 of file cpdf_cross_ref_table.cpp.
|
inline |
Definition at line 71 of file cpdf_cross_ref_table.h.
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.
void CPDF_CrossRefTable::SetObjectMapSize | ( | uint32_t | size | ) |
Definition at line 106 of file cpdf_cross_ref_table.cpp.
void CPDF_CrossRefTable::SetTrailer | ( | RetainPtr< CPDF_Dictionary > | trailer, |
uint32_t | trailer_object_number ) |
Definition at line 88 of file cpdf_cross_ref_table.cpp.
|
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().
|
inline |
Definition at line 65 of file cpdf_cross_ref_table.h.
Referenced by TEST(), TEST(), and TEST_F().
void CPDF_CrossRefTable::Update | ( | std::unique_ptr< CPDF_CrossRefTable > | new_cross_ref | ) |
Definition at line 100 of file cpdf_cross_ref_table.cpp.