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_CPDF_NUMBERTREE_H_ 8 #define CORE_FPDFDOC_CPDF_NUMBERTREE_H_ 9 10 #include "core/fxcrt/unowned_ptr.h" 11 12 class CPDF_Dictionary; 13 class CPDF_Object; 14 15 class CPDF_NumberTree { 16 public: 17 explicit CPDF_NumberTree(CPDF_Dictionary* pRoot); 18 ~CPDF_NumberTree(); 19 20 CPDF_Object* LookupValue(int num) const; 21 22 protected: 23 UnownedPtr<CPDF_Dictionary> const m_pRoot; 24 }; 25 26 #endif // CORE_FPDFDOC_CPDF_NUMBERTREE_H_ 27