findAll

fnauto findAll(ref CdmNode root, bool delegate(ref CdmNode) @safe pred) @safe

Finds all nodes in a CDM tree matching a predicate.

Performs a depth-first traversal and collects all nodes for which the predicate returns true.

Parameters

rootThe root node to search from.
predA predicate delegate that accepts a ref CdmNode and returns true for matching nodes.

Returns

An array of CdmNode* pointers to all matching nodes,

in depth-first traversal order.