 | TreeTraversalServiceDepthFirstPostOrder(InternalElementType, PredicateInternalElementType) Method |
A DepthFirst (Post-Order) Traversal algorithm, which can be used to traverse an InternalElement tree in post order
via foreach (var item in collection){ ... }. A predicate can be specified to restrict the element selection.
Namespace: Aml.Engine.Services.TreeTraversalAssembly: Aml.Engine.Services.TreeTraversal (in Aml.Engine.Services.TreeTraversal.dll) Version: 2.0
Syntaxpublic IEnumerable<InternalElementType> DepthFirstPostOrder(
InternalElementType root,
Predicate<InternalElementType> condition = null
)
Public Function DepthFirstPostOrder (
root As InternalElementType,
Optional condition As Predicate(Of InternalElementType) = Nothing
) As IEnumerable(Of InternalElementType)
public:
virtual IEnumerable<InternalElementType^>^ DepthFirstPostOrder(
InternalElementType^ root,
Predicate<InternalElementType^>^ condition = nullptr
) sealed
Parameters
- root InternalElementType
- The root defines the InternalElement which is used as the starting point of the traversal.
- condition PredicateInternalElementType (Optional)
- The selection predicate.
Return Value
IEnumerableInternalElementTypeordered enumeration of all InternalElements in the tree in post order.
Implements
ITreeTraversalServiceDepthFirstPostOrder(InternalElementType, PredicateInternalElementType)
See Also