CDT++
Causal Dynamical Triangulations in C++
Loading...
Searching...
No Matches
Functions
Apply_move.hpp File Reference

Apply Pachner moves to foliated Delaunay triangulations. More...

#include <spdlog/spdlog.h>
#include <expected>
#include <string>
#include <tl/function_ref.hpp>
+ Include dependency graph for Apply_move.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

template<typename ManifoldType , typename ExpectedType = std::expected<ManifoldType, std::string>, typename FunctionType = tl::function_ref<ExpectedType(ManifoldType&)>>
auto constexpr apply_move (ManifoldType &&t_manifold, FunctionType t_move) noexcept -> decltype(auto)
 An applicative function similar to std::apply on a manifold.
 

Detailed Description

Apply Pachner moves to foliated Delaunay triangulations.

Author
Adam Getchell

Definition in file Apply_move.hpp.

Function Documentation

◆ apply_move()

template<typename ManifoldType , typename ExpectedType = std::expected<ManifoldType, std::string>, typename FunctionType = tl::function_ref<ExpectedType(ManifoldType&)>>
auto constexpr apply_move ( ManifoldType &&  t_manifold,
FunctionType  t_move 
) -> decltype(auto)
constexprnoexcept

An applicative function similar to std::apply on a manifold.

Template Parameters
ManifoldTypeThe type (topology, dimensionality) of manifold
ExpectedTypeThe result type of the move on the manifold
FunctionTypeThe type of move applied to the manifold
Parameters
t_manifoldThe manifold on which to make the Pachner move
t_moveThe Pachner move
Returns
The expected or unexpected result in a std::expected<T,E>

Definition at line 32 of file Apply_move.hpp.

Referenced by MoveCommand< ManifoldType, ExpectedType, FunctionType >::execute().