InclusionStratergy

- Documented

TouchStratergy

- Documented
This commit is contained in:
Tristan B. Velloza Kildaire 2024-04-27 15:27:31 +02:00
parent 9d39cc3710
commit b1f2cb594b
1 changed files with 18 additions and 1 deletions

View File

@ -781,12 +781,29 @@ public template Nothing(T)
}
}
/**
* The inclusion stratergy which
* will be called upon the tree
* node prior to it being visited
* during a dfs operation.
*
* It is a predicate to determine
* whether or not the tree node
* in concern should be recursed
* upon.
*/
public template InclusionStratergy(T)
{
public alias InclusionStratergy = bool delegate(Tree!(T) item);
}
// Called prior to visitation?
/**
* This is called on a tree node
* as part of the first action
* that takes place during the
* visitation of said node during
* a dfs operation.
*/
public template TouchStratergy(T)
{
public alias TouchStratergy = void delegate(Tree!(T) item);