RTOpPack::ROpScalarIndexReductionBase< Scalar > Class Template Reference
[Utility code for creating concrete RTOpPack::RTOpT subclasses.]

Base class for all reduction operators that return a ScalarIndex reduction object. More...

#include <RTOpPack_RTOpTHelpers.hpp>

Inheritance diagram for RTOpPack::ROpScalarIndexReductionBase< Scalar >:

[legend]
List of all members.

Overridden from RTOpT

void get_reduct_type_num_entries (int *num_values, int *num_indexes, int *num_chars) const
 
Teuchos::RefCountPtr< ReductTargetreduct_obj_create () const
 
void reduct_obj_reinit (ReductTarget *reduct_obj) const
 
void extract_reduct_obj_state (const ReductTarget &reduct_obj, int num_values, primitive_value_type value_data[], int num_indexes, index_type index_data[], int num_chars, char_type char_data[]) const
 
void load_reduct_obj_state (int num_values, const primitive_value_type value_data[], int num_indexes, const index_type index_data[], int num_chars, const char_type char_data[], ReductTarget *reduct_obj) const
 

Public Types

typedef RTOpT< Scalar >::primitive_value_type primitive_value_type
 

Public Member Functions

 ROpScalarIndexReductionBase (const Scalar &initScalarReductObjValue=Teuchos::ScalarTraits< Scalar >::zero(), const Index &initIndexReductObjValue=Teuchos::ScalarTraits< Index >::zero())
 
const ScalarIndex< Scalar > & getRawVal (const ReductTarget &reduct_obj) const
 
void setRawVal (const ScalarIndex< Scalar > &rawVal, ReductTarget *reduct_obj) const
 

Protected Member Functions

void initScalarReductObjValue (const Scalar &initScalarReductObjValue)
 

Detailed Description

template<class Scalar>
class RTOpPack::ROpScalarIndexReductionBase< Scalar >

Base class for all reduction operators that return a ScalarIndex reduction object.

Subclasses have to minimally define apply_op() and reduce_reduct_objs().

Definition at line 207 of file RTOpPack_RTOpTHelpers.hpp.


Member Typedef Documentation

template<class Scalar>
typedef RTOpT<Scalar>::primitive_value_type RTOpPack::ROpScalarIndexReductionBase< Scalar >::primitive_value_type
 

Reimplemented from RTOpPack::RTOpT< Scalar >.

Definition at line 209 of file RTOpPack_RTOpTHelpers.hpp.


Constructor & Destructor Documentation

template<class Scalar>
RTOpPack::ROpScalarIndexReductionBase< Scalar >::ROpScalarIndexReductionBase const Scalar &  initScalarReductObjValue = Teuchos::ScalarTraits<Scalar>::zero(),
const Index &  initIndexReductObjValue = Teuchos::ScalarTraits<Index>::zero()
[inline]
 

Definition at line 211 of file RTOpPack_RTOpTHelpers.hpp.


Member Function Documentation

template<class Scalar>
const ScalarIndex<Scalar>& RTOpPack::ROpScalarIndexReductionBase< Scalar >::getRawVal const ReductTarget reduct_obj  )  const [inline]
 

Definition at line 220 of file RTOpPack_RTOpTHelpers.hpp.

template<class Scalar>
void RTOpPack::ROpScalarIndexReductionBase< Scalar >::setRawVal const ScalarIndex< Scalar > &  rawVal,
ReductTarget reduct_obj
const [inline]
 

Definition at line 226 of file RTOpPack_RTOpTHelpers.hpp.

template<class Scalar>
void RTOpPack::ROpScalarIndexReductionBase< Scalar >::get_reduct_type_num_entries int *  num_values,
int *  num_indexes,
int *  num_chars
const [inline, virtual]
 

Reimplemented from RTOpPack::RTOpT< Scalar >.

Definition at line 237 of file RTOpPack_RTOpTHelpers.hpp.

template<class Scalar>
Teuchos::RefCountPtr<ReductTarget> RTOpPack::ROpScalarIndexReductionBase< Scalar >::reduct_obj_create  )  const [inline, virtual]
 

Reimplemented from RTOpPack::RTOpT< Scalar >.

Definition at line 248 of file RTOpPack_RTOpTHelpers.hpp.

template<class Scalar>
void RTOpPack::ROpScalarIndexReductionBase< Scalar >::reduct_obj_reinit ReductTarget reduct_obj  )  const [inline, virtual]
 

Reimplemented from RTOpPack::RTOpT< Scalar >.

Definition at line 257 of file RTOpPack_RTOpTHelpers.hpp.

template<class Scalar>
void RTOpPack::ROpScalarIndexReductionBase< Scalar >::extract_reduct_obj_state const ReductTarget reduct_obj,
int  num_values,
primitive_value_type  value_data[],
int  num_indexes,
index_type  index_data[],
int  num_chars,
char_type  char_data[]
const [inline, virtual]
 

Reimplemented from RTOpPack::RTOpT< Scalar >.

Definition at line 262 of file RTOpPack_RTOpTHelpers.hpp.

template<class Scalar>
void RTOpPack::ROpScalarIndexReductionBase< Scalar >::load_reduct_obj_state int  num_values,
const primitive_value_type  value_data[],
int  num_indexes,
const index_type  index_data[],
int  num_chars,
const char_type  char_data[],
ReductTarget reduct_obj
const [inline, virtual]
 

Reimplemented from RTOpPack::RTOpT< Scalar >.

Definition at line 283 of file RTOpPack_RTOpTHelpers.hpp.

template<class Scalar>
void RTOpPack::ROpScalarIndexReductionBase< Scalar >::initScalarReductObjValue const Scalar &  initScalarReductObjValue  )  [inline, protected]
 

Definition at line 306 of file RTOpPack_RTOpTHelpers.hpp.


The documentation for this class was generated from the following file:
Generated on Thu Sep 18 12:39:44 2008 for RTOp : Vector Reduction/Transformation Operators by doxygen 1.3.9.1