Index: core/fxcrt/include/fx_basic.h |
diff --git a/core/fxcrt/include/fx_basic.h b/core/fxcrt/include/fx_basic.h |
index 2ef11beb2775afb20e1b07f704b91ae0974f9c41..744b2dd10fd6550ec452c24de16fa5d7d116f9c8 100644 |
--- a/core/fxcrt/include/fx_basic.h |
+++ b/core/fxcrt/include/fx_basic.h |
@@ -491,71 +491,6 @@ class CFX_ObjectArray : public CFX_BasicArray { |
}; |
typedef CFX_ObjectArray<CFX_ByteString> CFX_ByteStringArray; |
typedef CFX_ObjectArray<CFX_WideString> CFX_WideStringArray; |
-class CFX_BaseSegmentedArray { |
- public: |
- CFX_BaseSegmentedArray(int unit_size = 1, |
- int segment_units = 512, |
- int index_size = 8); |
- |
- ~CFX_BaseSegmentedArray(); |
- |
- void SetUnitSize(int unit_size, int segment_units, int index_size = 8); |
- |
- void* Add(); |
- |
- void* GetAt(int index) const; |
- |
- void RemoveAll(); |
- |
- void Delete(int index, int count = 1); |
- |
- int GetSize() const { return m_DataSize; } |
- |
- int GetSegmentSize() const { return m_SegmentSize; } |
- |
- int GetUnitSize() const { return m_UnitSize; } |
- |
- void* Iterate(FX_BOOL (*callback)(void* param, void* pData), |
- void* param) const; |
- |
- private: |
- int m_UnitSize; |
- |
- short m_SegmentSize; |
- |
- uint8_t m_IndexSize; |
- |
- uint8_t m_IndexDepth; |
- |
- int m_DataSize; |
- |
- void* m_pIndex; |
- void** GetIndex(int seg_index) const; |
- void* IterateIndex(int level, |
- int& start, |
- void** pIndex, |
- FX_BOOL (*callback)(void* param, void* pData), |
- void* param) const; |
- void* IterateSegment(const uint8_t* pSegment, |
- int count, |
- FX_BOOL (*callback)(void* param, void* pData), |
- void* param) const; |
-}; |
-template <class ElementType> |
-class CFX_SegmentedArray : public CFX_BaseSegmentedArray { |
- public: |
- CFX_SegmentedArray(int segment_units, int index_size = 8) |
- : CFX_BaseSegmentedArray(sizeof(ElementType), segment_units, index_size) { |
- } |
- |
- void Add(ElementType data) { |
- *(ElementType*)CFX_BaseSegmentedArray::Add() = data; |
- } |
- |
- ElementType& operator[](int index) { |
- return *(ElementType*)CFX_BaseSegmentedArray::GetAt(index); |
- } |
-}; |
#endif // PDF_ENABLE_XFA |
template <class DataType, int FixedSize> |