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 617 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
628 | 628 |
629 FX_DWORD HashKey(void* key) const; | 629 FX_DWORD HashKey(void* key) const; |
630 | 630 |
631 CAssoc* NewAssoc(); | 631 CAssoc* NewAssoc(); |
632 | 632 |
633 void FreeAssoc(CAssoc* pAssoc); | 633 void FreeAssoc(CAssoc* pAssoc); |
634 | 634 |
635 CAssoc* GetAssocAt(void* key, FX_DWORD& hash) const; | 635 CAssoc* GetAssocAt(void* key, FX_DWORD& hash) const; |
636 }; | 636 }; |
637 | 637 |
638 class CFX_CMapDWordToDWord { | |
639 public: | |
640 FX_BOOL Lookup(FX_DWORD key, FX_DWORD& value) const; | |
641 | |
642 void SetAt(FX_DWORD key, FX_DWORD value); | |
643 | |
644 void EstimateSize(FX_DWORD size, FX_DWORD grow_by); | |
645 | |
646 FX_POSITION GetStartPosition() const; | |
647 | |
648 void GetNextAssoc(FX_POSITION& pos, FX_DWORD& key, FX_DWORD& value) const; | |
649 | |
650 protected: | |
651 CFX_BinaryBuf m_Buffer; | |
652 }; | |
653 class CFX_CMapByteStringToPtr { | 638 class CFX_CMapByteStringToPtr { |
654 public: | 639 public: |
655 CFX_CMapByteStringToPtr(); | 640 CFX_CMapByteStringToPtr(); |
656 | 641 |
657 ~CFX_CMapByteStringToPtr(); | 642 ~CFX_CMapByteStringToPtr(); |
658 | 643 |
659 void RemoveAll(); | 644 void RemoveAll(); |
660 | 645 |
661 FX_POSITION GetStartPosition() const; | 646 FX_POSITION GetStartPosition() const; |
662 | 647 |
(...skipping 491 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1154 FX_FLOAT c; | 1139 FX_FLOAT c; |
1155 FX_FLOAT d; | 1140 FX_FLOAT d; |
1156 FX_FLOAT e; | 1141 FX_FLOAT e; |
1157 FX_FLOAT f; | 1142 FX_FLOAT f; |
1158 FX_FLOAT g; | 1143 FX_FLOAT g; |
1159 FX_FLOAT h; | 1144 FX_FLOAT h; |
1160 FX_FLOAT i; | 1145 FX_FLOAT i; |
1161 }; | 1146 }; |
1162 | 1147 |
1163 #endif // CORE_INCLUDE_FXCRT_FX_BASIC_H_ | 1148 #endif // CORE_INCLUDE_FXCRT_FX_BASIC_H_ |
OLD | NEW |