Rheolef  7.1
an efficient C++ finite element environment
container_traits.h
Go to the documentation of this file.
1 #ifndef _RHEOLEF_CONTAINER_TRAITS_H
2 #define _RHEOLEF_CONTAINER_TRAITS_H
3 // traits class for disarray<T>
24 // for T=simple type
25 // or T=index_set or pair_set, i.e. container type
26 // also says when T is a simple mpi_datatype or a container of mpi_datatype
27 // --------------------------------------------------------------------------
28 #include <boost/serialization/utility.hpp>
29 #include "rheolef/msg_util.h" // set_op<T1,T2>
30 #ifdef _RHEOLEF_HAVE_MPI
31 #include <boost/mpi/datatype.hpp>
32 #endif // _RHEOLEF_HAVE_MPI
33 
34 namespace rheolef {
35  template <class T>
36  struct default_set_op {
37  typedef set_op<T,T> type;
38  };
39  template<class T>
40  struct is_container : std::false_type {
41  typedef std::false_type type;
42  };
43 #ifdef _RHEOLEF_HAVE_MPI
44  template <class T>
45  struct is_container_of_mpi_datatype : std::false_type {
46  typedef std::false_type type;
47  };
48 #endif // _RHEOLEF_HAVE_MPI
49 } // namespace rheolef
50 #endif // _RHEOLEF_CONTAINER_TRAITS_H
51 
rheolef::default_set_op::type
set_op< T, T > type
Definition: container_traits.h:37
rheolef::is_container_of_mpi_datatype::type
std::false_type type
Definition: container_traits.h:46
rheolef::is_container::type
std::false_type type
Definition: container_traits.h:41
rheolef
This file is part of Rheolef.
Definition: compiler_eigen.h:37
rheolef::default_set_op
Definition: container_traits.h:36
rheolef::is_container_of_mpi_datatype
Definition: container_traits.h:45
rheolef::set_op
Definition: msg_util.h:56
rheolef::is_container
Definition: container_traits.h:40