From 2b6139d91ea6d3d13d0d0048ed0620a217f7aa8f Mon Sep 17 00:00:00 2001 From: Timo Heister Date: Thu, 9 Jul 2015 14:52:28 -0400 Subject: [PATCH] move implementation to .cc --- include/deal.II/grid/cell_id.h | 10 +--------- source/grid/CMakeLists.txt | 1 + source/grid/cell_id.cc | 30 ++++++++++++++++++++++++++++++ 3 files changed, 32 insertions(+), 9 deletions(-) create mode 100644 source/grid/cell_id.cc diff --git a/include/deal.II/grid/cell_id.h b/include/deal.II/grid/cell_id.h index 7f41b24daf..1ba83286df 100644 --- a/include/deal.II/grid/cell_id.h +++ b/include/deal.II/grid/cell_id.h @@ -20,7 +20,7 @@ #include #include -#include +#include 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 { diff --git a/source/grid/CMakeLists.txt b/source/grid/CMakeLists.txt index 56841a56f6..88cd15a4c8 100644 --- a/source/grid/CMakeLists.txt +++ b/source/grid/CMakeLists.txt @@ -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 index 0000000000..57bd2764af --- /dev/null +++ b/source/grid/cell_id.cc @@ -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 + +#include + +DEAL_II_NAMESPACE_OPEN + +std::string +CellId::to_string() const +{ + std::ostringstream ss; + ss << *this; + return ss.str(); +} + +DEAL_II_NAMESPACE_CLOSE -- 2.39.5