Qore Programming Language Reference Manual  0.9.3
QC_TreeMap.dox.h
1 namespace Qore {
4 
24 class TreeMap {
25 
26 public:
28 
30  constructor();
31 
32 public:
34 
36  copy();
37 
38 public:
40 
42  destructor();
43 
44 public:
46 
76 auto get(string path, *reference<*string> unmatched);
77 
78 public:
80 
85 *hash getAll();
86 
87 public:
89 
94 nothing put(string path, auto value);
95 
96 public:
98 
106 auto take(string path);
107 };
108 };
auto take(string path)
Removes a value from the TreeMap and returns the value removed.
auto get(string path, *reference< *string > unmatched)
Retrieves a value from the TreeMap and optionally returns the unmatched path suffix.
A container for efficient path prefix lookup.
Definition: QC_TreeMap.dox.h:24
*hash getAll()
Retrieves the entire TreeMap as a hash; returns NOTHING if the TreeMap is empty.
destructor()
Releases any resource held by the instance.
hash< auto > hash(object obj)
Returns a hash of an object's members.
nothing put(string path, auto value)
Puts the mapping of path to value into the container.
main Qore-language namespace
Definition: Pseudo_QC_All.dox.h:2
copy()
Throws an exception; objects of this class cannot be copied.
constructor()
Creates an empty TreeMap container.