#include <functional.h>
Public Member Functions | |
| ComposeFunctor_1_2 (const Functor0 &functor0, const Functor1 &functor1) | |
| The constructor accepts instances of the two functor types to be composed, and makes local copies of them for use in operator()(. | |
| Functor0::result_type | operator() (const typename Functor1::first_argument_type &argument0, const typename Functor1::second_argument_type &argument1) |
| This operator passes its arguments to the operator()(. | |
Protected Attributes | |
| Functor0 | m_functor0 |
| This protected member stores a copy of functor0. | |
| Functor1 | m_functor1 |
| This protected member stores a copy of functor1. | |
Definition at line 110 of file functional.h.
| dlr::common::ComposeFunctor_1_2< Functor0, Functor1 >::ComposeFunctor_1_2 | ( | const Functor0 & | functor0, | |
| const Functor1 & | functor1 | |||
| ) | [inline] |
The constructor accepts instances of the two functor types to be composed, and makes local copies of them for use in operator()(.
..).
| functor0 | During evaluation of operator()(...), the return value of a copy of functor1 will be passed as the argument to this functor (or rather, a copy of this functor), and the return value of the copy of this functor will be passed to the calling context. | |
| functor1 | During evaluation of operator()(...), the return value of this functor (or rather, a copy of this functor) will be passed as the first argument to a copy of functor0, and the return value of the functor0 copy will be passed to the calling context. |
Definition at line 133 of file functional.h.
| Functor0::result_type dlr::common::ComposeFunctor_1_2< Functor0, Functor1 >::operator() | ( | const typename Functor1::first_argument_type & | argument0, | |
| const typename Functor1::second_argument_type & | argument1 | |||
| ) | [inline] |
This operator passes its arguments to the operator()(.
..) method of a copy of constructor argument functor1, then passes the result of this call as the argument of the operator()(...) method of functor0, and returns the result.
| argument0 | This argument will be passed as the first argument of the functor1 copy. | |
| argument1 | This argument will be passed as the second argument of the functor1 copy. |
Definition at line 154 of file functional.h.
References dlr::common::ComposeFunctor_1_2< Functor0, Functor1 >::m_functor0, and dlr::common::ComposeFunctor_1_2< Functor0, Functor1 >::m_functor1.
Functor0 dlr::common::ComposeFunctor_1_2< Functor0, Functor1 >::m_functor0 [protected] |
This protected member stores a copy of functor0.
Definition at line 162 of file functional.h.
Referenced by dlr::common::ComposeFunctor_1_2< Functor0, Functor1 >::operator()().
Functor1 dlr::common::ComposeFunctor_1_2< Functor0, Functor1 >::m_functor1 [protected] |
This protected member stores a copy of functor1.
Definition at line 165 of file functional.h.
Referenced by dlr::common::ComposeFunctor_1_2< Functor0, Functor1 >::operator()().
1.5.8