From 170b678f26636ebf6a544ad80a2c990e86c60734 Mon Sep 17 00:00:00 2001 From: Adrian Burri <burriad@dune-project.org> Date: Mon, 5 Sep 2005 14:10:50 +0000 Subject: [PATCH] Added tagging interface [[Imported from SVN: r2736]] --- common/interfaces.hh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/common/interfaces.hh b/common/interfaces.hh index c57aa5efb..bd20a5ac1 100644 --- a/common/interfaces.hh +++ b/common/interfaces.hh @@ -8,12 +8,17 @@ namespace Dune { //! An interface class for cloneable objects struct Cloneable { - /** \brief ??? - \todo Please doc me!!! + /** \brief Clones the object + clone needs to be redefined by an implementation class, with the + return type covariantly adapted. Remember to + delete the resulting pointer. */ virtual Cloneable* clone() const = 0; }; + //! Tagging interface to indicate that Grid provides typedef ObjectStreamType + struct HasObjectStream {}; + } // end namespace Dune #endif -- GitLab