33#ifndef DART_CONSTRAINT_DETAIL_CONSTRAINTSOVER_IMPL_HPP_
34#define DART_CONSTRAINT_DETAIL_CONSTRAINTSOVER_IMPL_HPP_
41template <
typename Func>
44 if constexpr (std::is_same_v<
45 std::invoke_result_t<Func, const ConstraintBase*>,
64template <
typename Func>
67 if constexpr (std::is_same_v<
68 std::invoke_result_t<Func, ConstraintBase*>,
std::size_t getNumConstraints() const
Returns the number of constraints that was manually added to this ConstraintSolver.
Definition ConstraintSolver.cpp:209
constraint::ConstraintBasePtr getConstraint(std::size_t index)
Returns a constraint by index.
Definition ConstraintSolver.cpp:215
void eachConstraint(Func func) const
Iterates all the constraints and invokes the callback function.
Definition ConstraintSolver-impl.hpp:42
Definition BalanceConstraint.cpp:39