| OLD | NEW |
| 1 // Copyright 2014 PDFium Authors. All rights reserved. | 1 // Copyright 2014 PDFium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
| 6 | 6 |
| 7 #ifndef CORE_INCLUDE_FPDFAPI_FPDF_OBJECTS_H_ | 7 #ifndef CORE_INCLUDE_FPDFAPI_FPDF_OBJECTS_H_ |
| 8 #define CORE_INCLUDE_FPDFAPI_FPDF_OBJECTS_H_ | 8 #define CORE_INCLUDE_FPDFAPI_FPDF_OBJECTS_H_ |
| 9 | 9 |
| 10 #include "core/include/fxcrt/fx_coordinates.h" | 10 #include "core/include/fxcrt/fx_coordinates.h" |
| (...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 343 | 343 |
| 344 FX_FLOAT GetNumber16(FX_DWORD index) const { return GetNumber(index); } | 344 FX_FLOAT GetNumber16(FX_DWORD index) const { return GetNumber(index); } |
| 345 | 345 |
| 346 void AddNumber16(FX_FLOAT value) { AddNumber(value); } | 346 void AddNumber16(FX_FLOAT value) { AddNumber(value); } |
| 347 | 347 |
| 348 FX_BOOL Identical(CPDF_Array* pOther) const; | 348 FX_BOOL Identical(CPDF_Array* pOther) const; |
| 349 | 349 |
| 350 protected: | 350 protected: |
| 351 ~CPDF_Array(); | 351 ~CPDF_Array(); |
| 352 | 352 |
| 353 CFX_PtrArray m_Objects; | 353 CFX_ArrayTemplate<CPDF_Object*> m_Objects; |
| 354 friend class CPDF_Object; | 354 friend class CPDF_Object; |
| 355 }; | 355 }; |
| 356 inline CPDF_Array* ToArray(CPDF_Object* obj) { | 356 inline CPDF_Array* ToArray(CPDF_Object* obj) { |
| 357 return obj ? obj->AsArray() : nullptr; | 357 return obj ? obj->AsArray() : nullptr; |
| 358 } | 358 } |
| 359 inline const CPDF_Array* ToArray(const CPDF_Object* obj) { | 359 inline const CPDF_Array* ToArray(const CPDF_Object* obj) { |
| 360 return obj ? obj->AsArray() : nullptr; | 360 return obj ? obj->AsArray() : nullptr; |
| 361 } | 361 } |
| 362 | 362 |
| 363 class CPDF_Dictionary : public CPDF_Object { | 363 class CPDF_Dictionary : public CPDF_Object { |
| (...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 625 | 625 |
| 626 protected: | 626 protected: |
| 627 CFX_MapPtrToPtr m_IndirectObjs; | 627 CFX_MapPtrToPtr m_IndirectObjs; |
| 628 | 628 |
| 629 CPDF_Parser* m_pParser; | 629 CPDF_Parser* m_pParser; |
| 630 | 630 |
| 631 FX_DWORD m_LastObjNum; | 631 FX_DWORD m_LastObjNum; |
| 632 }; | 632 }; |
| 633 | 633 |
| 634 #endif // CORE_INCLUDE_FPDFAPI_FPDF_OBJECTS_H_ | 634 #endif // CORE_INCLUDE_FPDFAPI_FPDF_OBJECTS_H_ |
| OLD | NEW |