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 XFA_SRC_FGAS_INCLUDE_FX_UTL_H_ | 7 #ifndef XFA_SRC_FGAS_INCLUDE_FX_UTL_H_ |
8 #define XFA_SRC_FGAS_INCLUDE_FX_UTL_H_ | 8 #define XFA_SRC_FGAS_INCLUDE_FX_UTL_H_ |
9 | 9 |
10 #include "xfa/src/fgas/include/fx_mem.h" | 10 #include "xfa/src/fgas/include/fx_mem.h" |
11 #include "core/include/fxcrt/fx_coordinates.h" // For CFX_Rect. | 11 #include "core/include/fxcrt/fx_coordinates.h" // For CFX_Rect. |
12 | 12 |
13 class CFX_ThreadLock; | |
14 class CFX_BaseArray; | 13 class CFX_BaseArray; |
15 template <class baseType> | 14 template <class baseType> |
16 class CFX_BaseArrayTemplate; | 15 class CFX_BaseArrayTemplate; |
17 template <class baseType> | 16 template <class baseType> |
18 class CFX_ObjectBaseArrayTemplate; | 17 class CFX_ObjectBaseArrayTemplate; |
19 class CFX_BaseMassArray; | 18 class CFX_BaseMassArray; |
20 class CFX_BaseMassArrayImp; | 19 class CFX_BaseMassArrayImp; |
21 template <class baseType> | 20 template <class baseType> |
22 class CFX_MassArrayTemplate; | 21 class CFX_MassArrayTemplate; |
23 template <class baseType> | 22 template <class baseType> |
24 class CFX_ObjectMassArrayTemplate; | 23 class CFX_ObjectMassArrayTemplate; |
25 class CFX_BaseDiscreteArray; | 24 class CFX_BaseDiscreteArray; |
26 template <class baseType> | 25 template <class baseType> |
27 class CFX_DiscreteArrayTemplate; | 26 class CFX_DiscreteArrayTemplate; |
28 class CFX_BaseStack; | 27 class CFX_BaseStack; |
29 template <class baseType> | 28 template <class baseType> |
30 class CFX_StackTemplate; | 29 class CFX_StackTemplate; |
31 template <class baseType> | 30 template <class baseType> |
32 class CFX_ObjectStackTemplate; | 31 class CFX_ObjectStackTemplate; |
33 template <class baseType> | 32 template <class baseType> |
34 class CFX_CPLTreeNode; | 33 class CFX_CPLTreeNode; |
35 template <class baseType> | 34 template <class baseType> |
36 class CFX_CPLTree; | 35 class CFX_CPLTree; |
37 class FX_BASEARRAYDATA; | 36 class FX_BASEARRAYDATA; |
38 | 37 |
39 class CFX_ThreadLock { | |
40 public: | |
41 CFX_ThreadLock(); | |
42 virtual ~CFX_ThreadLock(); | |
43 void Lock(); | |
44 void Unlock(); | |
45 }; | |
46 class CFX_BaseArray : public CFX_Target { | 38 class CFX_BaseArray : public CFX_Target { |
47 protected: | 39 protected: |
48 CFX_BaseArray(int32_t iGrowSize, int32_t iBlockSize); | 40 CFX_BaseArray(int32_t iGrowSize, int32_t iBlockSize); |
49 ~CFX_BaseArray(); | 41 ~CFX_BaseArray(); |
50 int32_t GetSize() const; | 42 int32_t GetSize() const; |
51 int32_t GetBlockSize() const; | 43 int32_t GetBlockSize() const; |
52 uint8_t* AddSpaceTo(int32_t index); | 44 uint8_t* AddSpaceTo(int32_t index); |
53 uint8_t* GetAt(int32_t index) const; | 45 uint8_t* GetAt(int32_t index) const; |
54 uint8_t* GetBuffer() const; | 46 uint8_t* GetBuffer() const; |
55 int32_t Append(const CFX_BaseArray& src, | 47 int32_t Append(const CFX_BaseArray& src, |
(...skipping 660 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
716 pLast->SetNextNode(pChild); | 708 pLast->SetNextNode(pChild); |
717 } | 709 } |
718 return pChild; | 710 return pChild; |
719 } | 711 } |
720 | 712 |
721 protected: | 713 protected: |
722 CPLTreeNode m_Root; | 714 CPLTreeNode m_Root; |
723 }; | 715 }; |
724 | 716 |
725 #endif // XFA_SRC_FGAS_INCLUDE_FX_UTL_H_ | 717 #endif // XFA_SRC_FGAS_INCLUDE_FX_UTL_H_ |
OLD | NEW |