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...
 
template<typename LV , typename F , int size = LV::Element::Geometry::coorddimension>
requires (std::convertible_to<F, std::function<bool(int, Dune::FieldVector<double, size> &&)>>)
void Ikarus::utils::forEachLagrangeNodePosition (const LV &localView, F &&f)
 A helper function that helps in traversing over the local coordinates of an element and call a user-desired function. More...