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 724 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
735 void GetNextAssoc(FX_POSITION& rNextPosition, | 735 void GetNextAssoc(FX_POSITION& rNextPosition, |
736 KeyType& rKey, | 736 KeyType& rKey, |
737 ValueType& rValue) const { | 737 ValueType& rValue) const { |
738 void* pKey = NULL; | 738 void* pKey = NULL; |
739 void* pValue = NULL; | 739 void* pValue = NULL; |
740 CFX_MapPtrToPtr::GetNextAssoc(rNextPosition, pKey, pValue); | 740 CFX_MapPtrToPtr::GetNextAssoc(rNextPosition, pKey, pValue); |
741 rKey = (KeyType)(uintptr_t)pKey; | 741 rKey = (KeyType)(uintptr_t)pKey; |
742 rValue = (ValueType)(uintptr_t)pValue; | 742 rValue = (ValueType)(uintptr_t)pValue; |
743 } | 743 } |
744 }; | 744 }; |
745 class CFX_CMapDWordToDWord { | |
746 public: | |
747 FX_BOOL Lookup(FX_DWORD key, FX_DWORD& value) const; | |
748 | |
749 void SetAt(FX_DWORD key, FX_DWORD value); | |
750 | |
751 void EstimateSize(FX_DWORD size, FX_DWORD grow_by); | |
752 | |
753 FX_POSITION GetStartPosition() const; | |
754 | |
755 void GetNextAssoc(FX_POSITION& pos, FX_DWORD& key, FX_DWORD& value) const; | |
756 | |
757 protected: | |
758 CFX_BinaryBuf m_Buffer; | |
759 }; | |
760 class CFX_CMapByteStringToPtr { | 745 class CFX_CMapByteStringToPtr { |
761 public: | 746 public: |
762 CFX_CMapByteStringToPtr(); | 747 CFX_CMapByteStringToPtr(); |
763 | 748 |
764 ~CFX_CMapByteStringToPtr(); | 749 ~CFX_CMapByteStringToPtr(); |
765 | 750 |
766 void RemoveAll(); | 751 void RemoveAll(); |
767 | 752 |
768 FX_POSITION GetStartPosition() const; | 753 FX_POSITION GetStartPosition() const; |
769 | 754 |
(...skipping 537 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1307 FX_FLOAT c; | 1292 FX_FLOAT c; |
1308 FX_FLOAT d; | 1293 FX_FLOAT d; |
1309 FX_FLOAT e; | 1294 FX_FLOAT e; |
1310 FX_FLOAT f; | 1295 FX_FLOAT f; |
1311 FX_FLOAT g; | 1296 FX_FLOAT g; |
1312 FX_FLOAT h; | 1297 FX_FLOAT h; |
1313 FX_FLOAT i; | 1298 FX_FLOAT i; |
1314 }; | 1299 }; |
1315 | 1300 |
1316 #endif // CORE_INCLUDE_FXCRT_FX_BASIC_H_ | 1301 #endif // CORE_INCLUDE_FXCRT_FX_BASIC_H_ |
OLD | NEW |