Support Software for Vector Reduction/Transformation Operators
Version of the Day
|
RTOpT
subclass for unary transformation functions using a function pointer.
More...
#include <RTOpPack_TOpUnaryFuncPtrDecl.hpp>
Public Types | |
typedef void(* | unary_func_ptr_t )(const Scalar x[], int x_dim, Scalar out[]) |
Public Member Functions | |
TOpUnaryFuncPtr () | |
Construct to uninitialized. More... | |
TOpUnaryFuncPtr (unary_func_ptr_t unary_func_ptr, const std::string &op_name) | |
Calls initialize() More... | |
void | initialize (unary_func_ptr_t unary_func_ptr, const std::string &op_name) |
Initialize. More... | |
void | set_initialized (unary_func_ptr_t *unary_func_ptr=NULL, std::string *op_name=NULL) |
Set uninitialized. More... | |
Overridden from RTOpT | |
const char * | op_name () const |
void | apply_op (const int num_vecs, const ConstSubVectorView< Scalar > sub_vecs[], const int num_targ_vecs, const SubVectorView< Scalar > targ_sub_vecs[], ReductTarget *reduct_obj) const |
RTOpT
subclass for unary transformation functions using a function pointer.
ToDo: Finish documentation!
Definition at line 58 of file RTOpPack_TOpUnaryFuncPtrDecl.hpp.
typedef void(* RTOpPack::TOpUnaryFuncPtr< Scalar >::unary_func_ptr_t)(const Scalar x[], int x_dim, Scalar out[]) |
Definition at line 62 of file RTOpPack_TOpUnaryFuncPtrDecl.hpp.
RTOpPack::TOpUnaryFuncPtr< Scalar >::TOpUnaryFuncPtr | ( | ) |
Construct to uninitialized.
Definition at line 51 of file RTOpPack_TOpUnaryFuncPtr.hpp.
RTOpPack::TOpUnaryFuncPtr< Scalar >::TOpUnaryFuncPtr | ( | unary_func_ptr_t | unary_func_ptr, |
const std::string & | op_name | ||
) |
Calls initialize()
Definition at line 58 of file RTOpPack_TOpUnaryFuncPtr.hpp.
void RTOpPack::TOpUnaryFuncPtr< Scalar >::initialize | ( | unary_func_ptr_t | unary_func_ptr, |
const std::string & | op_name | ||
) |
Initialize.
unary_func_ptr | [in] Pointer to function that actually performs the unary operation. |
op_name | [in] Name of the operation (for debugging mostly by clients) |
Preconditions:
unary_func_ptr != NULL
(throw std::invalid_argument
) Definition at line 68 of file RTOpPack_TOpUnaryFuncPtr.hpp.
void RTOpPack::TOpUnaryFuncPtr< Scalar >::set_initialized | ( | unary_func_ptr_t * | unary_func_ptr = NULL , |
std::string * | op_name = NULL |
||
) |
Set uninitialized.
unary_func_ptr | [out] If unary_func_ptr!=NULL then *unary_func_ptr is set to pointer to function that was passed in to initialize() . |
op_name | [out] If op_name!=NULL then *op_name is set to the operation name that was passed in to initialize() . |
Definition at line 79 of file RTOpPack_TOpUnaryFuncPtr.hpp.
const char * RTOpPack::TOpUnaryFuncPtr< Scalar >::op_name | ( | ) | const |
Definition at line 94 of file RTOpPack_TOpUnaryFuncPtr.hpp.
void RTOpPack::TOpUnaryFuncPtr< Scalar >::apply_op | ( | const int | num_vecs, |
const ConstSubVectorView< Scalar > | sub_vecs[], | ||
const int | num_targ_vecs, | ||
const SubVectorView< Scalar > | targ_sub_vecs[], | ||
ReductTarget * | reduct_obj | ||
) | const |
Definition at line 100 of file RTOpPack_TOpUnaryFuncPtr.hpp.