From 4f74f8e6eb38a9e324784e3d5985733bae405887 Mon Sep 17 00:00:00 2001 From: Reza Rastak Date: Thu, 15 Aug 2019 20:01:38 -0700 Subject: [PATCH] added #ifndef DOXYGEN to some forward declarations --- include/deal.II/base/mpi.h | 2 ++ include/deal.II/base/symmetric_tensor.h | 3 +++ include/deal.II/base/tensor.h | 3 ++- 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/include/deal.II/base/mpi.h b/include/deal.II/base/mpi.h index d5aa725229..dac995371a 100644 --- a/include/deal.II/base/mpi.h +++ b/include/deal.II/base/mpi.h @@ -87,6 +87,7 @@ DEAL_II_NAMESPACE_OPEN // Forward type declarations to allow MPI sums over tensorial types +#ifndef DOXYGEN template class Tensor; template @@ -94,6 +95,7 @@ class SymmetricTensor; template class SparseMatrix; class IndexSet; +#endif namespace Utilities { diff --git a/include/deal.II/base/symmetric_tensor.h b/include/deal.II/base/symmetric_tensor.h index bf65aec239..63a5b7ef0d 100644 --- a/include/deal.II/base/symmetric_tensor.h +++ b/include/deal.II/base/symmetric_tensor.h @@ -28,8 +28,11 @@ DEAL_II_NAMESPACE_OPEN +// Forward declaration +#ifndef DOXYGEN template class SymmetricTensor; +#endif template DEAL_II_CONSTEXPR inline DEAL_II_ALWAYS_INLINE SymmetricTensor<2, dim, Number> diff --git a/include/deal.II/base/tensor.h b/include/deal.II/base/tensor.h index e4416f4ab8..8bee1a536e 100644 --- a/include/deal.II/base/tensor.h +++ b/include/deal.II/base/tensor.h @@ -38,13 +38,14 @@ DEAL_II_NAMESPACE_OPEN // Forward declarations: - +#ifndef DOXYGEN template class Point; template class Tensor; template class Vector; +#endif #ifndef DOXYGEN // Overload invalid tensor types of negative rank that come up during -- 2.39.5