Documentation
template<typename opT>
class TiledArray::detail::ReducePairOpWrapper< opT >
Wrapper that to convert a pair-wise reduction into a standard reduction.
- Template Parameters
-
opT The pair-wise reduction operation to be reduced
Definition at line 56 of file reduce_task.h.
Public Types | |
typedef opT::result_type | result_type |
The result type of this reduction operation. More... | |
typedef std::remove_cv< typename std::remove_reference< typename opT::first_argument_type >::type >::type | first_argument_type |
The left-hand argument type. More... | |
typedef std::remove_cv< typename std::remove_reference< typename opT::second_argument_type >::type >::type | second_argument_type |
The right-hand argument type. More... | |
typedef std::pair< Future< first_argument_type >, Future< second_argument_type > > | argument_type |
The combine argument type. More... | |
Public Member Functions | |
ReducePairOpWrapper () | |
Default constructor. More... | |
ReducePairOpWrapper (const opT &op) | |
Constructor. More... | |
ReducePairOpWrapper (const ReducePairOpWrapper< opT > &other) | |
Copy constructor. More... | |
~ReducePairOpWrapper () | |
Destructor. More... | |
ReducePairOpWrapper< opT > & | operator= (const ReducePairOpWrapper< opT > &other) |
Copy assignment operator. More... | |
result_type | operator() () const |
Create an default reduction object. More... | |
result_type | operator() (result_type &temp) const |
void | operator() (result_type &result, const result_type &arg) |
Reduce two result objects. More... | |
void | operator() (result_type &result, const argument_type &arg) const |
Reduce an argument pair. More... | |
Member Typedef Documentation
◆ argument_type
typedef std::pair<Future<first_argument_type>, Future<second_argument_type> > TiledArray::detail::ReducePairOpWrapper< opT >::argument_type |
The combine argument type.
Definition at line 67 of file reduce_task.h.
◆ first_argument_type
typedef std::remove_cv<typename std::remove_reference< typename opT::first_argument_type>::type>::type TiledArray::detail::ReducePairOpWrapper< opT >::first_argument_type |
The left-hand argument type.
Definition at line 61 of file reduce_task.h.
◆ result_type
typedef opT::result_type TiledArray::detail::ReducePairOpWrapper< opT >::result_type |
The result type of this reduction operation.
Definition at line 58 of file reduce_task.h.
◆ second_argument_type
typedef std::remove_cv<typename std::remove_reference< typename opT::second_argument_type>::type>::type TiledArray::detail::ReducePairOpWrapper< opT >::second_argument_type |
The right-hand argument type.
Definition at line 64 of file reduce_task.h.
Constructor & Destructor Documentation
◆ ReducePairOpWrapper() [1/3]
|
inline |
Default constructor.
Definition at line 75 of file reduce_task.h.
◆ ReducePairOpWrapper() [2/3]
|
inline |
◆ ReducePairOpWrapper() [3/3]
|
inline |
Copy constructor.
- Parameters
-
other The other operation to be copied
Definition at line 85 of file reduce_task.h.
◆ ~ReducePairOpWrapper()
|
inline |
Destructor.
Definition at line 88 of file reduce_task.h.
Member Function Documentation
◆ operator()() [1/4]
|
inline |
Create an default reduction object.
Definition at line 100 of file reduce_task.h.
◆ operator()() [2/4]
|
inline |
Reduce an argument pair.
- Parameters
-
[out] result The object that will hold the result of this reduction [in] arg The argument pair to be reduced
Definition at line 116 of file reduce_task.h.
◆ operator()() [3/4]
|
inline |
Reduce two result objects.
- Parameters
-
[out] result The object that will hold the result of this reduction [in] arg The result of another reduction operation
Definition at line 108 of file reduce_task.h.
◆ operator()() [4/4]
|
inline |
Definition at line 102 of file reduce_task.h.
◆ operator=()
|
inline |
Copy assignment operator.
- Parameters
-
other The other operation to be copied
- Returns
- This operation
Definition at line 94 of file reduce_task.h.
The documentation for this class was generated from the following file:
- TiledArray/reduce_task.h