Qore Programming Language Reference Manual  0.9.4.1
QC_TreeMap.dox.h
1 
3 namespace Qore {
5 
25 class TreeMap {
26 
27 public:
29 
31  constructor();
32 
33 public:
35 
37  copy();
38 
39 public:
41 
43  destructor();
44 
45 public:
47 
77 auto get(string path, *reference<*string> unmatched);
78 
79 public:
81 
86 *hash getAll();
87 
88 public:
90 
95 nothing put(string path, auto value);
96 
97 public:
99 
107 auto take(string path);
108 };
109 }
Qore::TreeMap::put
nothing put(string path, auto value)
Puts the mapping of path to value into the container.
Qore::TreeMap::constructor
constructor()
Creates an empty TreeMap container.
Qore::TreeMap::getAll
*hash getAll()
Retrieves the entire TreeMap as a hash; returns NOTHING if the TreeMap is empty.
Qore::hash
hash< auto > hash(object obj)
Returns a hash of an object's members.
Qore::TreeMap::copy
copy()
Throws an exception; objects of this class cannot be copied.
Qore::TreeMap::destructor
destructor()
Releases any resource held by the instance.
Qore::TreeMap::take
auto take(string path)
Removes a value from the TreeMap and returns the value removed.
Qore::TreeMap
A container for efficient path prefix lookup.
Definition: QC_TreeMap.dox.h:25
Qore
main Qore-language namespace
Definition: Pseudo_QC_All.dox.h:2
Qore::TreeMap::get
auto get(string path, *reference< *string > unmatched)
Retrieves a value from the TreeMap and optionally returns the unmatched path suffix.