|
| DomPrefixTree (const DomPrefixTree &)=default |
|
| DomPrefixTree (DomPrefixTree &&)=default |
|
| DomPrefixTree (AZStd::initializer_list< AZStd::pair< Path, T > > init) |
|
template<class Range , class = AZStd::enable_if_t<RangeConvertibleToPrefixTree<Range, T>>> |
| DomPrefixTree (Range &&range) |
|
DomPrefixTree & | operator= (const DomPrefixTree &)=default |
|
DomPrefixTree & | operator= (DomPrefixTree &&)=default |
|
void | VisitPath (const Path &path, const VisitorFunction &visitor, PrefixTreeTraversalFlags flags=DefaultTraversalFlags) |
| Visits a path and calls a visitor for each matching path and value.
|
|
void | VisitPath (const Path &path, const ConstVisitorFunction &visitor, PrefixTreeTraversalFlags flags=DefaultTraversalFlags) const |
|
T * | ValueAtPath (const Path &path, PrefixTreeMatch match) |
| Visits a path and returns the most specific matching value, or null if none was found.
|
|
const T * | ValueAtPath (const Path &path, PrefixTreeMatch match) const |
|
template<class Deduced > |
T | ValueAtPathOrDefault (const Path &path, Deduced &&defaultValue, PrefixTreeMatch match) const |
| Visits a path and returns the most specific matching value or some default value.
|
|
T & | operator[] (const Path &path) |
| Get or create a value at the given exact path.
|
|
const T & | operator[] (const Path &path) const |
|
template<class Deduced > |
void | SetValue (const Path &path, Deduced &&value) |
| Sets the value stored at path.
|
|
void | EraseValue (const Path &path, bool removeChildren=false) |
| Removes the value stored at path. If removeChildren is true, also removes any values stored at subpaths.
|
|
DomPrefixTree< T > | DetachSubTree (const Path &path) |
|
bool | OverwritePath (const Path &path, DomPrefixTree &&subtree, bool shouldCreateNodes=true) |
|
void | Clear () |
| Removes all entries from this tree.
|
|
bool | IsEmpty () const |
| Returns true if the root node is empty.
|
|
template<class T>
class AZ::Dom::DomPrefixTree< T >
A prefix tree that maps DOM paths to some arbitrary value.