version 0.4.1
traversal.hh File Reference

Contains functions to traverse through a tree to its different nodes. More...

Go to the source code of this file.

Namespaces

namespace  Ikarus
 
namespace  Ikarus::utils
 

Functions

template<class T , class TreePath , class PowerFunc , class LeafFunc >
void Ikarus::utils::forEachLeafOrPowerLeafNode (T &&tree, TreePath &&treePath, PowerFunc &&powerFunc, LeafFunc &&leafFunc)
 A function which loops over all the nodes of a tree and performs different actions for a power node (with leaf node as child) and a leaf node depending on the corresponding functor passed. More...