Teuchos - Trilinos Tools Package  Version of the Day
Public Member Functions | List of all members
Teuchos::MpiReductionOpBase Class Referenceabstract

Base class for an MPI-compatible reduction operator. More...

#include <Teuchos_MpiReductionOpSetter.hpp>

Inheritance diagram for Teuchos::MpiReductionOpBase:
Teuchos::Describable Teuchos::LabeledObject Teuchos::MpiReductionOp< Ordinal >

Public Member Functions

virtual void reduce (void *invec, void *inoutvec, int *len, MPI_Datatype *datatype) const =0
 
- Public Member Functions inherited from Teuchos::Describable
virtual std::string description () const
 Return a simple one-line description of this object. More...
 
virtual void describe (FancyOStream &out, const EVerbosityLevel verbLevel=verbLevel_default) const
 Print the object with some verbosity level to a FancyOStream. More...
 
void describe (std::ostream &out, const EVerbosityLevel verbLevel=verbLevel_default) const
 Version of describe() that takes an std::ostream instead of a FancyOStream. More...
 
virtual ~Describable ()
 Destructor (marked virtual for memory safety of derived classes). More...
 
- Public Member Functions inherited from Teuchos::LabeledObject
 LabeledObject ()
 Construct with an empty label. More...
 
virtual ~LabeledObject ()
 
virtual void setObjectLabel (const std::string &objectLabel)
 Set the object label (see LabeledObject). More...
 
virtual std::string getObjectLabel () const
 Get the object label (see LabeledObject). More...
 

Additional Inherited Members

- Static Public Attributes inherited from Teuchos::Describable
static const EVerbosityLevel verbLevel_default = VERB_DEFAULT
 Default value for the verbLevel argument of describe(). More...
 

Detailed Description

Base class for an MPI-compatible reduction operator.

The base class allows clients to create a reduction callback as an object instead of just as a global function. The single extra level of indirection should not be a performance problem in must cases.

Note, HAVE_MPI must be defined to use this class!.

Definition at line 59 of file Teuchos_MpiReductionOpSetter.hpp.

Member Function Documentation

virtual void Teuchos::MpiReductionOpBase::reduce ( void *  invec,
void *  inoutvec,
int *  len,
MPI_Datatype *  datatype 
) const
pure virtual

The documentation for this class was generated from the following file: