OPAL (Object Oriented Parallel Accelerator Library)  2.2.0
OPAL
Classes | Macros | Functions
DataTypes.h File Reference
#include <mpi.h>
Include dependency graph for DataTypes.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  is_ippl_mpi_datatype< typename >
 
struct  is_ippl_mpi_datatype< char >
 
struct  is_ippl_mpi_datatype< short >
 
struct  is_ippl_mpi_datatype< int >
 
struct  is_ippl_mpi_datatype< long >
 
struct  is_ippl_mpi_datatype< long long >
 
struct  is_ippl_mpi_datatype< unsigned char >
 
struct  is_ippl_mpi_datatype< unsigned short >
 
struct  is_ippl_mpi_datatype< unsigned int >
 
struct  is_ippl_mpi_datatype< unsigned long >
 
struct  is_ippl_mpi_datatype< unsigned long long >
 
struct  is_ippl_mpi_datatype< float >
 
struct  is_ippl_mpi_datatype< double >
 
struct  is_ippl_mpi_datatype< long double >
 
struct  is_ippl_mpi_datatype< bool >
 

Macros

#define IPPL_MPI_DATATYPE(CppType, MPIType)
 

Functions

template<typename T >
MPI_Datatype get_mpi_datatype (const T &x)
 
template<>
MPI_Datatype get_mpi_datatype< char > (const char &)
 
template<>
MPI_Datatype get_mpi_datatype< short > (const short &)
 
template<>
MPI_Datatype get_mpi_datatype< int > (const int &)
 
template<>
MPI_Datatype get_mpi_datatype< long > (const long &)
 
template<>
MPI_Datatype get_mpi_datatype< long long > (const long long &)
 
template<>
MPI_Datatype get_mpi_datatype< unsigned char > (const unsigned char &)
 
template<>
MPI_Datatype get_mpi_datatype< unsigned short > (const unsigned short &)
 
template<>
MPI_Datatype get_mpi_datatype< unsigned int > (const unsigned int &)
 
template<>
MPI_Datatype get_mpi_datatype< unsigned long > (const unsigned long &)
 
template<>
MPI_Datatype get_mpi_datatype< unsigned long long > (const unsigned long long &)
 
template<>
MPI_Datatype get_mpi_datatype< float > (const float &)
 
template<>
MPI_Datatype get_mpi_datatype< double > (const double &)
 
template<>
MPI_Datatype get_mpi_datatype< long double > (const long double &)
 
template<>
MPI_Datatype get_mpi_datatype< bool > (const bool &)
 

Macro Definition Documentation

#define IPPL_MPI_DATATYPE (   CppType,
  MPIType 
)
Value:
template<> \
inline MPI_Datatype \
get_mpi_datatype< CppType >(const CppType&) { return MPIType; } \
\
template<> \
struct is_ippl_mpi_datatype<CppType>: std::true_type {};

Definition at line 20 of file DataTypes.h.

Function Documentation

template<typename T >
MPI_Datatype get_mpi_datatype ( const T x)

Definition at line 12 of file DataTypes.h.

References T.

template<>
MPI_Datatype get_mpi_datatype< bool > ( const bool &  )
inline

Definition at line 55 of file DataTypes.h.

template<>
MPI_Datatype get_mpi_datatype< char > ( const char &  )
inline

Definition at line 29 of file DataTypes.h.

template<>
MPI_Datatype get_mpi_datatype< double > ( const double &  )
inline

Definition at line 51 of file DataTypes.h.

template<>
MPI_Datatype get_mpi_datatype< float > ( const float &  )
inline

Definition at line 49 of file DataTypes.h.

template<>
MPI_Datatype get_mpi_datatype< int > ( const int &  )
inline

Definition at line 33 of file DataTypes.h.

template<>
MPI_Datatype get_mpi_datatype< long > ( const long &  )
inline

Definition at line 35 of file DataTypes.h.

template<>
MPI_Datatype get_mpi_datatype< long double > ( const long double &  )
inline

Definition at line 53 of file DataTypes.h.

template<>
MPI_Datatype get_mpi_datatype< long long > ( const long long &  )
inline

Definition at line 37 of file DataTypes.h.

template<>
MPI_Datatype get_mpi_datatype< short > ( const short &  )
inline

Definition at line 31 of file DataTypes.h.

template<>
MPI_Datatype get_mpi_datatype< unsigned char > ( const unsigned char &  )
inline

Definition at line 39 of file DataTypes.h.

template<>
MPI_Datatype get_mpi_datatype< unsigned int > ( const unsigned int &  )
inline

Definition at line 43 of file DataTypes.h.

template<>
MPI_Datatype get_mpi_datatype< unsigned long > ( const unsigned long &  )
inline

Definition at line 45 of file DataTypes.h.

template<>
MPI_Datatype get_mpi_datatype< unsigned long long > ( const unsigned long long &  )
inline

Definition at line 47 of file DataTypes.h.

template<>
MPI_Datatype get_mpi_datatype< unsigned short > ( const unsigned short &  )
inline

Definition at line 41 of file DataTypes.h.