Donner SVG main
0.8.0 ยท 382bd0190.8.0 main
SVG editor and embeddable C⁠+⁠+⁠20 engine.
Loading...
Searching...
No Matches
donner::css::SelectorTraversalNavigation< T > Class Template Reference

Navigation that charges both visible elements and adapter-specific skipped nodes. More...

#include "donner/css/selectors/SelectorMatchOptions.h"

Public Member Functions

 SelectorTraversalNavigation (SelectorTraversalBudget *budget)
 Bind navigation to one aggregate match budget.
std::optional< T > firstChild (const T &element) const
 Get the first child under the shared budget.
std::optional< T > lastChild (const T &element) const
 Get the last child under the shared budget.
std::optional< T > previousSibling (const T &element) const
 Get the preceding sibling under the shared budget.
std::optional< T > nextSibling (const T &element) const
 Get the following sibling under the shared budget.

Detailed Description

template<ElementLike T>
class donner::css::SelectorTraversalNavigation< T >

Navigation that charges both visible elements and adapter-specific skipped nodes.

Template Parameters
TElement-like value.

Constructor & Destructor Documentation

◆ SelectorTraversalNavigation()

template<ElementLike T>
donner::css::SelectorTraversalNavigation< T >::SelectorTraversalNavigation ( SelectorTraversalBudget * budget)
inlineexplicit

Bind navigation to one aggregate match budget.

Parameters
budgetShared work budget.

Member Function Documentation

◆ firstChild()

template<ElementLike T>
std::optional< T > donner::css::SelectorTraversalNavigation< T >::firstChild ( const T & element) const
inline

Get the first child under the shared budget.

Parameters
elementReference element.

◆ lastChild()

template<ElementLike T>
std::optional< T > donner::css::SelectorTraversalNavigation< T >::lastChild ( const T & element) const
inline

Get the last child under the shared budget.

Parameters
elementReference element.

◆ nextSibling()

template<ElementLike T>
std::optional< T > donner::css::SelectorTraversalNavigation< T >::nextSibling ( const T & element) const
inline

Get the following sibling under the shared budget.

Parameters
elementReference element.

◆ previousSibling()

template<ElementLike T>
std::optional< T > donner::css::SelectorTraversalNavigation< T >::previousSibling ( const T & element) const
inline

Get the preceding sibling under the shared budget.

Parameters
elementReference element.

The documentation for this class was generated from the following file: