Functors.h
Go to the documentation of this file.
1 /*************************************************************************
2 > File Name: Functors.h
3 > Project Name: CubbyFlow
4 > Author: Chan-Ho Chris Ohk
5 > Purpose: Functors for CubbyFlow.
6 > Created Time: 2017/09/26
7 > Copyright (c) 2018, Chan-Ho Chris Ohk
8 *************************************************************************/
9 #ifndef CUBBYFLOW_FUNCTORS_H
10 #define CUBBYFLOW_FUNCTORS_H
11 
12 namespace CubbyFlow
13 {
15  template <typename T, typename U>
16  struct TypeCast
17  {
18  constexpr U operator()(const T& a) const;
19  };
20 
22  template <typename T>
23  struct RMinus
24  {
25  constexpr T operator()(const T& a, const T& b) const;
26  };
27 
29  template <typename T>
30  struct RDivides
31  {
32  constexpr T operator()(const T& a, const T& b) const;
33  };
34 }
35 
37 
38 #endif
constexpr U operator()(const T &a) const
Definition: Functors-Impl.h:15
Reverse divides operator.
Definition: Functors.h:30
Definition: pybind11Utils.h:24
constexpr T operator()(const T &a, const T &b) const
Definition: Functors-Impl.h:21
Reverse minus operator.
Definition: Functors.h:23
Type casting operator.
Definition: Functors.h:16
constexpr T operator()(const T &a, const T &b) const
Definition: Functors-Impl.h:27