Jet  v1.3.3
functors.h
Go to the documentation of this file.
1 // Copyright (c) 2018 Doyub Kim
2 //
3 // I am making my contributions/submissions to this project solely in my
4 // personal capacity and am not conveying any rights to any intellectual
5 // property of any third parties.
6 
7 #ifndef INCLUDE_JET_FUNCTORS_H_
8 #define INCLUDE_JET_FUNCTORS_H_
9 
10 #include <functional>
11 
12 namespace jet {
13 
15 template <typename T, typename U>
16 struct TypeCast {
17  constexpr U operator()(const T& a) const;
18 };
19 
21 template <typename T>
22 struct RMinus {
23  constexpr T operator()(const T& a, const T& b) const;
24 };
25 
27 template <typename T>
28 struct RDivides {
29  constexpr T operator()(const T& a, const T& b) const;
30 };
31 }
32 
33 #include "detail/functors-inl.h"
34 
35 #endif // INCLUDE_JET_FUNCTORS_H_
jet::RMinus
Reverse minus operator.
Definition: functors.h:22
jet::RMinus::operator()
constexpr T operator()(const T &a, const T &b) const
jet::TypeCast::operator()
constexpr U operator()(const T &a) const
jet
Definition: advection_solver2.h:18
jet::TypeCast
Type casting operator.
Definition: functors.h:16
jet::RDivides
Reverse divides operator.
Definition: functors.h:28
jet::RDivides::operator()
constexpr T operator()(const T &a, const T &b) const