45 #ifndef RTOPPACK_RTOP_NEW_C_HPP
46 #define RTOPPACK_RTOP_NEW_C_HPP
48 #include "RTOpPack_OldTypes.hpp"
49 #include "RTOpPack_RTOpT.hpp"
51 #include "Teuchos_dyn_cast.hpp"
136 inline RTOp_ReductTarget& obj();
137 inline const RTOp_ReductTarget& obj()
const;
140 RTOp_ReductTarget obj_;
169 const RTOp_ReductTarget&
178 ReductTargetC::ReductTargetC(
const RTOp_RTOp& op, RTOp_ReductTarget obj )
183 ReductTargetC::~ReductTargetC()
185 if( obj() != RTOp_REDUCT_OBJ_NULL ) {
189 ,
"RTOpC::reduct_obj_free(...): Error, "
190 "RTOp_reduct_obj_free(...) returned != 0"
196 RTOp_ReductTarget& ReductTargetC::obj()
202 const RTOp_ReductTarget& ReductTargetC::obj()
const
209 #endif // RTOPPACK_RTOP_NEW_C_HPP
Adapter subclass that uses a RTOp_RTOp object.
std::string op_name_impl() const
Teuchos::RCP< ReductTarget > reduct_obj_create_impl() const
#define TEUCHOS_TEST_FOR_EXCEPTION(throw_exception_test, Exception, msg)
void get_reduct_type_num_entries_impl(const Teuchos::Ptr< int > &num_values, const Teuchos::Ptr< int > &num_indexes, const Teuchos::Ptr< int > &num_chars) const
void extract_reduct_obj_state_impl(const ReductTarget &reduct_obj, const Teuchos::ArrayView< primitive_value_type > &value_data, const Teuchos::ArrayView< index_type > &index_data, const Teuchos::ArrayView< char_type > &char_data) const
T_To & dyn_cast(T_From &from)
void apply_op_impl(const Teuchos::ArrayView< const ConstSubVectorView< Scalar > > &sub_vecs, const Teuchos::ArrayView< const SubVectorView< Scalar > > &targ_sub_vecs, const Teuchos::Ptr< ReductTarget > &reduct_obj) const
RTOp_ReductTarget & operator()(ReductTarget &reduct_obj) const
bool coord_invariant_impl() const
int RTOp_reduct_obj_free(const struct RTOp_RTOp *op, RTOp_ReductTarget *reduct_obj)
void reduce_reduct_objs_impl(const ReductTarget &in_reduct_obj, const Teuchos::Ptr< ReductTarget > &inout_reduct_obj) const
Adapter subclass for RTOp_ReductTarget
void reduct_obj_reinit_impl(const Teuchos::Ptr< ReductTarget > &reduct_obj) const
void load_reduct_obj_state_impl(const Teuchos::ArrayView< const primitive_value_type > &value_data, const Teuchos::ArrayView< const index_type > &index_data, const Teuchos::ArrayView< const char_type > &char_data, const Teuchos::Ptr< ReductTarget > &reduct_obj) const