Monitor function application for binary functions.
More...
#include <BinaryFunction.hpp>
List of all members.
Public Member Functions |
| NullBinaryFunctorWrapper (const Functor &f) |
| Constructor.
|
result_type | operator() (const first_argument_type &left, const second_argument_type &right) const |
| Monitored invocation of f .
|
void | warnings () |
| Raise warnings after processing a vector.
|
Detailed Description
template<typename first_argument_type, typename second_argument_type, typename result_type, typename Functor>
class CXXR::VectorOps::NullBinaryFunctorWrapper< first_argument_type, second_argument_type, result_type, Functor >
Monitor function application for binary functions.
This class is a possible value of the FunctorWrapper template parameter of VectorOps::BinaryFunction, and its behaviour is to apply no special monitoring at all.
- Template Parameters:
-
first_argument_type | Element type of the first operand to the BinaryFunction. |
second_argument_type | Element type of the second operand to the BinaryFunction. |
result_type | Element type of the result of the BinaryFunction. |
Functor | Function or function object type, representing a binary function. ElementTraits<first_argument_type>::Data::Type must be convertible to the type of the first argument of this function, and likewise ElementTraits<second_argument_type>::Data::Type must be convertible to the type of the second argument of this function. The result of the function must be assignable to result_type . |
Constructor & Destructor Documentation
template<typename first_argument_type , typename second_argument_type , typename result_type , typename Functor >
Constructor.
- Parameters:
-
f | Pointer to an object of type Functor defining the binary function whose operation this FunctorWrapper is to monitor. |
Member Function Documentation
template<typename first_argument_type , typename second_argument_type , typename result_type , typename Functor >
result_type CXXR::VectorOps::NullBinaryFunctorWrapper< first_argument_type, second_argument_type, result_type, Functor >::operator() |
( |
const first_argument_type & |
left, |
|
|
const second_argument_type & |
right |
|
) |
| const |
|
inline |
Monitored invocation of f .
- Parameters:
-
left | First argument to which f is to be applied. |
right | Second argument to which f is to be applied. |
- Returns:
- The result of applying f to the element data of left and right .
template<typename first_argument_type , typename second_argument_type , typename result_type , typename Functor >
Raise warnings after processing a vector.
The behaviour implemented here is to do nothing.
The documentation for this class was generated from the following file: