| 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_FXCRT_FX_BASIC_H_ | 7 #ifndef CORE_INCLUDE_FXCRT_FX_BASIC_H_ |
| 8 #define CORE_INCLUDE_FXCRT_FX_BASIC_H_ | 8 #define CORE_INCLUDE_FXCRT_FX_BASIC_H_ |
| 9 | 9 |
| 10 #include "fx_memory.h" | 10 #include "fx_memory.h" |
| (...skipping 627 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 638 | 638 |
| 639 FX_DWORD HashKey(void* key) const; | 639 FX_DWORD HashKey(void* key) const; |
| 640 | 640 |
| 641 CAssoc* NewAssoc(); | 641 CAssoc* NewAssoc(); |
| 642 | 642 |
| 643 void FreeAssoc(CAssoc* pAssoc); | 643 void FreeAssoc(CAssoc* pAssoc); |
| 644 | 644 |
| 645 CAssoc* GetAssocAt(void* key, FX_DWORD& hash) const; | 645 CAssoc* GetAssocAt(void* key, FX_DWORD& hash) const; |
| 646 }; | 646 }; |
| 647 | 647 |
| 648 class CFX_CMapDWordToDWord { | |
| 649 public: | |
| 650 FX_BOOL Lookup(FX_DWORD key, FX_DWORD& value) const; | |
| 651 | |
| 652 void SetAt(FX_DWORD key, FX_DWORD value); | |
| 653 | |
| 654 void EstimateSize(FX_DWORD size, FX_DWORD grow_by); | |
| 655 | |
| 656 FX_POSITION GetStartPosition() const; | |
| 657 | |
| 658 void GetNextAssoc(FX_POSITION& pos, FX_DWORD& key, FX_DWORD& value) const; | |
| 659 | |
| 660 protected: | |
| 661 CFX_BinaryBuf m_Buffer; | |
| 662 }; | |
| 663 class CFX_MapByteStringToPtr { | 648 class CFX_MapByteStringToPtr { |
| 664 protected: | 649 protected: |
| 665 struct CAssoc { | 650 struct CAssoc { |
| 666 CAssoc* pNext; | 651 CAssoc* pNext; |
| 667 | 652 |
| 668 FX_DWORD nHashValue; | 653 FX_DWORD nHashValue; |
| 669 | 654 |
| 670 CFX_ByteString key; | 655 CFX_ByteString key; |
| 671 | 656 |
| 672 void* value; | 657 void* value; |
| (...skipping 560 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1233 FX_FLOAT c; | 1218 FX_FLOAT c; |
| 1234 FX_FLOAT d; | 1219 FX_FLOAT d; |
| 1235 FX_FLOAT e; | 1220 FX_FLOAT e; |
| 1236 FX_FLOAT f; | 1221 FX_FLOAT f; |
| 1237 FX_FLOAT g; | 1222 FX_FLOAT g; |
| 1238 FX_FLOAT h; | 1223 FX_FLOAT h; |
| 1239 FX_FLOAT i; | 1224 FX_FLOAT i; |
| 1240 }; | 1225 }; |
| 1241 | 1226 |
| 1242 #endif // CORE_INCLUDE_FXCRT_FX_BASIC_H_ | 1227 #endif // CORE_INCLUDE_FXCRT_FX_BASIC_H_ |
| OLD | NEW |