]> https://gitweb.dealii.org/ - dealii.git/commitdiff
move implementation to .cc 1083/head
authorTimo Heister <timo.heister@gmail.com>
Thu, 9 Jul 2015 18:52:28 +0000 (14:52 -0400)
committerTimo Heister <timo.heister@gmail.com>
Thu, 9 Jul 2015 19:09:00 +0000 (15:09 -0400)
include/deal.II/grid/cell_id.h
source/grid/CMakeLists.txt
source/grid/cell_id.cc [new file with mode: 0644]

index 7f41b24dafb0eeeee74b195d79a87d7448c5ebd1..1ba83286dfe285d53e46b7806cee5261db135c83 100644 (file)
@@ -20,7 +20,7 @@
 #include <deal.II/base/exceptions.h>
 
 #include <vector>
-#include <sstream>
+#include <iostream>
 
 
 DEAL_II_NAMESPACE_OPEN
@@ -136,14 +136,6 @@ inline std::istream &operator>> (std::istream &is, CellId &cid)
   return is;
 }
 
-inline std::string
-CellId::to_string() const
-{
-  std::ostringstream ss;
-  ss << *this;
-  return ss.str();
-}
-
 inline bool
 CellId::operator== (const CellId &other) const
 {
index 56841a56f6bd81a337689691123889a584eaae4b..88cd15a4c82bd2beda5f65a0fe8f8ff3afc98843 100644 (file)
@@ -16,6 +16,7 @@
 INCLUDE_DIRECTORIES(BEFORE ${CMAKE_CURRENT_BINARY_DIR})
 
 SET(_src
+  cell_id.cc
   grid_generator.cc
   grid_in.cc
   grid_out.cc
diff --git a/source/grid/cell_id.cc b/source/grid/cell_id.cc
new file mode 100644 (file)
index 0000000..57bd276
--- /dev/null
@@ -0,0 +1,30 @@
+// ---------------------------------------------------------------------
+//
+// Copyright (C) 2015 by the deal.II authors
+//
+// This file is part of the deal.II library.
+//
+// The deal.II library is free software; you can use it, redistribute
+// it, and/or modify it under the terms of the GNU Lesser General
+// Public License as published by the Free Software Foundation; either
+// version 2.1 of the License, or (at your option) any later version.
+// The full text of the license can be found in the file LICENSE at
+// the top level of the deal.II distribution.
+//
+// ---------------------------------------------------------------------
+
+#include <deal.II/grid/cell_id.h>
+
+#include <sstream>
+
+DEAL_II_NAMESPACE_OPEN
+
+std::string
+CellId::to_string() const
+{
+  std::ostringstream ss;
+  ss << *this;
+  return ss.str();
+}
+
+DEAL_II_NAMESPACE_CLOSE

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.