Commit b6589417288d4cf51933359e5ddf2e13f07e8a22

Authored by knodlseder
1 parent 1a2fb924

move clone() method to private

include/GFitsAsciiTable.hpp
... ... @@ -45,13 +45,13 @@ public:
45 45 GFitsAsciiTable& operator= (const GFitsAsciiTable& table);
46 46  
47 47 // Methods
48   - GFitsAsciiTable* clone(void) const;
49 48  
50 49 private:
51 50 // Private methods
52   - void init_members(void);
53   - void copy_members(const GFitsAsciiTable& table);
54   - void free_members(void);
  51 + void init_members(void);
  52 + void copy_members(const GFitsAsciiTable& table);
  53 + void free_members(void);
  54 + GFitsAsciiTable* clone(void) const;
55 55  
56 56 // Private data area
57 57 };
... ...
src/fits/GFitsAsciiTable.cpp
... ... @@ -16,11 +16,6 @@
16 16 #include <iostream>
17 17 #include "GException.hpp"
18 18 #include "GFitsAsciiTable.hpp"
19   -//#include "GFitsTableStrCol.hpp"
20   -//#include "GFitsTableShtCol.hpp"
21   -//#include "GFitsTableLngCol.hpp"
22   -//#include "GFitsTableFltCol.hpp"
23   -//#include "GFitsTableDblCol.hpp"
24 19  
25 20 /* __ Namespaces _________________________________________________________ */
26 21  
... ... @@ -141,15 +136,6 @@ GFitsAsciiTable&amp; GFitsAsciiTable::operator= (const GFitsAsciiTable&amp; table)
141 136 = =
142 137 ==========================================================================*/
143 138  
144   -/***********************************************************************//**
145   - * @brief Clone ASCII table
146   - ***************************************************************************/
147   -GFitsAsciiTable* GFitsAsciiTable::clone(void) const
148   -{
149   - return new GFitsAsciiTable(*this);
150   -}
151   -
152   -
153 139 /*==========================================================================
154 140 = =
155 141 = GFitsAsciiTable private methods =
... ... @@ -197,6 +183,15 @@ void GFitsAsciiTable::free_members(void)
197 183 }
198 184  
199 185  
  186 +/***********************************************************************//**
  187 + * @brief Clone ASCII table
  188 + ***************************************************************************/
  189 +GFitsAsciiTable* GFitsAsciiTable::clone(void) const
  190 +{
  191 + return new GFitsAsciiTable(*this);
  192 +}
  193 +
  194 +
200 195 /*==========================================================================
201 196 = =
202 197 = GFitsAsciiTable friends =
... ...