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 class Comparison
Name Value Comments
kEqual 0

This node is equal to another.

kParent 1

This node is the parent of another.

kIndirectAncestor 2

This node is the indirect ancestor of another.

kChild 3

This node is the child of another.

kIndirectDescendent 4

This node is the indirect descendent of another.

kMismatch 5

This node does not share a lineage with another node.

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