From 7b2efd1aaed0c294e21a2d3bb8e8ce7b5f6cf29e Mon Sep 17 00:00:00 2001 From: knodlseder <> Date: Fri, 14 Mar 2008 00:21:20 +0000 Subject: [PATCH] add clone method --- src/GHealpix.cpp | 9 +++++++++ 1 file changed, 9 insertions(+), 0 deletions(-) diff --git a/src/GHealpix.cpp b/src/GHealpix.cpp index da80595..e7f70ba 100644 --- a/src/GHealpix.cpp +++ b/src/GHealpix.cpp @@ -168,6 +168,15 @@ void GHealpix::free_members(void) } +/***********************************************************************//** + * @brief Clone Healpix representation + ***************************************************************************/ +GHealpix* GHealpix::clone(void) const +{ + return new GHealpix(*this); +} + + /*========================================================================== = = = GHealpix friends = -- libgit2 0.21.4