struct NodePath
Defined at line 161 of file ../../zircon/kernel/lib/devicetree/include/lib/devicetree/devicetree.h
Represents a rooted path of nodes in a devicetree.
This can be used interchangeably with `const std::list
<std
::string_view>`
to iterate over the elements in a path with implied `/` separators.
Public Methods
Comparison CompareWith (std::string_view path)
Defined at line 86 of file ../../zircon/kernel/lib/devicetree/devicetree-node-path.cc
Comparison CompareWith (std::string_view path)
Defined at line 86 of file ../../zircon/kernel/lib/devicetree/devicetree-node-path.cc
Comparison CompareWith (const ResolvedPath & path)
Defined at line 34 of file ../../zircon/kernel/lib/devicetree/devicetree-node-path.cc
bool operator== (std::string_view path)
Comparisons with a `std::string_view`-encoded node path.
Defined at line 189 of file ../../zircon/kernel/lib/devicetree/include/lib/devicetree/devicetree.h
bool operator== (std::string_view path)
Comparisons with a `std::string_view`-encoded node path.
Defined at line 189 of file ../../zircon/kernel/lib/devicetree/include/lib/devicetree/devicetree.h
bool operator!= (std::string_view path)
Defined at line 191 of file ../../zircon/kernel/lib/devicetree/include/lib/devicetree/devicetree.h
bool operator!= (std::string_view path)
Defined at line 191 of file ../../zircon/kernel/lib/devicetree/include/lib/devicetree/devicetree.h
bool IsParentOf (std::string_view path)
Defined at line 193 of file ../../zircon/kernel/lib/devicetree/include/lib/devicetree/devicetree.h
bool IsParentOf (std::string_view path)
Defined at line 193 of file ../../zircon/kernel/lib/devicetree/include/lib/devicetree/devicetree.h
bool IsAncestorOf (std::string_view path)
Defined at line 195 of file ../../zircon/kernel/lib/devicetree/include/lib/devicetree/devicetree.h
bool IsAncestorOf (std::string_view path)
Defined at line 195 of file ../../zircon/kernel/lib/devicetree/include/lib/devicetree/devicetree.h
bool IsChildOf (std::string_view path)
Defined at line 200 of file ../../zircon/kernel/lib/devicetree/include/lib/devicetree/devicetree.h
bool IsChildOf (std::string_view path)
Defined at line 200 of file ../../zircon/kernel/lib/devicetree/include/lib/devicetree/devicetree.h
bool IsDescendentOf (std::string_view path)
Defined at line 202 of file ../../zircon/kernel/lib/devicetree/include/lib/devicetree/devicetree.h
bool IsDescendentOf (std::string_view path)
Defined at line 202 of file ../../zircon/kernel/lib/devicetree/include/lib/devicetree/devicetree.h
bool operator== (const ResolvedPath & path)
Comparisons with a `ResolvedPath`-encoded node path.
Defined at line 213 of file ../../zircon/kernel/lib/devicetree/include/lib/devicetree/devicetree.h
bool IsParentOf (const ResolvedPath & path)
Defined at line 217 of file ../../zircon/kernel/lib/devicetree/include/lib/devicetree/devicetree.h
bool IsAncestorOf (const ResolvedPath & path)
Defined at line 221 of file ../../zircon/kernel/lib/devicetree/include/lib/devicetree/devicetree.h
bool IsChildOf (const ResolvedPath & path)
Defined at line 226 of file ../../zircon/kernel/lib/devicetree/include/lib/devicetree/devicetree.h
bool IsDescendentOf (const ResolvedPath & path)
Defined at line 228 of file ../../zircon/kernel/lib/devicetree/include/lib/devicetree/devicetree.h
Enumerations
enum Comparison
| Name | Value |
|---|---|
| kEqual | 0 |
| kParent | 1 |
| kIndirectAncestor | 2 |
| kChild | 3 |
| kIndirectDescendent | 4 |
| kMismatch | 5 |
The result of a path comparison between this NodePath and another type
encoding a node path.
Defined at line 165 of file ../../zircon/kernel/lib/devicetree/include/lib/devicetree/devicetree.h