container_traits.h
Go to the documentation of this file.
#ifndef _RHEOLEF_CONTAINER_TRAITS_H
#define _RHEOLEF_CONTAINER_TRAITS_H
// traits class for disarray<T>
// for T=simple type
// or T=index_set or pair_set, i.e. container type
// also says when T is a simple mpi_datatype or a container of mpi_datatype
// --------------------------------------------------------------------------
#include <boost/serialization/utility.hpp>
#include "rheolef/msg_util.h" // set_op<T1,T2>
#ifdef _RHEOLEF_HAVE_MPI
#include <boost/mpi/datatype.hpp>
#endif // _RHEOLEF_HAVE_MPI
namespace rheolef {
template <class T>
struct default_set_op {
typedef set_op<T,T> type;
};
template<class T>
struct is_container : std::false_type {
typedef std::false_type type;
};
#ifdef _RHEOLEF_HAVE_MPI
template <class T>
struct is_container_of_mpi_datatype : std::false_type {
typedef std::false_type type;
};
#endif // _RHEOLEF_HAVE_MPI
} // namespace rheolef
#endif // _RHEOLEF_CONTAINER_TRAITS_H
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