Loading...
Searching...
No Matches
NumberTree.h
Go to the documentation of this file.
1//---------------------------------------------------------------------------------------
2// Copyright (c) 2001-2025 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
20 typedef DictIterator NumberTreeIterator;
21
22
43 class NumberTree
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
90 NumberTreeIterator GetIterator(Int32 key);
91
101 NumberTreeIterator GetIterator();
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
DictIterator.h
Obj.h
SDFDoc.h
pdftron::SDF::DictIterator
Definition DictIterator.h:33
pdftron::SDF::NumberTree::mp_obj
TRN_NumberTree mp_obj
Definition NumberTree.h:138
pdftron::SDF::NumberTree::GetIterator
NumberTreeIterator GetIterator(Int32 key)
pdftron::SDF::NumberTree::Erase
void Erase(DictIterator &pos)
pdftron::SDF::NumberTree::operator=
NumberTree & operator=(const NumberTree &d)
pdftron::SDF::NumberTree::Put
void Put(Int32 key, Obj value)
pdftron::SDF::NumberTree::GetSDFObj
Obj GetSDFObj() const
pdftron::SDF::NumberTree::NumberTree
NumberTree(Obj number_tree)
pdftron::SDF::NumberTree::IsValid
bool IsValid()
pdftron::SDF::NumberTree::GetIterator
NumberTreeIterator GetIterator()
pdftron::SDF::NumberTree::GetValue
Obj GetValue(Int32 key)
pdftron::SDF::NumberTree::NumberTree
NumberTree(const NumberTree &d)
pdftron::SDF::NumberTree::Erase
void Erase(Int32 key)
pdftron::SDF::Obj
Definition Obj.h:41
pdftron::SDF
Definition DictIterator.h:12
pdftron::SDF::NumberTreeIterator
DictIterator NumberTreeIterator
Definition NumberTree.h:20
pdftron
Definition BasicTypes.h:10
pdftron::Int32
TRN_Int32 Int32
Definition BasicTypes.h:16