Nektar++
Public Member Functions | Static Public Member Functions | Static Public Attributes | List of all members
Nektar::LibUtilities::CommDataTypeTraits< T > Class Template Reference

#include <CommDataType.h>

Public Member Functions

CommDataTypeGetDataType ()
 
CommDataTypeGetDataType ()
 
CommDataTypeGetDataType ()
 
CommDataTypeGetDataType ()
 
CommDataTypeGetDataType ()
 
CommDataTypeGetDataType ()
 
CommDataTypeGetDataType ()
 
CommDataTypeGetDataType ()
 
CommDataTypeGetDataType ()
 
CommDataTypeGetDataType ()
 

Static Public Member Functions

static CommDataTypeGetDataType ()
 
static voidGetPointer (T &val)
 
static const voidGetPointer (const T &val)
 
static int GetCount (const T &val)
 

Static Public Attributes

static const bool IsVector = false
 

Detailed Description

template<class T>
class Nektar::LibUtilities::CommDataTypeTraits< T >

Definition at line 118 of file CommDataType.h.

Member Function Documentation

◆ GetCount()

template<class T >
static int Nektar::LibUtilities::CommDataTypeTraits< T >::GetCount ( const T &  val)
inlinestatic

◆ GetDataType() [1/11]

Definition at line 110 of file CommDataType.cpp.

111{
112 static CommDataType type = MPI_CHAR;
113 return type;
114}
#define MPI_CHAR
Definition: CommDataType.h:68
unsigned int CommDataType
Definition: CommDataType.h:65

References MPI_CHAR.

◆ GetDataType() [2/11]

Definition at line 116 of file CommDataType.cpp.

117{
118 static CommDataType type = MPI_INT;
119 return type;
120}
#define MPI_INT
Definition: CommDataType.h:72

References MPI_INT.

◆ GetDataType() [3/11]

Definition at line 122 of file CommDataType.cpp.

123{
124 static CommDataType type = MPI_UNSIGNED;
125 return type;
126}
#define MPI_UNSIGNED
Definition: CommDataType.h:76

References MPI_UNSIGNED.

◆ GetDataType() [4/11]

Definition at line 128 of file CommDataType.cpp.

129{
130 static CommDataType type = MPI_LONG;
131 return type;
132}
#define MPI_LONG
Definition: CommDataType.h:80

References MPI_LONG.

◆ GetDataType() [5/11]

CommDataType & Nektar::LibUtilities::CommDataTypeTraits< unsignedlong >::GetDataType ( )

Definition at line 134 of file CommDataType.cpp.

135{
136 static CommDataType type = MPI_UNSIGNED_LONG;
137 return type;
138}
#define MPI_UNSIGNED_LONG
Definition: CommDataType.h:84

References MPI_UNSIGNED_LONG.

◆ GetDataType() [6/11]

Definition at line 140 of file CommDataType.cpp.

141{
142 static CommDataType type = MPI_LONG_LONG;
143 return type;
144}
#define MPI_LONG_LONG
Definition: CommDataType.h:88

References MPI_LONG_LONG.

◆ GetDataType() [7/11]

CommDataType & Nektar::LibUtilities::CommDataTypeTraits< unsignedlonglong >::GetDataType ( )

Definition at line 146 of file CommDataType.cpp.

147{
149 return type;
150}
#define MPI_UNSIGNED_LONG_LONG
Definition: CommDataType.h:92

References MPI_UNSIGNED_LONG_LONG.

◆ GetDataType() [8/11]

Definition at line 152 of file CommDataType.cpp.

153{
154 static CommDataType type = MPI_FLOAT;
155 return type;
156}
#define MPI_FLOAT
Definition: CommDataType.h:96

References MPI_FLOAT.

◆ GetDataType() [9/11]

Definition at line 158 of file CommDataType.cpp.

159{
160 static CommDataType type = MPI_DOUBLE;
161 return type;
162}
#define MPI_DOUBLE
Definition: CommDataType.h:100

References MPI_DOUBLE.

◆ GetDataType() [10/11]

CommDataType & Nektar::LibUtilities::CommDataTypeTraits< longdouble >::GetDataType ( )

Definition at line 164 of file CommDataType.cpp.

165{
166 static CommDataType type = MPI_LONG_DOUBLE;
167 return type;
168}
#define MPI_LONG_DOUBLE
Definition: CommDataType.h:104

References MPI_LONG_DOUBLE.

◆ GetDataType() [11/11]

template<class T >
static CommDataType & Nektar::LibUtilities::CommDataTypeTraits< T >::GetDataType ( )
static

◆ GetPointer() [1/2]

template<class T >
static const void * Nektar::LibUtilities::CommDataTypeTraits< T >::GetPointer ( const T &  val)
inlinestatic

Definition at line 127 of file CommDataType.h.

128 {
129 return &val;
130 }

◆ GetPointer() [2/2]

template<class T >
static void * Nektar::LibUtilities::CommDataTypeTraits< T >::GetPointer ( T &  val)
inlinestatic

Definition at line 123 of file CommDataType.h.

124 {
125 return &val;
126 }

Referenced by Nektar::LibUtilities::Comm::Gather(), and Nektar::LibUtilities::Comm::Scatter().

Member Data Documentation

◆ IsVector

template<class T >
const bool Nektar::LibUtilities::CommDataTypeTraits< T >::IsVector = false
static

Definition at line 136 of file CommDataType.h.