Class MHO_FunctorBroadcaster.
More...
#include <MHO_FunctorBroadcaster.hh>
|
virtual bool | ExecuteInPlace (XArrayType *in) override |
| Applies functor to input array in-place if initialized. More...
|
|
virtual bool | ExecuteOutOfPlace (const XArrayType *in, XArrayType *out) override |
| Executes an out-of-place operation using a functor and input/output iterators. More...
|
|
virtual bool | InitializeInPlace (XArrayType *in) override |
| Initializes in-place operation flag if input is not nullptr. More...
|
|
virtual bool | InitializeOutOfPlace (const XArrayType *in, XArrayType *out) override |
| Function InitializeOutOfPlace - initialization for out-of-place transformation. More...
|
|
template<class XArrayType, class XFunctorType>
class hops::MHO_FunctorBroadcaster< XArrayType, XFunctorType >
Class MHO_FunctorBroadcaster.
Applys a functor (XFunctorType) across all the elements of a multidimensional array.
- Author
- J. Barrett - barre.nosp@m.ttj@.nosp@m.mit.e.nosp@m.du
- Date
- Fri Nov 20 17:44:28 2020 -0500
◆ MHO_FunctorBroadcaster()
template<class XArrayType , class XFunctorType >
◆ ~MHO_FunctorBroadcaster()
template<class XArrayType , class XFunctorType >
◆ ExecuteInPlace()
template<class XArrayType , class XFunctorType >
|
inlineoverrideprotectedvirtual |
Applies functor to input array in-place if initialized.
- Parameters
-
in | Input array of type XArrayType* |
- Returns
- Boolean indicating whether processing was successful.
- Note
- This is a virtual function.
Implements hops::MHO_UnaryOperator< XArrayType >.
◆ ExecuteOutOfPlace()
template<class XArrayType , class XFunctorType >
|
inlineoverrideprotectedvirtual |
Executes an out-of-place operation using a functor and input/output iterators.
- Parameters
-
in | Const input array of type XArrayType |
out | Output array of type XArrayType |
- Returns
- True if operation is successful, false otherwise.
- Note
- This is a virtual function.
Implements hops::MHO_UnaryOperator< XArrayType >.
◆ GetFunctor()
template<class XArrayType , class XFunctorType >
Getter for functor class object.
- Returns
- Pointer to XFunctorType
◆ InitializeInPlace()
template<class XArrayType , class XFunctorType >
|
inlineoverrideprotectedvirtual |
Initializes in-place operation flag if input is not nullptr.
- Parameters
-
in | Input XArrayType pointer for initialization. |
- Returns
- Current state of fInitialized boolean.
- Note
- This is a virtual function.
Implements hops::MHO_UnaryOperator< XArrayType >.
◆ InitializeOutOfPlace()
template<class XArrayType , class XFunctorType >
|
inlineoverrideprotectedvirtual |
Function InitializeOutOfPlace - initialization for out-of-place transformation.
- Parameters
-
in | (const XArrayType*) |
out | (XArrayType*) |
- Returns
- Return value (bool)
- Note
- This is a virtual function.
Implements hops::MHO_UnaryOperator< XArrayType >.
The documentation for this class was generated from the following file: