]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Provide a couple of constructors that are never called but for which
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Sun, 26 Jan 2014 23:58:30 +0000 (23:58 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Sun, 26 Jan 2014 23:58:30 +0000 (23:58 +0000)
we apparently need definitions when running the testsuite for
coverage.

git-svn-id: https://svn.dealii.org/trunk@32321 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/include/deal.II/base/symmetric_tensor.h

index 93ffc6296a2c3e9b1f639e424da5ced3952fc312..66814824fe2c8c2e670fd5f10020fddd10977e88 100644 (file)
@@ -1,7 +1,7 @@
 // ---------------------------------------------------------------------
 // $Id$
 //
-// Copyright (C) 2005 - 2013 by the deal.II authors
+// Copyright (C) 2005 - 2014 by the deal.II authors
 //
 // This file is part of the deal.II library.
 //
@@ -1061,6 +1061,17 @@ namespace internal
 {
   namespace SymmetricTensorAccessors
   {
+    template <int rank, int dim, bool constness, int P, typename Number>
+    Accessor<rank,dim,constness,P,Number>::
+    Accessor ()
+      :
+      tensor (*static_cast<tensor_type*>(0)),
+      previous_indices ()
+    {
+      Assert (false, ExcMessage ("You can't call the default constructor of this class."));
+    }
+
+
     template <int rank, int dim, bool constness, int P, typename Number>
     Accessor<rank,dim,constness,P,Number>::
     Accessor (tensor_type              &tensor,
@@ -1071,6 +1082,15 @@ namespace internal
     {}
 
 
+    template <int rank, int dim, bool constness, int P, typename Number>
+    Accessor<rank,dim,constness,P,Number>::
+    Accessor (const Accessor &a)
+      :
+      tensor (a.tensor),
+      previous_indices (a.previous_indices)
+    {}
+
+
 
     template <int rank, int dim, bool constness, int P, typename Number>
     Accessor<rank,dim,constness,P-1,Number>
@@ -1082,6 +1102,18 @@ namespace internal
 
 
 
+    template <int rank, int dim, bool constness, typename Number>
+    Accessor<rank,dim,constness,1,Number>::
+    Accessor ()
+      :
+      tensor (*static_cast<tensor_type*>(0)),
+      previous_indices ()
+    {
+      Assert (false, ExcMessage ("You can't call the default constructor of this class."));
+    }
+
+
+
     template <int rank, int dim, bool constness, typename Number>
     Accessor<rank,dim,constness,1,Number>::
     Accessor (tensor_type              &tensor,
@@ -1093,6 +1125,16 @@ namespace internal
 
 
 
+    template <int rank, int dim, bool constness, typename Number>
+    Accessor<rank,dim,constness,1,Number>::
+    Accessor (const Accessor &a)
+      :
+      tensor (a.tensor),
+      previous_indices (a.previous_indices)
+    {}
+
+
+
     template <int rank, int dim, bool constness, typename Number>
     typename Accessor<rank,dim,constness,1,Number>::reference
     Accessor<rank,dim,constness,1,Number>::operator[] (const unsigned int i)

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.