• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2016 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6 
7 #ifndef CORE_FPDFDOC_CLINES_H_
8 #define CORE_FPDFDOC_CLINES_H_
9 
10 #include <stdint.h>
11 
12 #include "core/fpdfdoc/cpvt_arraytemplate.h"
13 #include "core/fpdfdoc/cpvt_lineinfo.h"
14 
15 class CLine;
16 
17 class CLines final {
18  public:
19   CLines();
20   ~CLines();
21 
22   int32_t GetSize() const;
23   CLine* GetAt(int32_t nIndex) const;
24 
25   void Empty();
26   void RemoveAll();
27   int32_t Add(const CPVT_LineInfo& lineinfo);
28   void Clear();
29 
30  private:
31   CPVT_ArrayTemplate<CLine*> m_Lines;
32   int32_t m_nTotal;
33 };
34 
35 #endif  // CORE_FPDFDOC_CLINES_H_
36