Anasazi Version of the Day
Public Member Functions
TSQR::MPI::MpiDatatype< Datum > Class Template Reference

#include <Tsqr_MpiDatatype.hpp>

List of all members.

Public Member Functions

 MpiDatatype ()
 MpiDatatype (const MpiDatatype &rhs)
MpiDatatypeoperator= (const MpiDatatype &rhs)
 ~MpiDatatype ()

Detailed Description

template<class Datum>
class TSQR::MPI::MpiDatatype< Datum >

Implements a map from C++ datatype to MPI_Datatype.

MpiDatatype manages type creation and freeing (via MPI_Type_free()) automatically, for types for which it's necessary. For other types, MpiDatatype::get() just returns the predefined constant (e.g., MPI_DOUBLE or MPI_INT). Note also that MpiDatatype< Datum > has only been defined for certain types of Datum (see MpiDatatype.cpp for which ones).

Definition at line 27 of file Tsqr_MpiDatatype.hpp.

Constructor & Destructor Documentation

template<class Datum >
TSQR::MPI::MpiDatatype< Datum >::MpiDatatype ( )

Constructor, specialized by hand for typical scalar data types.

template<class Datum >
TSQR::MPI::MpiDatatype< Datum >::MpiDatatype ( const MpiDatatype< Datum > &  rhs) [inline]

Copy constructor

Definition at line 35 of file Tsqr_MpiDatatype.hpp.

template<class Datum >
TSQR::MPI::MpiDatatype< Datum >::~MpiDatatype ( ) [inline]


Definition at line 59 of file Tsqr_MpiDatatype.hpp.

Member Function Documentation

template<class Datum >
MpiDatatype& TSQR::MPI::MpiDatatype< Datum >::operator= ( const MpiDatatype< Datum > &  rhs) [inline]

Assignment operator

Definition at line 42 of file Tsqr_MpiDatatype.hpp.

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends