All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
NumberTree.h
Go to the documentation of this file.
1 //---------------------------------------------------------------------------------------
2 // Copyright (c) 2001-2023 by Apryse Software Inc. All Rights Reserved.
3 // Consult legal.txt regarding legal and license information.
4 //---------------------------------------------------------------------------------------
5 #ifndef PDFTRON_H_CPPSDFNumberTree
6 #define PDFTRON_H_CPPSDFNumberTree
7 
8 #include <C/SDF/TRN_NumberTree.h>
9 #include <SDF/DictIterator.h>
10 #include <SDF/Obj.h>
11 #include <SDF/SDFDoc.h>
12 
13 namespace pdftron {
14  namespace SDF {
15 
16 
21 
22 
44 {
45 public:
46 
47 
54  NumberTree (Obj number_tree);
55 
59  NumberTree (const NumberTree& d);
60 
64  NumberTree& operator=(const NumberTree& d);
65 
71  bool IsValid();
72 
91 
102 
103  Obj GetValue(Int32 key);
104 
105 
113  void Put (Int32 key, Obj value);
114 
121  void Erase (Int32 key);
122 
127  void Erase (DictIterator& pos);
128 
133  Obj GetSDFObj () const;
134 
135 
136 protected:
137 
138  TRN_NumberTree mp_obj;
139 };
140 
141 
142 
143 #include <Impl/NumberTree.inl>
144 
145  }; // namespace SDF
146 }; // namespace pdftron
147 
148 #endif // PDFTRON_H_CPPSDFNumberTree
NumberTree & operator=(const NumberTree &d)
Obj GetValue(Int32 key)
void Erase(Int32 key)
DictIterator NumberTreeIterator
Definition: NumberTree.h:20
NumberTree(Obj number_tree)
NumberTreeIterator GetIterator()
TRN_NumberTree mp_obj
Definition: NumberTree.h:138
TRN_Int32 Int32
Definition: BasicTypes.h:16
void Put(Int32 key, Obj value)