Donner
C++20 SVG rendering library
Loading...
Searching...
No Matches
TreeComponent.h File Reference
#include "donner/base/EcsRegistry.h"
#include "donner/base/RcString.h"
#include "donner/base/SmallVector.h"
#include "donner/base/xml/XMLQualifiedName.h"
Include dependency graph for TreeComponent.h:
This graph shows which files directly or indirectly include this file:

Classes

class  donner::components::TreeComponent
 Stores the tree structure for an XML element, such as the parent, children, and siblings. More...
 

Namespaces

namespace  donner
 Top-level Donner namespace, which is split into different sub-namespaces such as donner::svg and donner::css.
 

Functions

template<typename Func >
void donner::components::ForAllChildrenRecursive (EntityHandle handle, const Func &func)
 Iterate over all children of the given entity recursively and call the given functor for each child.
 
template<typename Func >
void donner::components::ForAllChildren (EntityHandle handle, const Func &func)
 Iterate over all direct children of the given entity and call the given functor for each child.
 

Function Documentation

◆ ForAllChildren()

template<typename Func >
void donner::components::ForAllChildren ( EntityHandle handle,
const Func & func )

Iterate over all direct children of the given entity and call the given functor for each child.

Iterates in pre-order traversal order.

Parameters
handleEntity handle to iterate over.
funcFunctor to call for each child.

◆ ForAllChildrenRecursive()

template<typename Func >
void donner::components::ForAllChildrenRecursive ( EntityHandle handle,
const Func & func )

Iterate over all children of the given entity recursively and call the given functor for each child.

Iterates in pre-order traversal order.

Parameters
handleEntity handle to iterate over.
funcFunctor to call for each child.