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 _FX_UTILS | 7 #ifndef _FX_UTILS |
8 #define _FX_UTILS | 8 #define _FX_UTILS |
9 | 9 |
10 #include "fx_mem.h" | 10 #include "fx_mem.h" |
(...skipping 28 matching lines...) Expand all Loading... |
39 class CFX_ThreadLock { | 39 class CFX_ThreadLock { |
40 public: | 40 public: |
41 CFX_ThreadLock(); | 41 CFX_ThreadLock(); |
42 virtual ~CFX_ThreadLock(); | 42 virtual ~CFX_ThreadLock(); |
43 void Lock(); | 43 void Lock(); |
44 void Unlock(); | 44 void Unlock(); |
45 }; | 45 }; |
46 class CFX_BaseArray : public CFX_Target { | 46 class CFX_BaseArray : public CFX_Target { |
47 protected: | 47 protected: |
48 CFX_BaseArray(int32_t iGrowSize, int32_t iBlockSize); | 48 CFX_BaseArray(int32_t iGrowSize, int32_t iBlockSize); |
| 49 ~CFX_BaseArray(); |
49 int32_t GetSize() const; | 50 int32_t GetSize() const; |
50 int32_t GetBlockSize() const; | 51 int32_t GetBlockSize() const; |
51 uint8_t* AddSpaceTo(int32_t index); | 52 uint8_t* AddSpaceTo(int32_t index); |
52 uint8_t* GetAt(int32_t index) const; | 53 uint8_t* GetAt(int32_t index) const; |
53 uint8_t* GetBuffer() const; | 54 uint8_t* GetBuffer() const; |
54 int32_t Append(const CFX_BaseArray& src, | 55 int32_t Append(const CFX_BaseArray& src, |
55 int32_t iStart = 0, | 56 int32_t iStart = 0, |
56 int32_t iCount = -1); | 57 int32_t iCount = -1); |
57 int32_t Copy(const CFX_BaseArray& src, | 58 int32_t Copy(const CFX_BaseArray& src, |
58 int32_t iStart = 0, | 59 int32_t iStart = 0, |
(...skipping 655 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
714 pChild->SetPrevNode(pLast); | 715 pChild->SetPrevNode(pLast); |
715 pLast->SetNextNode(pChild); | 716 pLast->SetNextNode(pChild); |
716 } | 717 } |
717 return pChild; | 718 return pChild; |
718 } | 719 } |
719 | 720 |
720 protected: | 721 protected: |
721 CPLTreeNode m_Root; | 722 CPLTreeNode m_Root; |
722 }; | 723 }; |
723 #endif | 724 #endif |
OLD | NEW |