19#ifndef OPM_CUISTL_DETAIL_HAS_FUNCTION_HPP
20#define OPM_CUISTL_DETAIL_HAS_FUNCTION_HPP
53 static std::true_type test(
decltype(&U::shouldCallPre));
55 static std::false_type test(...);
58 static constexpr bool value = std::is_same_v<decltype(test<T>(0)), std::true_type>;
79 static std::true_type test(
decltype(&U::shouldCallPost));
81 static std::false_type test(...);
84 static constexpr bool value = std::is_same_v<decltype(test<T>(0)), std::true_type>;
98 static std::true_type test(
decltype(&U::getCommunication));
100 static std::false_type test(...);
103 static constexpr bool value = std::is_same_v<decltype(test<T>(0)), std::true_type>;
115 template <
typename U>
116 static std::true_type test(
decltype(&U::addWellPressureEquations));
117 template <
typename U>
118 static std::false_type test(...);
121 static constexpr bool value = std::is_same_v<decltype(test<T>(0)), std::true_type>;
The has_communication class checks if the type has the member function getCommunication.
Definition: has_function.hpp:96
static constexpr bool value
Definition: has_function.hpp:103
The has_should_call_post class detects the presence of the method shouldCallPost.
Definition: has_function.hpp:77
static constexpr bool value
Definition: has_function.hpp:84
The has_should_call_pre class detects the presence of the method shouldCallPre.
Definition: has_function.hpp:51
static constexpr bool value
Definition: has_function.hpp:58
The is_a_well_operator class tries to guess if the operator is a well type operator.
Definition: has_function.hpp:114
static constexpr bool value
Definition: has_function.hpp:121
Definition: autotuner.hpp:29