Commit 7b2efd1aaed0c294e21a2d3bb8e8ce7b5f6cf29e
1 parent
c22cb46a
add clone method
Showing
1 changed file
with
9 additions
and
0 deletions
src/GHealpix.cpp
| ... | ... | @@ -168,6 +168,15 @@ void GHealpix::free_members(void) |
| 168 | 168 | } |
| 169 | 169 | |
| 170 | 170 | |
| 171 | +/***********************************************************************//** | |
| 172 | + * @brief Clone Healpix representation | |
| 173 | + ***************************************************************************/ | |
| 174 | +GHealpix* GHealpix::clone(void) const | |
| 175 | +{ | |
| 176 | + return new GHealpix(*this); | |
| 177 | +} | |
| 178 | + | |
| 179 | + | |
| 171 | 180 | /*========================================================================== |
| 172 | 181 | = = |
| 173 | 182 | = GHealpix friends = | ... | ... |