From: Timo Heister Date: Sat, 4 Jul 2015 11:23:24 +0000 (-0400) Subject: add CellID::str() X-Git-Tag: v8.4.0-rc2~277^2~33 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f72587ea7a9b1bde53f64dfb1f4657280a357e1b;p=dealii.git add CellID::str() --- diff --git a/include/deal.II/grid/cell_id.h b/include/deal.II/grid/cell_id.h index 7a971bc5e9..8748802e16 100644 --- a/include/deal.II/grid/cell_id.h +++ b/include/deal.II/grid/cell_id.h @@ -20,6 +20,7 @@ #include #include +#include DEAL_II_NAMESPACE_OPEN @@ -68,6 +69,16 @@ public: : coarse_cell_id(-1) {} + /** + * + */ + std::string str() const + { + std::ostringstream ss; + ss << *this; + return ss.str(); + } + /** * compare two CellIds */