xref: /aosp_15_r20/external/pdfium/core/fpdfdoc/cpdf_numbertree.h (revision 3ac0a46f773bac49fa9476ec2b1cf3f8da5ec3a4)
1 // Copyright 2016 The PDFium Authors
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_CPDF_NUMBERTREE_H_
8 #define CORE_FPDFDOC_CPDF_NUMBERTREE_H_
9 
10 #include "core/fxcrt/retain_ptr.h"
11 
12 class CPDF_Dictionary;
13 class CPDF_Object;
14 
15 class CPDF_NumberTree {
16  public:
17   explicit CPDF_NumberTree(RetainPtr<const CPDF_Dictionary> pRoot);
18   ~CPDF_NumberTree();
19 
20   RetainPtr<const CPDF_Object> LookupValue(int num) const;
21 
22  protected:
23   RetainPtr<const CPDF_Dictionary> const m_pRoot;
24 };
25 
26 #endif  // CORE_FPDFDOC_CPDF_NUMBERTREE_H_
27